Click here to Skip to main content
15,891,204 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: combo box question Pin
locoone9-Jul-06 17:58
locoone9-Jul-06 17:58 
GeneralRe: combo box question Pin
Naveen9-Jul-06 18:03
Naveen9-Jul-06 18:03 
GeneralRe: combo box question [modified] Pin
locoone9-Jul-06 18:06
locoone9-Jul-06 18:06 
QuestionPrinting a user-defined datatype [modified] Pin
Harold_Wishes9-Jul-06 7:29
Harold_Wishes9-Jul-06 7:29 
AnswerRe: Printing a user-defined datatype Pin
Steve Echols9-Jul-06 8:07
Steve Echols9-Jul-06 8:07 
GeneralRe: Printing a user-defined datatype Pin
Harold_Wishes9-Jul-06 8:41
Harold_Wishes9-Jul-06 8:41 
GeneralRe: Printing a user-defined datatype Pin
Steve Echols9-Jul-06 9:17
Steve Echols9-Jul-06 9:17 
GeneralRe: Printing a user-defined datatype [modified] Pin
Harold_Wishes9-Jul-06 10:26
Harold_Wishes9-Jul-06 10:26 
I am testing the program using Visual C++ 6.0 and pressing the executable button to get to the console screen. I tried using cout statments instead and still end up with a blank screen. See sample below:

void tesings ()
{


	list<data> dataList;
	list<data>::iterator dataListIter;
    data item;

item.Length ="test";
item.Sequence ="test";
item.N_Terminal ="test";
item.C_Terminal ="test";

dataList.push_back(item);

item.Length ="test";
item.Sequence ="test";
item.N_Terminal ="test";
item.C_Terminal ="test";

dataList.push_back(item);
	for (dataListIter = dataList.begin(); dataListIter != dataList.end(); dataListIter++)
	{
	cout << dataListIter->Length << endl;
	cout << dataListIter->Sequence << endl;
	cout << dataListIter->N_Terminal << endl;
	cout << dataListIter->C_Terminal << endl;
	}

}



I see my error. I was redeclaring my function in main() but I never actually invoked it.

I typed:

void tesings ();

instead of
tesings();


Thanks for the help! Smile | :)


-- modified at 16:37 Sunday 9th July, 2006
GeneralRe: Printing a user-defined datatype Pin
Steve Echols9-Jul-06 17:48
Steve Echols9-Jul-06 17:48 
QuestionOther instances of a program Pin
RomTibi9-Jul-06 7:07
RomTibi9-Jul-06 7:07 
AnswerRe: Other instances of a program Pin
Jun Du9-Jul-06 11:04
Jun Du9-Jul-06 11:04 
AnswerRe: Other instances of a program Pin
ThatsAlok9-Jul-06 20:17
ThatsAlok9-Jul-06 20:17 
QuestionSaving a (image) file in different format Pin
snir_ya9-Jul-06 5:06
snir_ya9-Jul-06 5:06 
AnswerRe: Saving a (image) file in different format Pin
Tara149-Jul-06 5:09
Tara149-Jul-06 5:09 
GeneralRe: Saving a (image) file in different format Pin
snir_ya9-Jul-06 5:13
snir_ya9-Jul-06 5:13 
AnswerRe: Saving a (image) file in different format Pin
Chris Losinger9-Jul-06 6:56
professionalChris Losinger9-Jul-06 6:56 
GeneralRe: Saving a (image) file in different format Pin
Jörgen Sigvardsson9-Jul-06 7:46
Jörgen Sigvardsson9-Jul-06 7:46 
AnswerGDI+ Pin
bob169729-Jul-06 8:54
bob169729-Jul-06 8:54 
GeneralRe: GDI+ Pin
Joe Woodbury9-Jul-06 9:23
professionalJoe Woodbury9-Jul-06 9:23 
GeneralRe: GDI+ Pin
bob169729-Jul-06 9:40
bob169729-Jul-06 9:40 
GeneralRe: GDI+ Pin
earl10-Jul-06 4:56
earl10-Jul-06 4:56 
GeneralRe: GDI+ Pin
bob1697210-Jul-06 6:48
bob1697210-Jul-06 6:48 
GeneralRe: GDI+ Pin
earl10-Jul-06 6:58
earl10-Jul-06 6:58 
GeneralRe: GDI+ Pin
bob1697210-Jul-06 10:52
bob1697210-Jul-06 10:52 
Questionerror in m_DateStart.SetFormat("MM/dd/yyy"); Pin
Tara149-Jul-06 4:18
Tara149-Jul-06 4:18 

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.