 |
posted June 08, 2000 14:59
 |
 |
 |  |
quote:

#include <iostream.h> cout << "string\n"; or cout << "string" << end1; where 'string' is the text string.
 |
As someone who has just spend much of the last 6 hrs helping people proofread their beginning Ada and C programs, I guess I'm still in that mindset  So, actually this is a C++ program, not a C program, if anyone really wanted to try that out somewhere C would use printf statements instead, as well as a slightly different file to include. The printf statement in place of cout might have even helped Smash get the gist of the code just from context. also, can anyone spot the typo in the alternate way to print a new line? thats right! the 1 should be an l  (lower case 'L') As one other side note to the actual problem, I'm surprised I didn't think of that - there are a lot of people who load their programs from notepad to UNIX and I always have them do a search and replace on all those pesky little carriage returns (^M) - they don't affect anything compilerwise, but do confuse text editors like emacs.
and my appologies to Tom and Steve - like i said, i've been spending too long today pointing out the obvious and just couldn't help myself  edit: odd - I just tried to edit this page, since the <iostream.h> was missing in my original post - but its already there??? wonder if it will show up this time :| [This message has been edited by SCG (edited June 08, 2000).] |