Click here to Skip to main content
15,907,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: List Box for displaying active users in a LAN Pin
Hamid_RT2-May-06 21:15
Hamid_RT2-May-06 21:15 
Questiondebug assertion failed.. why? Pin
pathakr2-May-06 20:47
pathakr2-May-06 20:47 
Questiondebug assertion failed.. why? Pin
pathakr2-May-06 20:47
pathakr2-May-06 20:47 
AnswerRe: debug assertion failed.. why? Pin
Cedric Moonen2-May-06 20:51
Cedric Moonen2-May-06 20:51 
GeneralRe: debug assertion failed.. why? Pin
yang__lee3-May-06 1:07
yang__lee3-May-06 1:07 
AnswerRe: debug assertion failed.. why? Pin
Nick_Kisialiou2-May-06 21:19
Nick_Kisialiou2-May-06 21:19 
QuestionHttp Connectivity Pin
Girish6012-May-06 20:21
Girish6012-May-06 20:21 
Questionhow to write source code result to file(urgent) Pin
makaveli_072-May-06 20:13
makaveli_072-May-06 20:13 
I wanted to write this programes result to a file...pls tell me how..

-----------------------------------------------------------------------------
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;

void DoStuff()
{
// Get the input from the user.
cout << "Enter digit: ";
string s;
cin >> s;
cout << endl;

for (int i=0; i<10000000; ++i)
{
random_shuffle(s.begin(), s.end());
cout << "Randomised: " << s << endl;
cout << " : " << s << endl;
cout << " : " << s << endl;
cout << " : " << s << endl;
cout << " "<< endl;

cout << "Single Row: " << s << " " << s << " " << s <<" " << s << endl;
cout << " "<< endl;
cout << " "<< endl;
cout << " "<< endl;
cout << " "<< endl;



}


}

int main(int argc, char* argv[])
{
DoStuff();
return 0;
}
AnswerRe: how to write source code result to file(urgent) Pin
kakan2-May-06 20:27
professionalkakan2-May-06 20:27 
GeneralRe: how to write source code result to file(urgent) Pin
Cedric Moonen2-May-06 20:33
Cedric Moonen2-May-06 20:33 
GeneralRe: how to write source code result to file(urgent) Pin
kakan2-May-06 20:39
professionalkakan2-May-06 20:39 
GeneralRe: how to write source code result to file(urgent) Pin
makaveli_072-May-06 20:37
makaveli_072-May-06 20:37 
AnswerRe: how to write source code result to file(urgent) Pin
Cedric Moonen2-May-06 20:31
Cedric Moonen2-May-06 20:31 
GeneralRe: how to write source code result to file(urgent) Pin
makaveli_072-May-06 20:36
makaveli_072-May-06 20:36 
GeneralRe: how to write source code result to file(urgent) Pin
Cedric Moonen2-May-06 20:43
Cedric Moonen2-May-06 20:43 
GeneralRe: how to write source code result to file(urgent) Pin
makaveli_072-May-06 20:57
makaveli_072-May-06 20:57 
GeneralRe: how to write source code result to file(urgent) Pin
Cedric Moonen2-May-06 21:08
Cedric Moonen2-May-06 21:08 
GeneralRe: how to write source code result to file(urgent) Pin
makaveli_072-May-06 21:19
makaveli_072-May-06 21:19 
GeneralRe: how to write source code result to file(urgent) Pin
Cedric Moonen2-May-06 21:27
Cedric Moonen2-May-06 21:27 
GeneralRe: how to write source code result to file(urgent) Pin
Ryan Binns2-May-06 21:42
Ryan Binns2-May-06 21:42 
GeneralRe: how to write source code result to file(urgent) Pin
makaveli_072-May-06 21:50
makaveli_072-May-06 21:50 
GeneralRe: how to write source code result to file(urgent) Pin
toxcct2-May-06 21:54
toxcct2-May-06 21:54 
GeneralRe: how to write source code result to file(urgent) Pin
Ryan Binns2-May-06 23:32
Ryan Binns2-May-06 23:32 
GeneralRe: how to write source code result to file(urgent) Pin
makaveli_072-May-06 21:51
makaveli_072-May-06 21:51 
GeneralRe: how to write source code result to file(urgent) Pin
toxcct2-May-06 21:51
toxcct2-May-06 21:51 

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.