User profile: Smac89

User info
User name:Smac89
Name:N_Mint
Location:/bin/bash
History
Joined:
Number of posts:1444
Latest posts:

fflush
fflush is the C equivalent of the c++ std::endl or std::flush. In C, this is a function while in C++...

How to create an n amount of 'for' loops without writing all of them out?
Take a look at this: http://www.cplusplus.com/forum/general/135491/#msg724044 Look especially at th...

Strings and Boolean
[code]int main() ... if (staggered == "yes" || staggered == "Yes") { /*OR declare stag on the same l...

referenes and pointers
You are basically de-referencing a null pointer, which will result in a segmentation fault error if ...

returning references
Read this: http://www.learncpp.com/cpp-tutorial/43-file-scope-and-the-static-keyword/ In essence, t...