What I'm trying to do here is writing data from the input. The very first try is going great but there is something wrong about "nama" input after it loops.
could you please be more specific on the problem. but to give some advice now:
1. you can declare and open an ofstream on the same line. like so: ofstream myFile("mf.asd');
2. Instead of the while loop and the int i declaration rather use: for(int i=1; i<100; ++i) {...}
and of course I put "while" instead of "for" because I still haven't know how much data I will get, so I can randomly enter a number just to start the program all over again so I can put another data. Thanks before.