Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCalculute average value of large array Pin
wayne wu9-Aug-14 14:55
wayne wu9-Aug-14 14:55 
AnswerRe: Calculute average value of large array Pin
Jochen Arndt9-Aug-14 21:41
professionalJochen Arndt9-Aug-14 21:41 
GeneralRe: Calculute average value of large array Pin
k505410-Aug-14 2:19
mvek505410-Aug-14 2:19 
AnswerRe: Calculute average value of large array Pin
David Crow11-Aug-14 5:54
David Crow11-Aug-14 5:54 
GeneralRe: Calculute average value of large array Pin
Stefan_Lang11-Aug-14 23:07
Stefan_Lang11-Aug-14 23:07 
QuestionApparently different behaviour assigning C string to std::string, for Relese/Debug Pin
piul8-Aug-14 4:36
piul8-Aug-14 4:36 
AnswerRe: Apparently different behaviour assigning C string to std::string, for Relese/Debug Pin
jeron18-Aug-14 5:00
jeron18-Aug-14 5:00 
GeneralRe: Apparently different behaviour assigning C string to std::string, for Relese/Debug Pin
piul10-Aug-14 21:39
piul10-Aug-14 21:39 
My excuses for not answering during the weekend.

As suggested by some comment on the link you posted (thank you) the problem seems to be in the fgets function. It is storing senseless data in buff for Release, and then the std::string constructor can't make sense of it.

I will try with std::getline().
AnswerRe: Apparently different behaviour assigning C string to std::string, for Relese/Debug Pin
Richard MacCutchan8-Aug-14 5:57
mveRichard MacCutchan8-Aug-14 5:57 
AnswerRe: Apparently different behaviour assigning C string to std::string, for Relese/Debug Pin
«_Superman_»8-Aug-14 18:58
professional«_Superman_»8-Aug-14 18:58 
GeneralRe: Apparently different behaviour assigning C string to std::string, for Relese/Debug Pin
piul10-Aug-14 21:42
piul10-Aug-14 21:42 
QuestionHow to design (and do I want) an API? Pin
piul6-Aug-14 2:31
piul6-Aug-14 2:31 
AnswerRe: How to design (and do I want) an API? Pin
Espen Harlinn6-Aug-14 2:55
professionalEspen Harlinn6-Aug-14 2:55 
GeneralRe: How to design (and do I want) an API? Pin
piul6-Aug-14 2:59
piul6-Aug-14 2:59 
GeneralRe: How to design (and do I want) an API? Pin
Espen Harlinn6-Aug-14 3:09
professionalEspen Harlinn6-Aug-14 3:09 
AnswerRe: How to design (and do I want) an API? Pin
Cristian Amarie14-Aug-14 22:16
Cristian Amarie14-Aug-14 22:16 
QuestionConvert console to windows gui application Pin
Member 109951396-Aug-14 0:12
Member 109951396-Aug-14 0:12 
AnswerRe: Convert console to windows gui application Pin
Richard MacCutchan6-Aug-14 1:06
mveRichard MacCutchan6-Aug-14 1:06 
AnswerRe: Convert console to windows gui application Pin
Joe Woodbury6-Aug-14 15:38
professionalJoe Woodbury6-Aug-14 15:38 
AnswerRe: Convert console to windows gui application Pin
Cristian Amarie17-Aug-14 19:33
Cristian Amarie17-Aug-14 19:33 
Questionwhat is zed doing here? Pin
Alex Sturza5-Aug-14 8:29
Alex Sturza5-Aug-14 8:29 
AnswerRe: what is zed doing here? Pin
CPallini5-Aug-14 10:02
mveCPallini5-Aug-14 10:02 
GeneralRe: what is zed doing here? Pin
Alex Sturza5-Aug-14 10:46
Alex Sturza5-Aug-14 10:46 
GeneralRe: what is zed doing here? Pin
CPallini5-Aug-14 20:48
mveCPallini5-Aug-14 20:48 
AnswerRe: what is zed doing here? Pin
jeron15-Aug-14 11:17
jeron15-Aug-14 11:17 

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.