Click here to Skip to main content
16,007,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: where is main defined? Pin
John M. Drescher18-Sep-03 9:05
John M. Drescher18-Sep-03 9:05 
GeneralRe: where is main defined? Pin
Anonymous18-Sep-03 11:05
Anonymous18-Sep-03 11:05 
AnswerRe: where is main defined? Pin
vcplusplus18-Sep-03 11:22
vcplusplus18-Sep-03 11:22 
AnswerRe: where is main defined? Pin
Alexander M.,19-Sep-03 2:57
Alexander M.,19-Sep-03 2:57 
GeneralRe: where is main defined? Pin
Dangleberry19-Sep-03 5:45
sussDangleberry19-Sep-03 5:45 
Generalpassing arguments Pin
Sirrius18-Sep-03 7:08
Sirrius18-Sep-03 7:08 
GeneralRe: passing arguments Pin
David Crow18-Sep-03 7:26
David Crow18-Sep-03 7:26 
GeneralRe: passing arguments Pin
Anonymous18-Sep-03 8:55
Anonymous18-Sep-03 8:55 
Here is the List class code.

#include <iostream>
#include <string>

#ifndef LIST_H
#define LIST_H

using namespace std;

struct node
{
string data;
node *next;
};




//Linked List class
class List
{
node *first;
public:

List()
{
first=NULL;
}
void insertNode(string newName)
{
node *p;
cout << newName << endl; //cout for debugging.
p=new node;
p->data=newName;
p->next=first;
first=p;

}


void outputList(ostream &out)
{

node *p;
p=first;

if(!empty())
{

while(p!=NULL)
{
cout << p->data << endl;
p=p->next;
}
}
else
cout << "The list is empty!" << endl;
}

bool empty()
{
if(first==NULL)
return true;
else
return false;
}


};

#endif
GeneralRe: passing arguments Pin
David Crow18-Sep-03 9:00
David Crow18-Sep-03 9:00 
GeneralRe: passing arguments Pin
Anonymous18-Sep-03 9:15
Anonymous18-Sep-03 9:15 
GeneralRe: passing arguments Pin
David Crow18-Sep-03 9:40
David Crow18-Sep-03 9:40 
GeneralRe: passing arguments Pin
Anonymous18-Sep-03 9:49
Anonymous18-Sep-03 9:49 
GeneralLVM_SETITEMSTATE behaves strange for virtual list view Pin
peterchen18-Sep-03 6:37
peterchen18-Sep-03 6:37 
GeneralRe: LVM_SETITEMSTATE behaves strange for virtual list view Pin
KaЯl18-Sep-03 6:49
KaЯl18-Sep-03 6:49 
GeneralRe: LVM_SETITEMSTATE behaves strange for virtual list view Pin
peterchen18-Sep-03 9:30
peterchen18-Sep-03 9:30 
GeneralGetFtpConnection questions....... Pin
ns18-Sep-03 6:33
ns18-Sep-03 6:33 
GeneralRe: GetFtpConnection questions....... Pin
Jagadeesh VN18-Sep-03 7:36
Jagadeesh VN18-Sep-03 7:36 
Generalthank you!!! Pin
ns18-Sep-03 8:51
ns18-Sep-03 8:51 
GeneralLocalization tools Pin
fferland18-Sep-03 6:30
fferland18-Sep-03 6:30 
GeneralConvert 32Bit Bitmap into 24Bit Bitmap HELP!!!! Pin
schaereran@gmx.net18-Sep-03 5:28
schaereran@gmx.net18-Sep-03 5:28 
GeneralRe: Convert 32Bit Bitmap into 24Bit Bitmap HELP!!!! Pin
Alexander M.,18-Sep-03 6:13
Alexander M.,18-Sep-03 6:13 
GeneralSendRequest() Pin
ns18-Sep-03 5:04
ns18-Sep-03 5:04 
GeneralRe: SendRequest() Pin
Jason Henderson18-Sep-03 5:20
Jason Henderson18-Sep-03 5:20 
General.NET Structure Problem. Pin
Mike Doner18-Sep-03 5:03
Mike Doner18-Sep-03 5:03 
GeneralCollection in C++ Pin
pas_ascom18-Sep-03 5:02
pas_ascom18-Sep-03 5:02 

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.