Click here to Skip to main content
15,917,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Having issues with the cin.getline() function in C++ Pin
Stefan_Lang8-Mar-20 22:26
Stefan_Lang8-Mar-20 22:26 
GeneralRe: Having issues with the cin.getline() function in C++ Pin
k50549-Mar-20 12:29
mvek50549-Mar-20 12:29 
Stefan_Lang wrote:
Also, it is usually easier to read std::string objects rather than reading input of unknown length into limited size buffers. You can use the function getline(istream&, string) for

Additionally, you should expect your Teacher/TA/Assignment-marker to be an "evil knave of the worst kind", looking to find ways to make your program crash. For any input she/he might choose to cut/paste something like:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
If you use std::getline(), rather than iostream::getline(), you should be able to handle any reasonable input sent your way.
GeneralRe: Having issues with the cin.getline() function in C++ Pin
Stefan_Lang9-Mar-20 21:41
Stefan_Lang9-Mar-20 21:41 
Generala not fun question: how to deploy a utility program written in MFC and C++ Pin
Southmountain8-Mar-20 12:56
Southmountain8-Mar-20 12:56 
GeneralRe: a not fun question: how to deploy a utility program written in MFC and C++ Pin
Jon McKee8-Mar-20 13:01
professionalJon McKee8-Mar-20 13:01 
GeneralRe: a not fun question: how to deploy a utility program written in MFC and C++ Pin
Southmountain8-Mar-20 16:06
Southmountain8-Mar-20 16:06 
GeneralRe: a not fun question: how to deploy a utility program written in MFC and C++ Pin
Maximilien8-Mar-20 15:38
Maximilien8-Mar-20 15:38 
GeneralRe: a not fun question: how to deploy a utility program written in MFC and C++ Pin
Southmountain8-Mar-20 16:03
Southmountain8-Mar-20 16:03 
GeneralRe: a not fun question: how to deploy a utility program written in MFC and C++ Pin
Shao Voon Wong8-Mar-20 15:51
mvaShao Voon Wong8-Mar-20 15:51 
GeneralRe: a not fun question: how to deploy a utility program written in MFC and C++ Pin
Southmountain8-Mar-20 16:04
Southmountain8-Mar-20 16:04 
GeneralRe: a not fun question: how to deploy a utility program written in MFC and C++ Pin
Shao Voon Wong8-Mar-20 16:09
mvaShao Voon Wong8-Mar-20 16:09 
GeneralRe: a not fun question: how to deploy a utility program written in MFC and C++ Pin
Southmountain8-Mar-20 16:24
Southmountain8-Mar-20 16:24 
GeneralRe: a not fun question: how to deploy a utility program written in MFC and C++ Pin
Shao Voon Wong8-Mar-20 16:28
mvaShao Voon Wong8-Mar-20 16:28 
GeneralRe: a not fun question: how to deploy a utility program written in MFC and C++ Pin
Southmountain8-Mar-20 16:08
Southmountain8-Mar-20 16:08 
QuestionTrying to add a menu bar to a dialog Pin
ForNow29-Feb-20 16:07
ForNow29-Feb-20 16:07 
AnswerRe: Trying to add a menu bar to a dialog Pin
Richard MacCutchan29-Feb-20 21:11
mveRichard MacCutchan29-Feb-20 21:11 
GeneralRe: Trying to add a menu bar to a dialog Pin
ForNow1-Mar-20 11:55
ForNow1-Mar-20 11:55 
GeneralRe: Trying to add a menu bar to a dialog Pin
Richard MacCutchan1-Mar-20 21:25
mveRichard MacCutchan1-Mar-20 21:25 
AnswerRe: Trying to add a menu bar to a dialog Pin
leon de boer29-Feb-20 21:14
leon de boer29-Feb-20 21:14 
GeneralRe: Trying to add a menu bar to a dialog Pin
ForNow1-Mar-20 11:55
ForNow1-Mar-20 11:55 
AnswerRe: Trying to add a menu bar to a dialog Pin
Victor Nijegorodov1-Mar-20 20:54
Victor Nijegorodov1-Mar-20 20:54 
GeneralRe: Trying to add a menu bar to a dialog Pin
ForNow2-Mar-20 0:51
ForNow2-Mar-20 0:51 
Questionlaunching Caliberate the screen for Pen or touch input C++ Pin
Member 1393286726-Feb-20 3:16
Member 1393286726-Feb-20 3:16 
AnswerRe: launching Caliberate the screen for Pen or touch input C++ Pin
Richard Deeming26-Feb-20 3:36
mveRichard Deeming26-Feb-20 3:36 
QuestionTAPI http request Pin
Djalma C. Bina24-Feb-20 17:38
Djalma C. Bina24-Feb-20 17:38 

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.