1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
|
#include <cstdio>
#include <cstdlib>
#include <iostream>
#define NULLPTR 0
using namespace std;
int readArray(int integerArray[], int maxNumElements);
int main()
{
char *name[6];
short clevel[6];
char grade[6];
// input number of classes
int numclasses;
cout << "\nEnter the number of classes you are currently enrolled in: ";
cin >> numclasses;
// input name of first class
cout << "\nEnter in the name of your first class: ";
cin >> name[0];
// input the class level
cout << "\nEnter the level of the class i.e: 0,1,2,3 (0 is for AP) : ";
cin >> clevel[0];
//input grade
cout << "\nEnter your current grade in the class: ";
cin >> grade[0];
cout << "\nEnter the name of your second class: ";
cin >> name[1];
cout << "\nEnter the level of the class i.e: 0,1,2,3 (0 is for AP) : ";
cin >> clevel[1];
cout << "\nEnter your current grade in the class: ";
cin >> grade[1];
cout << "\nEnter the name of your third class: ";
cin >> name[2];
cout << "\nEnter the level of the class i.e: 0,1,2,3 (0 is for AP) : ";
cin >> clevel[2];
cout << "\nEnter your current grade in the class: ";
cin >> grade[2];
cout << "\nEnter the name of your fourth class: ";
cin >> name[3];
cout << "\nEnter the level of the class i.e: 0,1,2,3 (0 is for AP) : ";
cin >> clevel[3];
cout << "\nEnter your current grade in the class: ";
cin >> grade[3];
cout << "\nEnter the name of your fifth class: ";
cin >> name[4];
cout << "\nEnter the level of the class i.e: 0,1,2,3 (0 is for AP) : ";
cin >> clevel[4];
cout << "\nEnter your current grade in the class: ";
cin >> grade[4];
cout << "\nEnter the name of your sixth class: ";
cin >> name[5];
cout << "\nEnter the level of the class i.e: 0,1,2,3 (0 is for AP) : ";
cin >> clevel[5];
cout << "\nEnter your current grade in the class: ";
cin >> grade[5];
cout << "\nEnter the name of your seventh class: ";
cin >> name[6];
cout << "\nEnter the level of the class i.e: 0,1,2,3 (0 is for AP) : ";
cin >> clevel[6];
cout << "\nEnter your current grade in the class: ";
cin >> grade[6];
system("PAUSE");
return 0;
|