You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
937 B
C++

#include <iostream>
#include <queue>
template<typename T>
char const* miep(T){
return __PRETTY_FUNCTION__;
}
int main(int argc, char const *argv[])
{
// int result;
// int max = 4000000;
// std::queue <int> evens;
// for(int prev = 0, cur = 1, temp = 0; cur < max;) {
// temp = cur;
// cur = prev+cur;
// prev = temp;
// if(cur%2 == 0)
// {
// evens.push(cur);
// std::cout << "current even: " << cur << std::endl;
// }
// }
// while(!evens.empty())
// {
// result += evens.front();
// evens.pop();
// }
// std::cout << "Result: " << result << std::endl;
int a {1u};
unsigned int b {a};
std::cout<< "a: "<< miep('a'+1) << " "<< 'a'+1 <<"\n";
std::cout<< "b: "<< miep('b'+'a') << " " <<'a'+'b' <<"\n";
return 0;
}