Using SiMPLE To Program In C++


If you're familiar with the C++ language (or if you would simply like to try your hand at it), SiMPLE provides you with the capability of writing programs in C++.

As an example, let's look at the ever-popular "Hello World" program that the writers of C++ tutorials are always so fond of using:

            // My first program in C++
            #include <iostream.h>
            int main ( )
            {
               cout << "Hello World!";
               return 0;
            }

First, we would choose a name for the program. (Let's call it "HELLO".) So, on SiMPLE's command line, you would type:

            EDIT HELLO.CPP

This would bring up the "blue screen" text editor into which you would type the source listing. When you are finished, you would type:

            COMPILEC HELLO

on the command line to create the object file for the program. Next, you would type:

            LINK HELLO

on the command line to link your program's object file with the required object files in the C++ libraries. And finally, you you would simply type:

            HELLO

on the command line to execute the program.



  [ Webmaster | FAQ's | Home Page | Contact Us ]