|
-
Jun 1st, 2001, 10:58 PM
#1
A comment on the F.A.Q.
stdio.h - use cstdio
stdlib.h - use cstdlib
string.h - use cstring
If you use the cXXXX then you are using standard headers.
-
Jun 2nd, 2001, 06:27 AM
#2
Monday Morning Lunatic
Mm-hmm....yeah, you're right
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jun 2nd, 2001, 11:10 AM
#3
Hyperactive Member
also the atoi and itoa examples are the same.
Matt 
-
Jun 3rd, 2001, 02:46 PM
#4
Lively Member
atoi itoa pretty useless
If i'm wrong in thinking that atoi and itoa convert ascii to integer, and back, ignore this post.
Couldnt you just make a macro that adds or subtracts 48 from a number? That would be the most logical thing to do, im my thinking
-
Jun 3rd, 2001, 03:29 PM
#5
Monday Morning Lunatic
No, you're not wrong. However, the macro approach will only work for a single character. itoa and atoi work with character arrays, for example you pass "54" to atoi, and it returns 54.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jun 3rd, 2001, 04:16 PM
#6
Lively Member
*enlightened*
I see..... Im used to working in Brainf***, where that is the only way to do it. (adding or subtracting 48, that is)
-
Jun 5th, 2001, 06:20 AM
#7
Banned
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|