Note: In my experience, there many things that make this harder than it
looks: no account, no experience of UNIX, account shut down, forgetting
things learned in CSci201, and updated operating systems and compilers.
- To have logged in and used our Linux Lab computers.
- To have found and looked at the CS202 WWW site.
- To have found and looked at the Computer Science Club site.
- To have created, compiled, and run a simple C++ program.
- If any these steps seem impossible check the Exceptions below and/or ask me for help.
- Login as usual.
- Start Firefox(or other browser). Input this URL in the location box:
[ http://cse.csusb.edu/dick/cs202/ ]
- Try all the links at the top of the page.... where do they go?
- Can you find the way to this lab page?
- Visit the Computer Science Club
[ http://cse.csusb.edu/resources/club/ ]
and it's forums
[ csec_sb ]
- Create the smallest C++
program you can think of that outputs something when run.
- Make your program compile.
Please see Hints below.
- Run and test your program.
- Show me and get an A!
- Close down your browser and logout before you leave the laboratory.
- Show me what you have found on the web sites. Point out an error or ask a
question. Show me your program, on the screen and run it.
- Before the end of the laboratory period.
. . . . . . . . . ( end of section Ideal Scenario) <<Contents | End>>
If you don't have an account, haven't done this before, or
your account has died over the
spring break, tell me and get an instant
extension to complete the lab during the week. When done check in to my
office... you can login and demo your work there. Or else show me next
week in the lab.
- Tell me!
- I will figure out what to do depending how many people are new to Linux.
- First ask me.... Ken usually gives me a list of newly created accounts.
- Or fill in the form asking for one.
- In the lab, sit with someone who does have an account.
- Learn by watching them, asking questions, and taking notes.
You may need to study a UNIX books.
- Wait for your account to be created (typically 48 hours) and then do the lab.
- Tell me!
- Wait for your account to be fixed (typically 24 hours) and then do the lab.
- When done check in to my office... you should be able to login and demo your work there.
- Use Konqueror for this lab.
- Go back to the machine where you left Firefox running and kill it.
(I can help with the correct UNIX commands to kill a "zombie" process")
. . . . . . . . . ( end of section Exceptions) <<Contents | End>>
- Put simple C++ programs in files that end ".cpp", for example "lab01.cpp".
- I strongly suggest that in these labs you use my Q command. I makes
compilation and testing of lab programs very much easier -- less typing,
less worrying, and it stores a copy of each compiled program ready to be
used. Use it like this:
It will compile lab01.cpp to give output lab01 and then run it
as a test. The compiled program can be run at any time
Q will also handle most languages that we have on our lab machines.
- Or you can compile C++ programs with the command:
g++ -w -I/usr/include -o name name.cpp
- Different people use different editors to create their source code: vi,
emacs, gedit, ... Use whatever you like... and then use Q to test the
- I am an expert in using vi and can help you with it.
You can integrate Q and vi by this command:
and it also makes vi number your file.
- Turn on the line numbering in your editor!
- If you've used and like Eclipse.... that is OK ... and you can help me!
- accessor::=`A Function that accesses information in an object with out changing the object in any visible way".
In C++ this is called a "const function".
In the UML it is called a query.
- Algorithm::=A precise description of a series of steps to attain a goal,
[ Algorithm ]
- class::="A description of a set of similar objects that have similar data plus the functions needed to manipulate the data".
- constructor::="A Function in a class that creates new objects in the class".
- Data_Structure::=A small data base.
- destructor::=`A Function that is called when an object is destroyed".
- Function::programming=A selfcontained and named piece of program that knows how to do something.
- Gnu::="Gnu's Not Unix", a long running open source project that supplies a
very popular and free C++ compiler.
- mutator::="A Function that changes an object".
- object::="A little bit of knowledge -- some data and some know how". An
object is instance of a class.
- objects::=plural of object.
- OOP::="Object-Oriented Programming",
Current paradigm for programming.
- Semantics::=Rules determining the meaning of correct statements in a language.
- SP::="Structured Programming",
a previous paradigm for programming.
- STL::="The standard C++ library of classes and functions" -- also called the
"Standard Template Library" because many of the classes and functions will work
with any kind of data.
- Syntax::=The rules determining the correctness and structure of statements in a language, grammar.
- Q::software="A program I wrote to make software easier to develop",
- TBA::="To Be Announced", something I should do.
- TBD::="To Be Done", something you have to do.
- UML::="Unified Modeling Language".
- void::C++Keyword="Indicates a function that has no return".