void main
instead of int main
. Now, there are probably "expert" C++ nuts out there looking at my page and whining about all the "non-proper" code that I may have put on here. The purpose of this code is to be portable and easy to understand, not necessarily "proper" or "stylish". You'll probably find a better way of doing things later on after you've gotten a good grasp of the language.void main
, I used that because my classmates (back when I was in C++ class - not anymore) were using a really shitty book that did that all the time (and put the function prototypes inside function definitions ... ahhhhhhhhhh nooooooooo!). So rather than confuse the class more, I simply let it be. Change it? Nah, not worth it. Doesn't really matter anyway - not with the programs I'm detailing here.#include <iostream.h>
main()
{
cout << "Hello World!" << endl;
}
Page Content & Design ©1998 By Neil C. Obremski |
home |
prfce |
loop |
refs |
ptrs |
struct |
class |
array |
rsrc |
site |
indx |
Wed May 12 21:45:26 1999 |