Re: [Dev-C++] Hello, i have a big problem.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Scott S. <ssi...@sp...> - 2005-07-03 12:34:26
|
GLa...@ao... wrote:
> Hello there, i have the c++ book for dummies and the Dev C++ program.
> when you first start out in the book it tells that the starter code
> should look like this:
>
>
> #include <iostream>
> #include <stdlib.h>
>
> int main(int argc, char *argv[])
> {
>
> system(*PAUSE*);
> return 0;
> }
>
>
> instead mine reads this
>
>
> #include <cstdlib>
> #include <iostream>
>
> using namespace std;
>
> int main(int argc, char *argv[])
> {
> system("PAUSE");
> return EXIT_SUCCESS;
> }
>
>
> and i followed everything right. i am using an hp with win xp. my
> email address is gla...@ao... <mailto:gla...@ao...>
The code is similar, don't worry. Everything will still function, except
the Dev-C++ code is more recent than the book. Now, instead of
<iostream.h>, we have <iostream>, and because <stdlib.h> was in the C
language, it becomes <cstdlib>. You will learn more on that later. With
the new header files, you must include using namespace std; in your
code, and this will also be explained later. EXIT_SUCCESS is 0, so they
both mean the same thing. Its nothing to worry about, just keep going
and use the dev-c++ base code instead of the books, and if it bothers
you or confuses you, try to find a more recent book.
--
~~Scott Simontis~~
ssi...@sp...
|