I'm trying write a program with a image shell(?),like a real software.
this is my simple code and how can i do..

#include <iostream>

using namespace std;

struct student{
    char name[20];
    int ID;
    int score;
};
int main()
{
    cout<<"How many students in the class?\nInput the number:"<<endl;
    int n;
    cin>>n;
    student *a;
    a=new student[n];
    for (int i=0;i<n;i++){
        cout<<"input the name of student "<<i+1<<" :"<<endl;
        cin>>a[i].name;
        cout<<"input "<<a[i].name<<"'s ID:"<<endl;
        cin>>a[i].ID;
        cout<<"input "<<a[i].name<<"'s score:"<<endl;
        cin>>a[i].score;
    }
    for (int i=0;i<n;i++)
        for (int j=i+1;j<n;j++)
            if (a[i].score<a[j].score){
                student tmp=a[i];
                a[i]=a[j];
                a[j]=tmp;
            }
    cout<<"===List of students==="<<endl;
    cout<<"Name\tID\tscore\n";
    for (int i=0;i<n;i++)
        cout<<a[i].name<<'\t'<<a[i].ID<<'\t'<<a[i].score<<endl;
    return 0;
}

maybe that named "Graphical interface"...i'm not sure...

I can't understand your question? Image shell?

Okay from what I gather, you want your program to look like a real software with all the graphical user interface and all that ?

Well the thing is that creating user interfaces is not the thing C++ is best at. Creating GUI applications require a *lot* of code and expertise in the specific domain not to mention interfacing with a third party library.

If I were you, I would slow down a bit and learn all the C++ concepts using normal console applications and then move on to the higher concepts like Graphical Applications and all that.

Member Avatar for iamthwee

If you want really want to be GUI programmer, you need to look at java, vb.net and c#.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.