How do you read a file of the format:
121:yes:no:334
Here's my code:
int main(){
    string one, two;
    int three, four;
    ifstream infile;
    infile.open("lol.txt");
    infile >> three;
    getline(infile, one, ':');
    getline(infile, two, ':');
    infile >> four;
    cout << three << one << two << four;
    return 0;
}
output: 121yes0
So it ignores the secong get line, and a 0 is somehow found.
 
     
     
    