Click here to Skip to main content
15,882,765 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: my list error! Pin
Richard MacCutchan21-Jan-10 5:09
mveRichard MacCutchan21-Jan-10 5:09 
AnswerRe: my list error! Pin
David Crow21-Jan-10 9:04
David Crow21-Jan-10 9:04 
Questionwhat is the difference between ..? Pin
krish_kumar21-Jan-10 4:06
krish_kumar21-Jan-10 4:06 
AnswerRe: what is the difference between ..? Pin
Cedric Moonen21-Jan-10 4:17
Cedric Moonen21-Jan-10 4:17 
AnswerRe: what is the difference between ..? Pin
molesworth21-Jan-10 4:20
molesworth21-Jan-10 4:20 
GeneralRe: what is the difference between ..? Pin
Rozis21-Jan-10 12:04
Rozis21-Jan-10 12:04 
GeneralRe: what is the difference between ..? Pin
Graham Shanks21-Jan-10 12:09
Graham Shanks21-Jan-10 12:09 
GeneralRe: what is the difference between ..? Pin
molesworth21-Jan-10 22:52
molesworth21-Jan-10 22:52 
QuestionHow to build "debug" and "release" in one command line for VS2008 Pin
Nandu_77b21-Jan-10 3:48
Nandu_77b21-Jan-10 3:48 
AnswerRe: How to build "debug" and "release" in one command line for VS2008 Pin
Richard MacCutchan21-Jan-10 5:12
mveRichard MacCutchan21-Jan-10 5:12 
AnswerRe: How to build "debug" and "release" in one command line for VS2008 Pin
krmed21-Jan-10 10:58
krmed21-Jan-10 10:58 
QuestionSharing common dialogs across applications Pin
Kyle P21-Jan-10 3:32
Kyle P21-Jan-10 3:32 
AnswerRe: Sharing common dialogs across applications Pin
LunaticFringe21-Jan-10 3:38
LunaticFringe21-Jan-10 3:38 
AnswerRe: Sharing common dialogs across applications Pin
Mattias G21-Jan-10 13:04
Mattias G21-Jan-10 13:04 

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.