|
|
|
& Handouts |
Assignments |
|
|
|
Questionnaire (Lab I-5 points) Distribute & Discuss Course Outline Log Out Of UNIX - To NT Log Out of NT To UNIX Operating System ASCII bit, byte Telnet janus01.cs.trinity.edu - ls, ls -l, ls -a, ls -al |
|
|
|
|
|
Mother Board Power Supply Keyboard Bus ASCII Telnet Continued UNIX Continued yppasswd cp mv rm clear ls P*, ls *.jpg rmdir vi cat man cd mkdir rmdir |
|
UNIX Lab |
|
|
|
bit, byte rmdir, mkdir, cd, cd.., ruptime, ls vi editing Launch Terminal Window Launch gedit Application # include libraries [iostream.h] main (int argc, char * argv[]) cout << "Hello" << endl; cout << 2 << " " << 3 << endl; cout << 2 * 3 << endl; variable int declaration: int No; assignment: No = 5; cout << "No = " << No << endl; return 0; { } - begin & end of program To Compile : g++ First.cpp (produce a.out binary) To Esecute: a.out High Level Language: C++ ==> First.cpp Machine Language: binary ==> a.out decimal numeration system (0-9) binary numeration system (0-1) counting in decimal counting in binary convert binary to decimal convert decimal to binary storage of integers |
|
Red Hat Linux Create a directory 1320 Create Me.cpp in directory 1320 (program to display your name) You may use vi or gedit Application Compile: g++ Me.cpp [in Terminal Window] Execute: a.out [in Terminal Window] |
|
|
|
Collect Notebook decimal numeration system (0-9) binary numeration system (0-1) octal numeration system (0-7) counting in decimal counting in binary counting in octal convert binary to decimal convert binary to octal convert decimal to binary convert decimal to octal convert octal to binary convert octal to decimal storage of integers (int) storage of integers (short int) storage of integers (long int) selecting the right container for your data |
|
|
|
|
|
Analyze The Probelm Design An Algorithm To Solve The Problem Implement The Algorithm Test The Program Review Storage of Integers
Program Comments
|
|
|
|
|
|
Surprise Quiz On Numeration Systems & Chapter 1 Study Questions and Terms Quiz Should Help Prepare Us For Exam I Terms & Symbols for Chapter
1
|
|
|
|
|
|
Pass By Reference Pass By Value Prototypes Preprocessing Defines Preprocessing Includes |
|
|
|
|
|
Parameters, Arguments Pass By Reference Pass By Value Prototypes Preprocessing Defines Preprocessing Includes |
Pass By Reference By Value |
|
|
|
|
PostTest Loops Fixed Repetition Loops |
Loops |
|
|
|
|
PostTest Loops Fixed Repetition Loops Collect Folders |
|
|
|
|
|
Fixed RepetitionLoops Intro To Random Number Calls Rand() Rand() / 2,147,483,647.1 * 6 (int) Rand() / 2,147,483,647.1 * 52 + 1 Guess My Number Game |
|
|
|
|
|
More Random Numbers |
Arrays |
|
|
|
|
#define MAX int Array[MAX+1], ActNo DisplayIntArray(Array, ActNo,
Max)
|
|
|
|
|
|
#define MAX int Array[MAX+1], ActNo DisplayIntArray(Array, ActNo,
Max)
|
|
|
|
|
|
|
|
|
|
|
|
Arrays Revisited |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private public constructor class Student
|
|
|
|
|
|
Class Lab |
|
|
|
|
|
|
|
Due 3/28/00 |
|
|
|
Functions Low & High FillSequential FillRandom Prototypes In Class Description
|
|
|
|
|
|
Default Arguments Passed To Function |
|
|
|
|
|
Sequential Search Order N
|
|
Due 4/11/00 |
|
|
|
Files Reading Character File Reading Numerical File |
|
|
|
|
|
Sequential Files istream InputFile ostream OutputFile InputFile.open("In.txt") InputFile.open("In.txt") InputFile.close( ) InputFile.close() InputFile.get(Ch) InputFile >> No; |
|
Will Collect Notebooks 4/20 |
|
|
|
Quiz -LongIntArray Review LongIntArray Class Review Functions File Copy Program Fill Array From File |
|
Finish By 4/18/00 End Of Final Project Get Help Mon if need it! Will Collect Notebooks 4/20 |
|
|
|
stdio.h
int -> %d
|
|
Due 4/27/00 |
|
|
|
Function Overload Review |
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
.hpp and .cpp file separation |
|||
|
|
|
|
|
|
|
|
||||