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;
    student *a;
    a=new student[n];
    for (int i=0;i<n;i++){
        cout<<"input the name of student "<<i+1<<" :"<<endl;
        cout<<"input "<<a[i].name<<"'s ID:"<<endl;
        cout<<"input "<<a[i].name<<"'s score:"<<endl;
    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];
    cout<<"===List of students==="<<endl;
    for (int i=0;i<n;i++)
    return 0;

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

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.

This article has been dead for over six months. Start a new discussion instead.