Click here to Skip to main content
16,016,425 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: airline seat program Pin
Prakash Nadar20-Feb-04 13:17
Prakash Nadar20-Feb-04 13:17 
GeneralRe: airline seat program Pin
antoinette3320-Feb-04 13:57
antoinette3320-Feb-04 13:57 
GeneralRe: airline seat program Pin
Prakash Nadar20-Feb-04 14:03
Prakash Nadar20-Feb-04 14:03 
GeneralRe: airline seat program Pin
antoinette3320-Feb-04 15:00
antoinette3320-Feb-04 15:00 
GeneralRe: airline seat program Pin
Prakash Nadar20-Feb-04 16:19
Prakash Nadar20-Feb-04 16:19 
GeneralRe: airline seat program Pin
antoinette3321-Feb-04 5:23
antoinette3321-Feb-04 5:23 
Generalstrtol problem Pin
nss20-Feb-04 7:12
nss20-Feb-04 7:12 
GeneralRe: strtol problem Pin
David Crow20-Feb-04 8:57
David Crow20-Feb-04 8:57 
nss wrote:
Any ideas why strtol isnt performing as I understand it should?

What are you expecting it to do? When calling strtol("9 a5 3 9 1 3 9 5 5 7", ...), processing stops at the space following the first 9 because that is the first character that it did not recognize as part of the number. The same is true for calling strtol("a9 5 3 9 3 9 3 8 5 3", ...), in that processing stops at the 'a' because that is the first character that it did not recognize as part of the number. Had you used base 16 instead, processing would have stopped at the space following 'a9'. Make sense?


"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
GeneralRe: strtol problem Pin
nss21-Feb-04 1:38
nss21-Feb-04 1:38 
GeneralDemorgan's Law Pin
_Sara_20-Feb-04 7:06
suss_Sara_20-Feb-04 7:06 
GeneralRe: Demorgan's Law Pin
David Crow20-Feb-04 9:02
David Crow20-Feb-04 9:02 
GeneralDemorgan's Law Pin
_Sara_20-Feb-04 7:02
suss_Sara_20-Feb-04 7:02 
GeneralRe: Demorgan's Law Pin
antoinette3320-Feb-04 9:01
antoinette3320-Feb-04 9:01 
GeneralQuestion and Opinion Pin
Tom Wright20-Feb-04 6:51
Tom Wright20-Feb-04 6:51 
GeneralCOleVariant Pin
Member 73893820-Feb-04 6:40
Member 73893820-Feb-04 6:40 
GeneralReplace a string portion between two carraige return Pin
DjChris1420-Feb-04 6:32
DjChris1420-Feb-04 6:32 
GeneralRe: Replace a string portion between two carraige return Pin
RobJones20-Feb-04 6:52
RobJones20-Feb-04 6:52 
GeneralLack of Memory to Run Application when Utilizing CMultiDocTemplate!!! Pin
YooVeeAy20-Feb-04 5:56
YooVeeAy20-Feb-04 5:56 
GeneralRe: Lack of Memory to Run Application when Utilizing CMultiDocTemplate!!! Pin
Roger Allen20-Feb-04 6:13
Roger Allen20-Feb-04 6:13 
GeneralRe: Lack of Memory to Run Application when Utilizing CMultiDocTemplate!!! Pin
YooVeeAy20-Feb-04 10:38
YooVeeAy20-Feb-04 10:38 
GeneralRe: Lack of Memory to Run Application when Utilizing CMultiDocTemplate!!! Pin
l a u r e n20-Feb-04 15:57
l a u r e n20-Feb-04 15:57 
GeneralStupid VS.net platform question Pin
jhorstkamp20-Feb-04 5:48
jhorstkamp20-Feb-04 5:48 
GeneralRe: Stupid VS.net platform question Pin
Prakash Nadar20-Feb-04 5:57
Prakash Nadar20-Feb-04 5:57 
GeneralRe: Stupid VS.net platform question Pin
Joe Woodbury20-Feb-04 7:42
professionalJoe Woodbury20-Feb-04 7:42 
GeneralRe: Stupid VS.net platform question Pin
Anonymous20-Feb-04 11:23
Anonymous20-Feb-04 11:23 

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.