Click here to Skip to main content
15,903,840 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: app is not running in debug mode Pin
Member 83893869-Apr-18 23:14
Member 83893869-Apr-18 23:14 
GeneralRe: app is not running in debug mode Pin
Victor Nijegorodov10-Apr-18 1:03
Victor Nijegorodov10-Apr-18 1:03 
QuestionInter Process Communication between C++ - C# Pin
ptr_Electron8-Apr-18 18:13
ptr_Electron8-Apr-18 18:13 
AnswerRe: Inter Process Communication between C++ - C# Pin
Jochen Arndt8-Apr-18 21:26
professionalJochen Arndt8-Apr-18 21:26 
AnswerRe: Inter Process Communication between C++ - C# Pin
Randor 9-Apr-18 10:03
professional Randor 9-Apr-18 10:03 
AnswerRe: Inter Process Communication between C++ - C# Pin
jschell14-Apr-18 5:48
jschell14-Apr-18 5:48 
QuestionHow cin.get() works in loop ? Pin
Tarun Jha7-Apr-18 3:32
Tarun Jha7-Apr-18 3:32 
SuggestionRe: How cin.get() works in loop ? Pin
David Crow7-Apr-18 6:34
David Crow7-Apr-18 6:34 
AnswerRe: How cin.get() works in loop ? Pin
Richard MacCutchan7-Apr-18 20:55
mveRichard MacCutchan7-Apr-18 20:55 
AnswerRe: How cin.get() works in loop ? Pin
Peter_in_27808-Apr-18 21:13
professionalPeter_in_27808-Apr-18 21:13 
AnswerRe: How cin.get() works in loop ? Pin
jfbode10291-Jun-18 12:16
jfbode10291-Jun-18 12:16 
QuestionCListCtrl with group view enabled and long subtitles Pin
Friedbert Widmann5-Apr-18 22:43
Friedbert Widmann5-Apr-18 22:43 
QuestionHow can I initialize an array of structs where the array size is set at compile time? Pin
arnold_w5-Apr-18 21:46
arnold_w5-Apr-18 21:46 
AnswerRe: How can I initialize an array of structs where the array size is set at compile time? Pin
Richard MacCutchan5-Apr-18 23:26
mveRichard MacCutchan5-Apr-18 23:26 
GeneralRe: How can I initialize an array of structs where the array size is set at compile time? Pin
arnold_w6-Apr-18 0:31
arnold_w6-Apr-18 0:31 
GeneralRe: How can I initialize an array of structs where the array size is set at compile time? Pin
Jochen Arndt6-Apr-18 0:55
professionalJochen Arndt6-Apr-18 0:55 
GeneralRe: How can I initialize an array of structs where the array size is set at compile time? Pin
arnold_w6-Apr-18 1:30
arnold_w6-Apr-18 1:30 
AnswerRe: How can I initialize an array of structs where the array size is set at compile time? Pin
Jochen Arndt5-Apr-18 23:36
professionalJochen Arndt5-Apr-18 23:36 
GeneralRe: How can I initialize an array of structs where the array size is set at compile time? Pin
arnold_w6-Apr-18 0:32
arnold_w6-Apr-18 0:32 
GeneralRe: How can I initialize an array of structs where the array size is set at compile time? Pin
Jochen Arndt6-Apr-18 1:13
professionalJochen Arndt6-Apr-18 1:13 
AnswerRe: How can I initialize an array of structs where the array size is set at compile time? Pin
Joe Woodbury6-Apr-18 6:06
professionalJoe Woodbury6-Apr-18 6:06 
Questionwhy ( const char *ptr = string literal ) works but ( const string *ptr = string literal ) doesn't ? Pin
Tarun Jha3-Apr-18 7:53
Tarun Jha3-Apr-18 7:53 
AnswerRe: why ( const char *ptr = string literal ) works but ( const string *ptr = string literal ) doesn't ? Pin
Victor Nijegorodov3-Apr-18 9:03
Victor Nijegorodov3-Apr-18 9:03 
AnswerRe: why ( const char *ptr = string literal ) works but ( const string *ptr = string literal ) doesn't ? Pin
David Crow3-Apr-18 10:41
David Crow3-Apr-18 10:41 
Tarun Jha wrote:
...but it is a collection of characters, so how is it a char ?
The variable ptr is a pointer to a collection of char-acters, be it 1 or 100.

Tarun Jha wrote:
...then why it is called string literal ?
Like anything holding quotation marks apart, they are literally those characters. They haven't been modified, translated, obtained from some other place, coerced, etc. If you look inside the compiled file, you will see those characters, literally.

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles


AnswerRe: why ( const char *ptr = string literal ) works but ( const string *ptr = string literal ) doesn't ? Pin
leon de boer3-Apr-18 13:48
leon de boer3-Apr-18 13:48 

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.