Reading and writing to text files.[quote]but how does the in file know that n is the size?[/quote] It doesn't "know". It is up to you ...
Reading and writing to text files.In the first program there is this:[code] //write out the size of vector outFile << "Size: "...
Reading and writing to text files.Why do you have [code]i > 10[/code] at lines 25 and 33? [code] for (int i = 0 ; i > 10 ; i++)[/code]...
reading different values from a .txtTry this: [code] ifstream infile("bsp.txt"); if (!infile.good()) { cout << "File...
Review my quadratic formula program please.Well, three of your variables, [code]discriminant, posRoot, negRoot[/code] are used in only one func...
This user does not accept Private Messages