Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
CAE C++ Day 3 tests
//g++ 5.4.0 #include <iostream> #include <typeinfo> #include <list> int main() { std::cout << "Test auto bool used as int in comparison\n"; auto wTest = false; if (wTest > 0) { std::cout << " Hello, world!\n"; } else { std::cout << " Goodbye, cruel world!\n"; } std::cout << "Test using list of items with type declared only once\n"; auto wVar = false; std::list<decltype(wVar)> wVarList; wVarList.push_back(wVar); std::cout << " Size " << wVarList.size() << "\n" ; //std::cout << typeid(decltype(wVar))::name(); }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Exempel 2
Using copy_n
mua
MAC
weak_ptr and Circle_reference
mergesort tree
Romberg Integration
Vector+Memory_Adv_C++_Tutorial
Adress
memcpy
Please log in to post a comment.