User profile: Peter87

User info
User name:Peter87
Number of posts:5547
Latest posts:

Interesting use of auto to make a foreach macro
C++11 already has a similar feature called [i]range-based for loops[/i]. [code]for (auto& word : myW...

Checking if variables are pairwise distinct
To use std::set you need to include <set>.

sleep() command trouble
You need to flush cout to make sure the output is made visible. [code] cout<<"Loading" << flush;[/c...

Char Array Vs Strings
First of all, make sure to turn on compiler optimizations. I guess some of the slowness of the fir...

I am facing the problem with goto statement
It is. You find "*/" at position 6 so when the first loop looks for " " on that position it will not...

This user does not accept Private Messages

User: Peter87

  • Public profile