C++, Getting ascii values of char arrays?

Off topic chat. Basically anything that doesn't concern halo or halo modding can go here.
Post Reply
a mammoth




Droplet

Posts: 1603
Joined: Fri Jul 15, 2005 7:01 pm

C++, Getting ascii values of char arrays?

Post by a mammoth »

I'm trying to write a program, for learning, where you type a string, then it has to convert the array into a array of int's, Its just that I don't know how to do it.
User avatar
[cc]z@nd!




Literarian 500

Posts: 2297
Joined: Tue May 04, 2004 1:52 pm
Location: michigan

Post by [cc]z@nd! »

1: this should probably be in the programming section. i don't know if it was kept through the forum merger, but it would be where this goes

2: check sites like cprogramming.com. if i remember right, what you're doing is variable casting, although i'm not sure if you can cast a string intto an int. maybe use a 3rd and fourth variable to hold where the int value starts and ends in the RAM... or maybe pointers...
Post Reply