DeanMSands3 69 Junior Poster

If your using Turbo C, you're pretty much stuck in DOS. But you can run programs inside that magical wonder called DOSBox.

I recommend learning graphics using the old Denthor VGA trainers as translated into C by Chris Mann.
ftp://ftp.scene.org/mirrors/hornet/code/tutors/denthor/

Then, once you understand all that, then you're ready for the good stuff.
Get an Orwell Dev-C++ install and download libSDL. You'll love it.
(Orwell Dev-C++ and libSDL are both easily googled.)

DeanMSands3 69 Junior Poster

This will get you started.

#include <iostream>
using namespace std;
string studentName[10];
float studentMark[10];
char studentGrade[10];

char getGradeByMark(float mark){
    int iMark=(int)(mark/10);
    switch(iMark){
        case 10:
        case 9:
            return 'A';
        case 8:
            return 'B';
        case 7:
            return 'C';
        case 6:
            return 'D';
        default:
            return 'F';
    }
}

void getStudentData(int student){
    cout<<"Input name for student #"<<(student+1)<<": ";
    getline (cin,studentName[student]);
    cout<<"Input grade for student #"<<(student+1)<<": ";
    studentGrade[student]=getGradeByMark(studentMark[student]);
}




int main(){
    bool done=false;
    int option;
    for(int i=0;i<10;i++){
        getStudentData(i);
    }
    while(!done){
        cout<<"<List options>"<<endl;
        cout<<"Please select one of the options:";
        cin>>option;
        switch(option){
            case 1:
                cout<<"First option selected. There should probably be a function here."<<endl;
                break;
            case 2:
                cout<<"Second option selected. There really should be a function here."<<endl;
                break;
            case 3:
                cout<<"Third option selected. I suppose I'm lazy."<<endl;
                break;
            case 4:
                cout<<"Fourth option selected. This is not the option you are looking for."<<endl;
                break;
            default:
                cout<<"Exiting..."<<endl;
                done=true;
                break;

        }

    }
    return 0;
}
elsiekins commented: Dont give them the answer they have done nothing ! -1
DeanMSands3 69 Junior Poster
char numberAsString[6];
char numbers[][]=
{"Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine"};
do{
    printf("Enter a number (0-9): ");
    scanf("%d",&number);
}while(number<0||number>9);
strcpy(numberAsString, numbers[number]);
printf("You entered %s.\n", numberAsString);
WaltP commented: How does this convert TEXT to a NUMBER? -4
domatessuyu commented: don't work +0