In the book that I hired from the library and another one that I have at home both say this: #include iostream.h void main(void) { cout << "hello world"; } The problem is they used to work but know I can only open them in DOS that's not a problem for me but if I want to mail someone else my work and they don't know how to use DOS then it's a little problem. Thomas
jaapdeboer
Posts
-
can someone write a simple programm for me it should just take a minute -
can someone write a simple programm for me it should just take a minute#include conio.h #include iostream.h void main (void) { cout << "Hello World!\n"; getch(); // If I use return 0; there comes an error } Thomas
-
can someone write a simple programm for me it should just take a minutethis is what I did and when I try to compile now he gives an error #include #include //I thought I needed this one as well int main() { cout << "hello world"; getch(); return 0; }
-
can someone write a simple programm for me it should just take a minuteHello, I have a problem with the .exe's that I make. I open them and they close very fast so you can hardly read it or not. I asked this question a while ago but now I ask if one of you would write the programm "hello world" with the getch() command because that's what they advised me but I have no Idea how. n00b Thomas
-
my first time programmingHello, a while ago I planned on programming with c/c++. The problem was the compiler. Now I have one but when I make just a simple program like: "hello world" the DOS screen will apear for just very short. Then it closes itself. I was thinking maybe it was logical because you just tell him to show "hello world" and then it quits by itself. So I made a program were you had to put 2 numbers in variables. I entered 2 numbers and pressed ENTER and the same thing happens. Does anyone know how to solve this? Thomas