I wanted the space, it makes it easier to read, why else would I add another endl? Wait, actually it doesn't add a space, I don't know why though. Oh well.Originally posted by 4play@9 October 2003 - 00:21
this will give you a space inbetween lines and the #include "stdafx.h" is not needed.Code:// Chalkboard.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream.h> int main(void) { int count; for(count=1;count<=500;count++) cout<<"I will not throw paper airplanes in class."<<endl; cout<<""<<endl; return 0; }
Yes it is, it's a required header file. Observe what happens during compile when I remove it.
--------------------Configuration: Chalkboard - Win32 Debug--------------------
Compiling...
Chalkboard.cpp
d:\program files\microsoft visual studio\c++ files\chalkboard\chalkboard.cpp(21) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
Chalkboard.exe - 1 error(s), 0 warning(s)
Did you actually try to run the program?
Bookmarks