In C++, the statement
cout << endl; is about 4 times as slow as
cout << "/n";, because
endl performs an
fflush(stdout).
Test after coding. Read, understand, design, code, test--for a small unit, the process goes like this.
Test after coding. Read, understand, design, code, test--for a small unit, the process goes like this.