Click here to Skip to main content
15,908,775 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: The Boss and the Worker Pin
Rozis22-Jan-10 12:06
Rozis22-Jan-10 12:06 
AnswerRe: The Boss and the Worker Pin
iceman861621-Jan-10 15:03
iceman861621-Jan-10 15:03 
GeneralRe: The Boss and the Worker Pin
Rozis22-Jan-10 12:07
Rozis22-Jan-10 12:07 
AnswerRe: The Boss and the Worker Pin
Adam Roderick J21-Jan-10 17:51
Adam Roderick J21-Jan-10 17:51 
GeneralRe: The Boss and the Worker Pin
Rozis22-Jan-10 12:05
Rozis22-Jan-10 12:05 
Questionc++ integration subroutine. Pin
mrby12321-Jan-10 12:50
mrby12321-Jan-10 12:50 
AnswerRe: c++ integration subroutine. Pin
Mattias G21-Jan-10 12:55
Mattias G21-Jan-10 12:55 
GeneralRe: c++ integration subroutine. Pin
mrby12321-Jan-10 13:05
mrby12321-Jan-10 13:05 
GeneralRe: c++ integration subroutine. Pin
Mattias G21-Jan-10 13:21
Mattias G21-Jan-10 13:21 
QuestionCompiling an assembly file with Visual Studio Pin
Jim Crafton21-Jan-10 8:44
Jim Crafton21-Jan-10 8:44 
AnswerRe: Compiling an assembly file with Visual Studio Pin
Jim Crafton21-Jan-10 8:47
Jim Crafton21-Jan-10 8:47 
QuestionDialog hang Pin
Member 686483921-Jan-10 8:22
Member 686483921-Jan-10 8:22 
AnswerRe: Dialog hang Pin
Mattias G21-Jan-10 12:39
Mattias G21-Jan-10 12:39 
GeneralRe: Dialog hang Pin
Member 686483922-Jan-10 6:38
Member 686483922-Jan-10 6:38 
GeneralRe: Dialog hang Pin
Mattias G22-Jan-10 11:13
Mattias G22-Jan-10 11:13 
QuestionDisabling Entire MFC ActiveX Control Pin
wgoodwater21-Jan-10 7:47
wgoodwater21-Jan-10 7:47 
AnswerRe: Disabling Entire MFC ActiveX Control Pin
LunaticFringe21-Jan-10 8:31
LunaticFringe21-Jan-10 8:31 
GeneralRe: Disabling Entire MFC ActiveX Control Pin
wgoodwater21-Jan-10 8:33
wgoodwater21-Jan-10 8:33 
GeneralRe: Disabling Entire MFC ActiveX Control Pin
LunaticFringe21-Jan-10 8:40
LunaticFringe21-Jan-10 8:40 
QuestionCannot remove popup from CVSListbox - Help????? [modified] Pin
gamejunk21-Jan-10 7:20
gamejunk21-Jan-10 7:20 
QuestionCMFCStatusBar in ActiveX control without Title Bar Pin
wgoodwater21-Jan-10 5:33
wgoodwater21-Jan-10 5:33 
Questionmy list error! Pin
wbgxx21-Jan-10 4:54
wbgxx21-Jan-10 4:54 
#include<iostream>
using namespace std;
class list
{
public:
int number,score;
char name[10];
class list*next;
};

void create(list* head)
{
list* p=head;
while(1)
{
list* pp=new node;
if(!pp)
{
cout<<"erroe"<<endl;
exit(1);
}
cout<<"Please input the student ID:";
cin>>pp->number;
if(pp->number==0)
break;
else
{

cout<<"Pleast input the studnet name";
cin>>pp->name;
cout<<"Please input score:";
cin>>pp->score;
p->next=pp;
p=pp;
}

}
}

void show(list* head)
{
list* ptr=head;
cout<<"\n -- STUDNET ---"<<endl;
cout<<"ID\tNAME\tscore\n============================"<<endl;
while(ptr!=NULL)
{
cout<<ptr->number<<"\t"<<ptr->name<<"\t"<<ptr->score<<endl;
ptr=ptr->next;

}
}

int main()
{
list* head=NULL;
create(head);
show(head);
return 0;
}
AnswerRe: my list error! Pin
Cedric Moonen21-Jan-10 5:00
Cedric Moonen21-Jan-10 5:00 
QuestionRe: my list error! Pin
Maximilien21-Jan-10 5:04
Maximilien21-Jan-10 5:04 
AnswerRe: my list error! Pin
LunaticFringe21-Jan-10 5:06
LunaticFringe21-Jan-10 5:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.