Click here to Skip to main content
15,919,423 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question label in caption bar? Pin
Frank Isensee9-Mar-06 0:34
Frank Isensee9-Mar-06 0:34 
GeneralRe: Question label in caption bar? Pin
Stephen Hewitt9-Mar-06 0:35
Stephen Hewitt9-Mar-06 0:35 
GeneralRe: Question label in caption bar? Pin
Nibu babu thomas9-Mar-06 0:40
Nibu babu thomas9-Mar-06 0:40 
GeneralRe: Question label in caption bar? Pin
Frank Isensee9-Mar-06 0:54
Frank Isensee9-Mar-06 0:54 
QuestionHow to play old Fast Tracker 2 XM files? Pin
bouli8-Mar-06 23:59
bouli8-Mar-06 23:59 
QuestionHow to use accelerator in Dialog application Pin
kflrei8-Mar-06 23:55
kflrei8-Mar-06 23:55 
AnswerRe: How to use accelerator in Dialog application Pin
Nibu babu thomas9-Mar-06 0:04
Nibu babu thomas9-Mar-06 0:04 
Questionworking with string-newbie Pin
antonaras_marcou8-Mar-06 23:35
antonaras_marcou8-Mar-06 23:35 
Hi again
i get so much feedback from u guys so many good advices so i decided to ask again
Something simple again.
I want to work with strings for my first time
what i have is a queue of characters and i want to copy one by one in a string. Do i loose the spaces when i copy the contex of the oueue list into a string?
Code:

#include string.h
using namespace std;

queue<char> PlainText;
string Plain_Text;

while (!PlainText.empty())
{
Plain_Text+=PlainText.front();
PlainText.pop();
}

printf ("%s", Plain_Text);

I get no output and the console crashes as well!!


i have no idea if this is any close to correct is definetly not good programming i know and i apologize that u have to see this
But do you have any advices to give
Thanks in advance
AnswerRe: working with string-newbie Pin
toxcct8-Mar-06 23:40
toxcct8-Mar-06 23:40 
GeneralRe: working with string-newbie Pin
antonaras_marcou8-Mar-06 23:50
antonaras_marcou8-Mar-06 23:50 
GeneralRe: working with string-newbie Pin
toxcct8-Mar-06 23:54
toxcct8-Mar-06 23:54 
GeneralRe: working with string-newbie Pin
antonaras_marcou9-Mar-06 0:02
antonaras_marcou9-Mar-06 0:02 
GeneralRe: working with string-newbie Pin
toxcct9-Mar-06 0:10
toxcct9-Mar-06 0:10 
GeneralRe: working with string-newbie Pin
antonaras_marcou9-Mar-06 0:15
antonaras_marcou9-Mar-06 0:15 
GeneralRe: working with string-newbie Pin
toxcct9-Mar-06 0:20
toxcct9-Mar-06 0:20 
GeneralRe: working with string-newbie Pin
Stephen Hewitt9-Mar-06 0:31
Stephen Hewitt9-Mar-06 0:31 
GeneralRe: working with string-newbie Pin
toxcct9-Mar-06 0:33
toxcct9-Mar-06 0:33 
AnswerRe: working with string-newbie Pin
Stephen Hewitt8-Mar-06 23:44
Stephen Hewitt8-Mar-06 23:44 
GeneralRe: working with string-newbie Pin
antonaras_marcou8-Mar-06 23:56
antonaras_marcou8-Mar-06 23:56 
GeneralRe: working with string-newbie Pin
Stephen Hewitt8-Mar-06 23:59
Stephen Hewitt8-Mar-06 23:59 
GeneralRe: working with string-newbie Pin
antonaras_marcou9-Mar-06 0:05
antonaras_marcou9-Mar-06 0:05 
GeneralRe: working with string-newbie Pin
Stephen Hewitt9-Mar-06 0:07
Stephen Hewitt9-Mar-06 0:07 
GeneralRe: working with string-newbie Pin
antonaras_marcou9-Mar-06 0:10
antonaras_marcou9-Mar-06 0:10 
GeneralRe: working with string-newbie Pin
Eytukan9-Mar-06 2:43
Eytukan9-Mar-06 2:43 
Questionatlimage.h Pin
elabed.slim8-Mar-06 23:18
elabed.slim8-Mar-06 23:18 

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.