Click here to Skip to main content
14,838,718 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A "C" programming equivalent to Windows + R run dialog invokcation Pin
David Crow20-Nov-20 3:02
MemberDavid Crow20-Nov-20 3:02 
PraiseRe: A "C" programming equivalent to Windows + R run dialog invokcation Pin
Randor 21-Nov-20 20:46
professional Randor 21-Nov-20 20:46 
QuestionRe: A "C" programming equivalent to Windows + R run dialog invokcation Pin
Richard MacCutchan20-Nov-20 4:18
mveRichard MacCutchan20-Nov-20 4:18 
AnswerRe: A "C" programming equivalent to Windows + R run dialog invokcation Pin
samtoad20-Nov-20 13:22
Membersamtoad20-Nov-20 13:22 
QuestionRe: A "C" programming equivalent to Windows + R run dialog invokcation Pin
David Crow20-Nov-20 16:36
MemberDavid Crow20-Nov-20 16:36 
GeneralRe: A "C" programming equivalent to Windows + R run dialog invokcation Pin
Dave Kreskowiak20-Nov-20 17:17
mveDave Kreskowiak20-Nov-20 17:17 
GeneralRe: A "C" programming equivalent to Windows + R run dialog invokcation Pin
Randor 21-Nov-20 21:06
professional Randor 21-Nov-20 21:06 
QuestionBeginner problem c++ Pin
begzz17-Nov-20 11:02
Memberbegzz17-Nov-20 11:02 


Problem c++

Hi i have an txt-file that looks like this:

Bigman arnold :line1
1333131313131 :line2
blue 123 green 2, 234 green :line3
arctic 34 :line4

The thing i have to do is modify the out put from the txt file.
There are many more lines.
I have to modify it so the output from the files so it becomes like this:

arnold Bigman :line1
blue 123 green 2, 234 green :line 2
arctic 34 :line3
1333131313131 :line4

And the lines continues for the rest of the txt file.
I'we been trying ifstream with a while(file>>string1>>string2>>getline(zzzzz, file)
But i get an error im totally of.
Sometimes there are only 3 lines for the adress and sometimes 4.

Any good ideas?
QuestionRe: Beginner problem c++ Pin
David Crow17-Nov-20 14:49
MemberDavid Crow17-Nov-20 14:49 
SuggestionRe: Beginner problem c++ Pin
Richard MacCutchan17-Nov-20 21:11
mveRichard MacCutchan17-Nov-20 21:11 
QuestionSetting Up Visual Studio Code & MinGW Pin
Member 1499476816-Nov-20 17:06
MemberMember 1499476816-Nov-20 17:06 
AnswerRe: Setting Up Visual Studio Code & MinGW Pin
Richard MacCutchan16-Nov-20 21:42
mveRichard MacCutchan16-Nov-20 21:42 
AnswerRe: Setting Up Visual Studio Code & MinGW Pin
Dave Kreskowiak17-Nov-20 8:37
mveDave Kreskowiak17-Nov-20 8:37 
QuestionPrime Number Code C Pin
iHuy14-Nov-20 22:06
MemberiHuy14-Nov-20 22:06 
AnswerRe: Prime Number Code C Pin
_Flaviu14-Nov-20 23:30
Member_Flaviu14-Nov-20 23:30 
QuestionRe: Prime Number Code C Pin
David Crow15-Nov-20 4:21
MemberDavid Crow15-Nov-20 4:21 
QuestionC++ compiler that supports multiple inheritance Pin
Member 1274166010-Nov-20 1:26
MemberMember 1274166010-Nov-20 1:26 
AnswerRe: C++ compiler that supports multiple inheritance Pin
Mircea Neacsu10-Nov-20 1:30
mvaMircea Neacsu10-Nov-20 1:30 
AnswerRe: C++ compiler that supports multiple inheritance Pin
CPallini10-Nov-20 2:13
mveCPallini10-Nov-20 2:13 
QuestionI can't compile and put it as a variable and matrix Pin
Member 149848945-Nov-20 5:45
MemberMember 149848945-Nov-20 5:45 
AnswerRe: I can't compile and put it as a variable and matrix Pin
Victor Nijegorodov5-Nov-20 6:58
MemberVictor Nijegorodov5-Nov-20 6:58 
AnswerRe: I can't compile and put it as a variable and matrix Pin
jeron15-Nov-20 7:17
Memberjeron15-Nov-20 7:17 
AnswerRe: I can't compile and put it as a variable and matrix Pin
Member 149848945-Nov-20 11:57
MemberMember 149848945-Nov-20 11:57 
GeneralRe: I can't compile and put it as a variable and matrix Pin
jeron15-Nov-20 12:29
Memberjeron15-Nov-20 12:29 
GeneralRe: I can't compile and put it as a variable and matrix Pin
Member 149848945-Nov-20 12:47
MemberMember 149848945-Nov-20 12:47 

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.