|
From: Per W. <pw...@ia...> - 2005-07-16 19:17:03
|
You - or the tool you used - capitalized the cout symbol. Except for that, the line is correct. For now, you can program as if '\n' and endl where identical. The '\n' is more efficient, but if you mix output to multiple file streams and they are all directed to the console then you must use endl to force the output of all text of one stream before switching to output using the next stream. As have already been said in an earlier answer, the runtime library caches data and outputs it in larger blocks instead of processing each individual character. This greatly reduces the amount of work needed to send characters to the display or writing them to a file. However, because characters are cached, it is possible that an error message (output to stderr) might intermix incorrectly with normal output sent to the stdout stream. If no flush command is used, the runtime library only emit data when having "enough" characters or when file stream is closed. /Per W On Sat, 16 Jul 2005, yakir arbib wrote: > Hi > Although my screen reader uses audio to give the info about data on the > screen,I can read the pungtuation and every other simble by pressing > "home" > To get to the start of the line,and by pressing the right erro > repeetedly I can read every leter,simble and pungtuation > I really thank you for wanting to help me,and would ask you to try and > right a simple code in dev-c++ with out using the mous,I mean > Try to opperate from your desktop on til the point you compile the > code,just with the keybord,that way,you'll help me with knowing if you > can use dev-c++ only with the keybord,currently now if I wanna write a > program is: > Write the code in notepad,save the file in to my hard-drive,and open it > with dev-c++,then I press "control+f9"to compile,and "control+f10"to run > my program > But I'd be very happy if you can save me that time by giving me a > solution of using the keybord in d-c++ from the begeening of the code > writing. > Thanks > P.s can you describe me the diferens between \n"; > And <<endl; > And is this line right?: > Cout << "hi"<< "I think I'll understand it!" << "bye"<<endl; > Thanks again > yakir > |