User profile: Peter87

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

Issue error checking user input
Remove line 80. The loop condition will read the input from the user. [code][s]std::cin >> userin;[...

Issues with std::shuffle compiling
std::shuffle is meant to be used with the random number engines from the <random> header. http://en....

string and stream input
Yes you can. [code]string str; // Read one word. //

reference change when push_back
std::vector stores its elements in an array. The size of that array can be read using the capacity()...

Segmentation fault on linux
Make sure argc >= 2 before calling atoi(argv[1]).

This user does not accept Private Messages

User: Peter87

  • Public profile