My graphics.h substitute in C++
Friday, November 23rd, 2007I used this header fill in our Data Structure.
Just post comments if you have any problems using them. I know you do. =p
I used this header fill in our Data Structure.
Just post comments if you have any problems using them. I know you do. =p
#include
#include
using namespace std;
int main()
{
int limit;
cout<<"Enter Number of Inputs: ";
cin>>limit;
string name[limit];
int num[limit], max, min, ma=0, mi=0;
for ( int a=0; a!=limit; a++ ) {
cout<<"Enter Name of User: ";
cin>>name[a];
cout<<"Enter Number: ";
cin>>num[a];
max = num[0];
min = num[0];
}
for ( int a=0; a!=limit; a++ ) {
if ( max < num[a] ) {
max = num[a];
ma = a;
}
if ( min > num[a] ) {
min = num[a];
mi = a;
}
}
cout<
}