User profile: Smac89

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

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...

How to read a specific word from a file?
Using Computergeek01 code: [code]#include <iostream> ... std::cout << Bill << ": " << Counter << st...

Searching
[code firstline=31]bool found = false; for(i=0; i<5; i++) //the loop is wrong { if(a.id[i] == a....