Here is my current C ++ code, I would like to know how write a line of code Is I still using Thanks for helping cin.getline (y) or something different? I have checked, but nothing can be found when I run it, it works perfectly, apart from it, the word a is necessary for output to me instead of completely lines Is it I need help with whom? I have underlined it in the code.
#include & lt; Iostream & gt; # Include & lt; Cstdlib & gt; # Include & lt; Cstring & gt; # Include & lt; Fstream & gt; using namespace std; Int main () {char x; Cout & lt; & Lt; "Would you like to type in the file?" & Lt; & Lt; Endl; Cin & gt; & Gt; X; If (x == 'y' || x == 'y') {four or [3000]; Cout & lt; & Lt; "What would you like to write?" & Lt; & Lt; Endl; Cin & gt; & Gt; Y; Offstream file; File.open ("Characters.txt"); File & lt; & Lt; Stellen (Y) & lt; & Lt; "Characters." & Lt; & Lt; Endl; File & lt; & Lt; Endl; File & lt; & Lt; Y; // & lt; - How do I write a full line instead of a word file here. Close (); Cout & lt; & Lt; "Done. \ A" & lt; & Lt; Endl; } And {cout & lt; & Lt; "Okay goodbye." & Lt; & Lt; Endl; }}
string response; Gateline (conn, response);
Comments
Post a Comment