|
From: Eric <eri...@cl...> - 2003-09-01 11:15:10
|
----- Original Message -----
it is possible your "Hello World!" pops up and goes away before you see it,
try the next piece of code.
#include <stdio.h>
int main() {
int a;
printf("Hello World!\n");
scanf("%d",&a);
}
From Eric
----- Original Message -----
From: "Kit" <seo...@st...>
To: <dev...@li...>
Sent: Monday, September 01, 2003 7:45 PM
Subject: [Dev-C++] Help!!
Hi folks,
I'm in need of help here. I recently decided to try out C++, but I am having
problems with it like no other, so I'm wondering if I'm going nuts. Here's
the problem:
I was just attempting the simple Hello World thing, just as a tester. Here's
my program:
#include <stdio.h>
int main() {
printf("Hello World!\n");
}
Pretty basic, right? Compiles okay.
Now, I have a dual boot system, and my problems started with the Linux sys.
It compiled with "> g++ -o myprog myprog.cpp" and produced a file called
only "myprog". Supposedly you type "> myprog" to get it to run, only it
returned "command not found". I tried a few different things for a while,
but that didn't work, so I rebooted to windows, and dowloaded Dev-C++.
Tryied it again. Ran it. Zilch. Absolutely nothing happened. Someone telling
me what is going on! I tried clicking on the executable, running in dos,
etc, nothing.
Anyone know the problem? It's driving me nuts, so I'll be very grateful for
any help.
Thanks in advance.
--
Kiti
|