![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Newbie
Join Date: Dec 2005
Posts: 6
Rep Power: 0
![]() |
ok so i have this ...
char p_dir[70]; char p_ext[10]; strcpy (p_dir, "C:\\Documents and Settings\\All Users\\Desktop\\"); strcpy (p_ext, ".html"); strncat (p_dir, var, 90); strncat (p_dir, p_ext, 100); ; But "var" is an int. And it wont let me put an int into that function ( for obvious reasons ). I know I can caste the value or something but I never learned how. Can anyone tell me ? |
|
|
|
|
|
#12 |
|
Newbie
Join Date: Dec 2005
Posts: 6
Rep Power: 0
![]() |
Never mind. I found the function itoa(); works great. Thank you everyone
|
|
|
|
|
|
#13 | |
|
The Oblivious One
Join Date: May 2005
Location: Ontario, Canada
Posts: 644
Rep Power: 4
![]() |
Quote:
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS! |
|
|
|
|
|
|
#14 | |
|
Caffeinated Neural Net
![]() Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,032
Rep Power: 5
![]() |
Quote:
You can indeed do exactly what DaWei said. Just remember to #include <string> in addition to your other headers, and you should be fine.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot. - Vaarsuvius, Order of the Stick |
|
|
|
|
|
|
#15 |
|
Programmer
|
Bah, actual knowledge to share, and lectricpharaoh beats me to it!
Oh well, I guess the point is that the knowledge is shared. But I DID know that! lol (If only because I learned it this year :p)
__________________
Only two things are infinite, the universe and human stupidity, and im not sure about the former. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|