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

C / C++ / MFC

 
GeneralRe: combo box question Pin
Ram Murali9-Jul-06 17:31
Ram Murali9-Jul-06 17:31 
GeneralRe: combo box question Pin
Naveen9-Jul-06 17:55
Naveen9-Jul-06 17:55 
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 
Hello, the code compiled but I did not see any output on my screen. I invoked a function called void tesings () to test out the program.
See below.

#include <string>
#include <list>
#include <iostream>

using namespace std;


struct data                                             //
{
     string Length;                   //
     string Sequence;                                               //  
     string N_Terminal;                                             // 
     string C_Terminal;
};


list<data> g_DataList;




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);


	for (dataListIter = dataList.begin(); dataListIter != dataList.end(); dataListIter++)
	{
	printf("%s, %s, %s, %s\n", dataListIter->Length, dataListIter->Sequence, dataListIter->N_Terminal, dataListIter->C_Terminal);
	}

}

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 
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 

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.