Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 23424

A popularity-contest is a competition where the answer with the highest vote tally (upvotes minus downvotes) wins. As these are frequently closed, read the tag info and post your challenge to the sandbox first.

3
votes
This C++03 C++11 and C++14 program prints old, medium or new: (C++03 is a set of technical corrections to C++98: compilers consider the two to be synonymous) #define M(x, ...) __VA_ARGS__ int a[] = …
answered Apr 16 '15 by Yakk
27
votes
C++ #include <iostream> #include <utility> #include <type_traits> #define __(A,B,C,...) B##C##A #define _(A,...) __(__VA_ARGS__, A) template<unsigned...Is> struct v; template<unsigned I0, unsigned.. …
answered Jun 4 '14 by Yakk
5
votes
This violates the rules, but I think in an amusing way. It is written in C and C++. In C++ it does a pretty standard 99 bottles. In C, it first fills the wall up, then empties it. #include <stdio. …
answered Jun 11 '14 by Yakk
0
votes
template metaprogramming #include <iostream> #include <utility> #include <type_traits> enum class values { zero = 7, one = 3, two = 1, three = -7, four = 2, five = 4, }; template<class …
answered Jun 4 '14 by Yakk