Click here to Skip to main content
15,913,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: message maps from derived class Pin
Jhony george9-Oct-07 1:08
Jhony george9-Oct-07 1:08 
QuestionProblem in SetWallpaper Pin
GauranG Shah8-Oct-07 19:05
GauranG Shah8-Oct-07 19:05 
AnswerRe: Problem in SetWallpaper Pin
Hamid_RT8-Oct-07 19:36
Hamid_RT8-Oct-07 19:36 
GeneralRe: Problem in SetWallpaper Pin
GauranG Shah8-Oct-07 20:31
GauranG Shah8-Oct-07 20:31 
GeneralRe: Problem in SetWallpaper Pin
aks.8-Oct-07 22:10
aks.8-Oct-07 22:10 
GeneralRe: Problem in SetWallpaper Pin
GauranG Shah8-Oct-07 22:45
GauranG Shah8-Oct-07 22:45 
GeneralRe: Problem in SetWallpaper Pin
aks.8-Oct-07 22:47
aks.8-Oct-07 22:47 
GeneralRe: Problem in SetWallpaper Pin
GauranG Shah8-Oct-07 22:53
GauranG Shah8-Oct-07 22:53 
GeneralRe: Problem in SetWallpaper Pin
aks.8-Oct-07 23:05
aks.8-Oct-07 23:05 
GeneralRe: Problem in SetWallpaper Pin
GauranG Shah8-Oct-07 23:12
GauranG Shah8-Oct-07 23:12 
QuestionRe: Problem in SetWallpaper Pin
David Crow9-Oct-07 3:08
David Crow9-Oct-07 3:08 
Questionhow to change the color of header of list control Pin
rajneshmalik8-Oct-07 18:55
rajneshmalik8-Oct-07 18:55 
AnswerRe: how to change the color of header of list control Pin
hiajay8-Oct-07 19:49
hiajay8-Oct-07 19:49 
QuestionAccess violation in Comctl32.dll Pin
Marimuthu.r8-Oct-07 18:53
Marimuthu.r8-Oct-07 18:53 
AnswerRe: Access violation in Comctl32.dll Pin
Marimuthu.r9-Oct-07 5:35
Marimuthu.r9-Oct-07 5:35 
Questionpointer and array Pin
KASR18-Oct-07 18:26
KASR18-Oct-07 18:26 
AnswerRe: pointer and array Pin
Naveen8-Oct-07 20:16
Naveen8-Oct-07 20:16 
GeneralRe: pointer and array Pin
KASR18-Oct-07 20:28
KASR18-Oct-07 20:28 
GeneralRe: pointer and array Pin
Naveen8-Oct-07 20:33
Naveen8-Oct-07 20:33 
GeneralRe: pointer and array Pin
KASR18-Oct-07 20:35
KASR18-Oct-07 20:35 
QuestionA problem about scrolling Edit controls in a dialogue Pin
today422008-Oct-07 16:14
today422008-Oct-07 16:14 
QuestionIntegration of my unit testing tool with Visual Studio 2005 IDE Pin
Kamyar Souri8-Oct-07 16:08
Kamyar Souri8-Oct-07 16:08 
Questionstl bind2nd question Pin
User 5838528-Oct-07 14:30
User 5838528-Oct-07 14:30 
Answerboost Pin
User 5838528-Oct-07 19:54
User 5838528-Oct-07 19:54 
Questionc++ file mergesort Pin
lockheart878-Oct-07 13:45
lockheart878-Oct-07 13:45 
basically, I'm having problems with those pests itoa and atoi.

the initial idea was to split a file into N different smaller files, each of them having their filenames sequencial (ie: 1.txt, 2.txt, ... N.txt)

what I have thought is:

[code]
  int i = 1;
...
  while(!inFile.eof())
{ ofstream outFile(i); //obviously, ofstream doesn't let me to do this

    j=1;
    while(j <= instances_per_file && !inFile.eof())
    { inFile >> s;
      outFile << s << endl;
      j++;
    }
    N++;
  }
...
[/code]

currently using cygwin, but solution must be plataform/compiler independent.

any ideas how to convert int to string without itoa and sstream?

sorry if I posted on wrong place.

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.