Enter "jove prog1.cpp
The command "jove p1.cpp
" starts up a text editor called JOVE,
working with a file buffer called p1.cpp.
JOVE is a lot like some PC applications with which you may or may not
familiar: Notepad, TextEdit, or SimpleText. It is a simple text editor
better than a word processor for the kind of thing we are doing.
Unless the file already exists, the screen goes blank, except for some
documentation lines at the bottom. JOVE is running. Type in your program
Now figure out how to use the keyboard to do this JOVE command:
What I mean by the command above is "while holding down the ctrl-key
hand, with the other hand press the x-key, release the x-key, press the
and release the \-key. Finally release the ctrl-key."
JOVE -- a quick reference guide
for more information about JOVE commands:
If you haven't done it already go ahead now and do a C-x C-\
command in the window where JOVE is running.
The C-x C-\
command causes a copy of the program you typed to
saved. It is saved as a file named p1.cpp, because of the name you
C++ programs for the g++
compiler on the Suns are supposed to
names ending in ".cpp" or ".cc". In other words, they should have names
p1.cpp, myprog.cc, prog3.cpp, and so on. This is very important. If the
".cc" or ".cpp" is missing, the compiler or linker may fail, even
program has no errors.
Now do this JOVE command:
(You have to use again the definition of C- you just learned.) The
causes JOVE to terminate. You should now be seeing your shell prompt
again (at the bottom of the screen).