No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
[code=c++] struct if1 { string idnum;//id number for the student string lastname;//last name of student string firstname;//first name of student int examscore[maxexam];//array of all the exam scores of the student int hwscore[maxhw];//array of all the home work scores of the student }; void alphasort(if1 student[], int n) //the alphasort function … |
|
Re:
[code] #include <iostream> #include <fstream> #include <string> using namespace std; void writeArray(); void readArray(); const int capacity = 4; //const int spec = 4; double numbers[]={12456.89,234.00,3456.78,21212.50}; //string A12345; //string A45678; //string B21223; //string B21435; string names[]={"A12345","A45678","B21223","B21435"}; int main() { writeArray(); readArray(); } void readArray() { ifstream infile; infile.open ("accounts.txt"); infile … |