Well, As in my last cry for help I was telling you all how I am writing programs for a Advanced Programming class. The classes are merged witht the kiddies learning True-BASIC, the C++ kids learn basicly on our own and code the BASIC programs to C++. Being a **** at C++, I must inquire;
This week the BASIC kids were working on READ-DATA segments in thier class... But me and the other C++ kids thin these would be equivalent to arrays or strings or maybe even a class, we have no idea where to start. Here is a breif summery of the program we are supposed to write:
Write a program that has an internal datadase of 10 Colleges w/ mascots. Let the user input the number of colleges to display at one time... Here is what the output might look like;
Number of colleges to display: 2
College State Mascot:
---------------------------------------
UNL NE Huskers
Greenbay MN Packers
Here is my code so far if it helps;
#include <iostream.h>
#include <string.h>
using namespace std;
int main () {
int i;
int numofcol;
/* Where other variables should go
Inluding the colleges
*/
// INPUT
cout << "Input the number of colleges to display: ";
cin >> numofcol;
cout << "nn";
//"FOR" loop
for(i = 1; i <= numofcol; i++) {
cout << i << endl;
}
system("PAUSE");
return 0;
}
Aqua-Soft Forums