Home > Back-end > Question on the TXT file output, I want to input data in figure after the location of the output sho
Question on the TXT file output, I want to input data in figure after the location of the output sho
Time:11-06
#include #include #include #include using namespace std; Int main () { Int m; cout <"Please enter the number of students:" & lt; <""; cin> m; Ofstream ofile (" grade. TXT "); Ofile<"Grade" & lt; cout <"Please enter the age, the marking:" & lt; For (int I=0; I & lt; m; I++) { Int x=0, y=0; cin> X & gt;> y; int j=0; Ofile & lt; While (j & lt; Y) { Ofile & lt; <"*"; j++; } Ofile} Here//////////// Ofile. Close (); cout <"At the end of the output" & lt; return 0; }
CodePudding user response:
In front of the program is not have output? According to write