diff options
| author | BensProgramma <[email protected]> | 2021-11-02 16:05:21 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-11-02 16:05:21 -0700 |
| commit | a1511954c6da226240d73b6456ce3746f7b4867b (patch) | |
| tree | 41fdf48b7bf15651bc1ecd1e7b0601c0e2dbed0e | |
| parent | Delete ScoresFunctions.cpp (diff) | |
| download | cst116-lab5-bensprogramma-a1511954c6da226240d73b6456ce3746f7b4867b.tar.xz cst116-lab5-bensprogramma-a1511954c6da226240d73b6456ce3746f7b4867b.zip | |
Delete CST116F2021-Lab5_10.5-10.6_Schroeder.cpp
| -rw-r--r-- | CST116F2021-Lab5/CST116F2021-Lab5_10.5-10.6_Schroeder.cpp | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/CST116F2021-Lab5/CST116F2021-Lab5_10.5-10.6_Schroeder.cpp b/CST116F2021-Lab5/CST116F2021-Lab5_10.5-10.6_Schroeder.cpp deleted file mode 100644 index 9e8d481..0000000 --- a/CST116F2021-Lab5/CST116F2021-Lab5_10.5-10.6_Schroeder.cpp +++ /dev/null @@ -1,81 +0,0 @@ -// Lab5_Schroeder_TestScores.cpp : This file contains the 'main' function. Program execution begins and ends there. -// -// /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// p247 10.5 and 10.6 Learn by doing exercises - -// -//#include "Scores.h" -// -// -//int main() -//{ -// int gradeCounts[5]{ 0 }; -// float testScore[NUM_STUDENT]{ 0.0 }; -// char letterGrade[NUM_STUDENT]{ 'A' }; -// -// -// ReadScores(testScore); -// LetterG(letterGrade, testScore, gradeCounts); -// cout << "\n\n"; -// displayG(testScore, letterGrade, gradeCounts); -// average(testScore); -//} -// - - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// p260 10.7 Learn by doing exercises -//# include<iostream> -//using namespace std; -// -// -// -//int main() -//{ -// char First[41]{}; -// char Last[41]{}; -// char Full[81]{}; -// -// cout << "Enter your first name: "; -// cin.ignore(cin.rdbuf()->in_avail()); -// cin.getline(First, 41); -// cin.clear(); -// cin.ignore(cin.rdbuf()->in_avail()); -// -// -// cout << "Enter your last name: "; -// cin.ignore(cin.rdbuf()->in_avail()); -// cin.getline(Last, 41); -// cin.clear(); -// cin.ignore(cin.rdbuf()->in_avail()); -// -// for (int i = 0; i < strlen(Last); i++) -// Full[i] = Last[i]; -// Full[strlen(Last)] = ','; -// Full[strlen(Last)+1] = ' '; -// for (int j = 0; j <strlen(First); j++) -// Full[strlen(Last)+2+j] = First[j]; -// -// cout <<"Contents of the 'Full Name Array': "<< Full; -//} -// -//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -// Exercise 10.8 #7 - -#include<iostream> -using namespace std; - -char string_1[] = "Frank"; -char string_2[] = "Franklyn"; - -int main() -{ - - int compare = strncmp(string_1, string_2, 6); - cout << "Comparing the first 6 chars of strings: '" << string_1 << "' and '" << string_2 << "'"; - if (compare == 0) - cout << "\nSame\n"; - else if (compare < 0) - cout << "\nDifferent\n"; -}
\ No newline at end of file |