Mail Archives: djgpp/1999/12/28/18:50:13
#include <iostream.h>
void main ()
{
cout << 2 + 2;
}
>>in the blue screen of RHIDE, how do I compile and run this?
____________________
Compile menu
Compile - will attempt to compile the current file/class ( C++ source files
)
Make - will compile any new/changed classes in your project, link and build
the executable
Link - links all compiled files/classes
Build - will compile and link all classes whether changed or not and buld
executable
_________________
Run Menu
Run - runs the project once built
__________________
After running will return to blue screen, Press Alt + F5 to view the
results (Windows Menu -> Userscreen)
--
_____________________________________________
Mark Cowan
Newcastle Australia
Phil wrote:
> Hi,
>
> I've had a PC for a year, running Win95.
> I'm a complete newcomer to any sort of programming, including using DOS.
>
> I bought a book on C++, because it looks like quite a high level
> language, but also fairly
> powerful (?). The book I got is for complete beginners, but obviously
> doesn't have any detail about how to compile and run programs because
> each compiler is different.
> Having downloaded DJGPP and installed it properly (as far as I can
> tell), I read ALL the documentation which came with it, but most of it
> didn't make any sense; it tends to be aimed at people who know what
> they're doing I think (?). I've tried for several hours to compile and
> run the first program in the book using the RHIDE GUI interface (the
> command line stuff scares me!!! I don't understand it at all yet).
> Can anyone tell me what I should be doing please.
> Specifically, after writing...
>
> #include <iostream.h>
> void main ()
> {
> cout << 2 + 2
> }
>
> in the blue screen of RHIDE, how do I compile and run this?
> Any links to complete beginner reading is also most welcome.
> Many thanks.
>
> Phil
- Raw text -