Click here to Skip to main content
15,911,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
still cant get is dis correct....
<br />
#include <iostream><br />
#include <string><br />
#include <algorithm><br />
using namespace std;<br />
<br />
ofstream File("MyFile.txt");<br />
void DoStuff()<br />
<br />
<br />
{<br />
    // Get the input from the user.<br />
    file << "Enter digit: ";<br />
    string s;<br />
    cin >> s;<br />
    file << endl;<br />
<br />
    for (int i=0; i<500; ++i)<br />
    {<br />
        random_shuffle(s.begin(), s.end());<br />
		file << "Randomised: " << s << endl;<br />
		file << "          : " << s << endl;<br />
		file << "          : " << s << endl;<br />
		file << "          : " << s << endl;<br />
		file << " "<< endl;<br />
<br />
		file << "Single Row: " << s <<  " "  << s << " " << s <<" " << s << endl;<br />
		file << " "<< endl;<br />
		file << " "<< endl;<br />
		file << " "<< endl;<br />
		file << " "<< endl;<br />
	<br />
<br />
<br />
    }   <br />
<br />
<br />
}<br />
<br />
int main(int argc, char* argv[])<br />
{<br />
    DoStuff();<br />
    return 0;<br />
}<br />

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 
GeneralRe: how to write source code result to file(urgent) Pin
makaveli_072-May-06 21:54
makaveli_072-May-06 21:54 
QuestionWindows Services Pin
prajwolkumar2-May-06 19:37
prajwolkumar2-May-06 19:37 
AnswerRe: Windows Services Pin
kiran janaswamy2-May-06 19:49
kiran janaswamy2-May-06 19:49 
QuestionFinding hex pattrens in file Pin
aamir ali2-May-06 19:24
aamir ali2-May-06 19:24 
AnswerRe: Finding hex pattrens in file Pin
Nibu babu thomas2-May-06 22:06
Nibu babu thomas2-May-06 22:06 
GeneralRe: Finding hex pattrens in file Pin
aamir ali2-May-06 23:46
aamir ali2-May-06 23:46 
QuestionProb with GetKeyState Pin
cpp_prgmer2-May-06 18:52
cpp_prgmer2-May-06 18:52 
QuestionTAPI hold/Resume Transfer Pin
sanju_kg2-May-06 18:19
sanju_kg2-May-06 18:19 

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.