Click here to Skip to main content
15,921,840 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: STL Pin
Rage1-Aug-07 6:00
professionalRage1-Aug-07 6:00 
GeneralRe: STL Pin
Cyrilix1-Aug-07 6:20
Cyrilix1-Aug-07 6:20 
GeneralRe: STL Pin
Rage1-Aug-07 20:57
professionalRage1-Aug-07 20:57 
GeneralRe: STL Pin
Eytukan1-Aug-07 6:57
Eytukan1-Aug-07 6:57 
GeneralRe: STL Pin
toxcct1-Aug-07 7:20
toxcct1-Aug-07 7:20 
GeneralRe: STL Pin
Eytukan1-Aug-07 7:29
Eytukan1-Aug-07 7:29 
GeneralRe: STL Pin
Rage1-Aug-07 20:53
professionalRage1-Aug-07 20:53 
GeneralRe: STL Pin
Eytukan1-Aug-07 7:23
Eytukan1-Aug-07 7:23 
essayer ca! hehe jus a rough idea! optimize it.
<code>
	char current_char[200];

	vector <fstream*>::iterator vi;
	std::vector<fstream*> vFilestreams;
	std::vector<string> vFileList;
// Here code to create the fstream vector.
	
	int i=0;
	vFileList.push_back("c:\\test.txt");

	fstream fs2;
	fstream* fs =&fs2;
	vFilestreams.push_back(fs);

for (vi=vFilestreams.begin(); vi!=vFilestreams.end(); vi++)
{

    (*vi)->open(vFileList[i].c_str(),ios::in);
	
}

// Everything fine so far, streams are open, no exception, and is_open returns "good"
// ...

for (int j=1;j<=20;j++) 
{

    for (vi=vFilestreams.begin(); vi!=vFilestreams.end(); vi++)
    {    
        (**vi)>>current_char; // here current_char does not change !
		AfxMessageBox(current_char);
    }
}
</code>






He's become a household word in the Lounge. A whole new phraseology has evolved. Post a link or reply with a smiley and rose, and you've made a "Satipsism". So what? It's an interesting thing about the Internet, the evolution (as in change, not progress) of tone, quality, terminology, etc.

-Marc Clifton.

Best wishes to Rexx[^

GeneralRe: STL Pin
Rage1-Aug-07 20:54
professionalRage1-Aug-07 20:54 
QuestionLaunching Paint from different OS Pin
TheDelChop1-Aug-07 2:54
TheDelChop1-Aug-07 2:54 
QuestionRe: Launching Paint from different OS Pin
David Crow1-Aug-07 2:56
David Crow1-Aug-07 2:56 
AnswerRe: Launching Paint from different OS Pin
toxcct1-Aug-07 3:02
toxcct1-Aug-07 3:02 
Answer[Message Deleted] Pin
Jonathan [Darka]1-Aug-07 3:06
professionalJonathan [Darka]1-Aug-07 3:06 
JokeRe: Launching Paint from different OS Pin
toxcct1-Aug-07 3:13
toxcct1-Aug-07 3:13 
GeneralRe: Launching Paint from different OS [modified] Pin
Jonathan [Darka]1-Aug-07 3:51
professionalJonathan [Darka]1-Aug-07 3:51 
GeneralOT Pin
Rage1-Aug-07 6:02
professionalRage1-Aug-07 6:02 
GeneralRe: OT Pin
Eytukan1-Aug-07 6:50
Eytukan1-Aug-07 6:50 
GeneralRe: OT Pin
Cedric Moonen1-Aug-07 7:04
Cedric Moonen1-Aug-07 7:04 
GeneralRe: OT Pin
Eytukan1-Aug-07 7:11
Eytukan1-Aug-07 7:11 
GeneralRe: OT Pin
toxcct1-Aug-07 7:22
toxcct1-Aug-07 7:22 
GeneralRe: OT Pin
Eytukan1-Aug-07 7:24
Eytukan1-Aug-07 7:24 
GeneralRe: OT Pin
toxcct1-Aug-07 7:28
toxcct1-Aug-07 7:28 
GeneralRe: OT Pin
Eytukan1-Aug-07 7:38
Eytukan1-Aug-07 7:38 
JokeRe: OT Pin
James R. Twine1-Aug-07 7:25
James R. Twine1-Aug-07 7:25 
JokeRe: OT Pin
Eytukan1-Aug-07 7:30
Eytukan1-Aug-07 7:30 

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.