Click here to Skip to main content
15,896,912 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: bug? Pin
Nishad S31-Jul-07 0:09
Nishad S31-Jul-07 0:09 
GeneralRe: bug? Pin
garfaoui31-Jul-07 0:17
garfaoui31-Jul-07 0:17 
GeneralRe: bug? Pin
Nishad S31-Jul-07 18:35
Nishad S31-Jul-07 18:35 
AnswerRe: bug? Pin
garfaoui31-Jul-07 0:31
garfaoui31-Jul-07 0:31 
AnswerRe: bug? Pin
Nelek31-Jul-07 0:44
protectorNelek31-Jul-07 0:44 
GeneralRe: bug? Pin
garfaoui31-Jul-07 0:47
garfaoui31-Jul-07 0:47 
QuestionRe: bug? Pin
Nelek31-Jul-07 0:52
protectorNelek31-Jul-07 0:52 
AnswerRe: bug? Pin
garfaoui31-Jul-07 0:59
garfaoui31-Jul-07 0:59 
I have tryed that:

c0..c3 and f01..f31 are declared as string (include < string >)<br />
<br />
getline(file1,c0);  //to skip the first line<br />
getline(file1,c1); <br />
getline(file1,c2);<br />
getline(file1,c3);<br />
<br />
getline(file2,f01);  //to skip the first line<br />
getline(file2,f11); <br />
getline(file2,f21);<br />
getline(file2,f31);<br />
<br />
if(f11==c1&&f21==c2&&f31==c3) <br />
                        {a1=1;}


But the thing is that i have to do that for 11 files. I think there is a problem with getline. I don´t know how to see the ´size´ of a line. Maybe the programme doesn´t considerer a line as a line in the text file.
GeneralRe: bug? Pin
Nelek31-Jul-07 0:56
protectorNelek31-Jul-07 0:56 
GeneralRe: bug? Pin
garfaoui31-Jul-07 1:02
garfaoui31-Jul-07 1:02 
GeneralRe: bug? Pin
jhwurmbach31-Jul-07 1:56
jhwurmbach31-Jul-07 1:56 
GeneralRe: bug? Pin
garfaoui31-Jul-07 2:00
garfaoui31-Jul-07 2:00 
QuestionRe: bug? Pin
David Crow31-Jul-07 2:38
David Crow31-Jul-07 2:38 
AnswerRe: bug? Pin
garfaoui31-Jul-07 3:03
garfaoui31-Jul-07 3:03 
GeneralRe: bug? Pin
David Crow31-Jul-07 3:06
David Crow31-Jul-07 3:06 
GeneralRe: bug? Pin
garfaoui31-Jul-07 3:18
garfaoui31-Jul-07 3:18 
JokeRe: bug? Pin
Nelek31-Jul-07 3:45
protectorNelek31-Jul-07 3:45 
Question[Message Deleted] Pin
vicky0000030-Jul-07 23:31
vicky0000030-Jul-07 23:31 
QuestionRe: Minimize my application Pin
Nelek30-Jul-07 23:58
protectorNelek30-Jul-07 23:58 
AnswerRe: Minimize my application Pin
Shouvik Das31-Jul-07 1:30
Shouvik Das31-Jul-07 1:30 
GeneralRe: Minimize my application Pin
David Crow31-Jul-07 2:41
David Crow31-Jul-07 2:41 
JokeRe: [Message Deleted] Pin
Nelek31-Jul-07 3:50
protectorNelek31-Jul-07 3:50 
QuestionRe: [Message Deleted] Pin
Hamid_RT31-Jul-07 21:20
Hamid_RT31-Jul-07 21:20 
QuestionClicks on taskbar Pin
Abhi Lahare30-Jul-07 23:03
Abhi Lahare30-Jul-07 23:03 
AnswerRe: Clicks on taskbar Pin
Abdellatif_El_Khlifi12-Aug-07 16:12
Abdellatif_El_Khlifi12-Aug-07 16:12 

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.