Searched: ^C

Results from KenyonCpp web retrieved at 10:49 (GMT)

Dealing with character data input for an numeric (int or double) value. If someone enters a string or character to the following: int x; cin The program no longer...
Functions Sample code Program Using an Array //DISPLAY 7.1 Program Using an Array //Reads in 5 scores and shows how much each //score differs from the highest score...
Functions Sample code 2 //DISPLAY 7.13 Two Dimensional Array //Reads quiz scores for each student into the two dimensional array grade (but //the input code is...
Classes Class with a Member Function //DISPLAY 10.3 Class with a Member Function //Program to demonstrate a very simple example of a class. //A better version of...
Classes The BankAccount Class //DISPLAY 10.5 The BankAccount Class //Program to demonstrate the class BankAccount. #include using namespace std; //Class for a bank...
Classes Equality Function //DISPLAY 11.1 Equality Function //Program to demonstrate the function equal. The class DayOfYear //is the same as in Self Test Exercise...
Classes Equality Function //DISPLAY 11.1 Equality Function //Program to demonstrate the function equal. #include #include using namespace std; class DayOfYear...
Day 2 Sample code Hello world #include using namespace std; int main() { cout 01 08.cpp #include using namespace std; int main( ) { int number of pods,...
Day 3 Sample code Candy bar calculations //DISPLAY 2.1 A C Program #include using namespace std; int main( ) { int number of bars; double one weight, total...
Day 4 Sample code Initials //DISPLAY 2.3 The type char #include using namespace std; int main( ) { char symbol1, symbol2, symbol3; cout symbol1 symbol...
Day 5 Sample code Prime 1 not quite right #include using namespace std; int main() { int num,count 0; cout num; int i 2; while (i Prime correct...
Files Simple File Input/Output //DISPLAY 6.1 Simple File Input/Output //Reads three numbers from the file infile.dat, sums the numbers, //and writes the sum to the...
Functions Sample code Simple Function Call //DISPLAY 4.1 A Function Call //Computes the size of a dog house that can be purchased //given the user`s budget. #include...
Functions Sample code Pizza Compare //DISPLAY 4.10 Buying Pizza //Determines which of two pizza sizes is the best buy. #include using namespace std; double unitprice...
Functions Sample code Temperature Convert //DISPLAY 5.2 void Functions //Program to convert a Fahrenheit temperature to a Celsius temperature. #include void initialize...
Towers of Hanoi Example Code #include using namespace std; int moves; void hanoi(int diskSize, int source, int spare, int dest) { if (diskSize
Recursion Merge sort #include using namespace std; //The merge function void merge(int a , int startIndex, int endIndex) { int size (endIndex startIndex)...
Separate Compilation Digital Clock Main.cpp #include #include `dtime.h` using namespace std; int main( ) { DigitalTime clock, old clock; cout clock;...
Strings Sample Code C Strings to Integers //DISPLAY 8.2 C Strings to Integers //Demonstrates the function read and clean. #include #include //#include using...
Vectors Using a Vector //DISPLAY 8.9 Using a Vector #include #include using namespace std; int main( ) { vector v; cout next; while (next 0)...
A Structure Definition //DISPLAY 10.1 A Structure Definition //Program to demonstrate the CDAccount structure type. #include using namespace std; //Structure for...
SCMP 118 Course Calendar May be subject to change as course unfolds. Asways check here for latest update. Date Required Reading Quiz Homework Due...
Number of topics: 22

Topic revision: r84 - 2016-11-15 - JimSkon
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback