Mail Archives: djgpp/2002/11/26/14:30:05
>
> first, it is good practice to post the exact error messages you get: help
> others help you.
i couldnt read the whole error statement because it was cut off the
screen on the right, i tried to resize it by maximizing the screen to
full view but the text size changes and i still couldnt read it all...
thats why i couldnt post it. sorry. though when i used gpp instead of
gcc, i didnt get any errors (see my previous message)
> by the way, make sure you use the standard C++ headers, rather than the
> old-style headers. the latter will cause gcc to issue warnings:
i add using namespace std; to my programs and they compile
correctly... even though i still dont fully understand what that line
is doing.. opening standard libraries???
> #include <iostream>
>
> int main()
> {
> std::cout << "Hello World!\n";
> }
question, why didnt you add the return 0; line? is it the new
compiler, or is C++ changing... someone mentioned that C++ changes...
is that so true?? i thought it was just the versions of GCC thats are
changing to make the coding easier for us, no?
Question, i usually compile a program, click on PROJECTS > ADD ITEM
and add the one im working on and run it. simple as that. ok.
but i just tried a new way, i open RHIDE, click on PROJECTS>OPEN
PROJECT and select hello.cpp for example and open it. i click on ADD
ITEM and add hello.cpp to the opened project. i run it and it works.
but there was a difference from my old way and this way.
in the old way, my programs run using aout.exe (i have no idea where
is came from or what it stands for!) but i think it has to do with
projects and running programs.. anyway, the same aout.exe runs all my
programs, but every time i run i program i have to make sure from
WINDOWS>LIST that the one i want to run is the only one there..
otherwise the first one listed is the only one that will run.
the second way, i got a hello.gdt and a hello.gpr they are projects i
guess, but is this the correct way? should i make a project out of
every program i write?
before i had this compiler/editor i used to run an older version on
windows ME and when i run a program i get a hello.o and hello.exe with
my hello.cpp, shouldnt i just get the same thing here too? or is the
new way a better one? i am new to all of this and i would really like
it if you or anyone can clear things out for me. thanks :)
one last thing, when i am in DOS, and i just ran a program, i want to
print the output i see.. someone told me to use the print screen
button, but is there another way? thanks
regards,
Shaymaa
PS i know i ask so many things, and you guys have been really patient
with me.. thank you :)
- Raw text -