Thread: Setting String equal to char array?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    29

    Question Setting String equal to char array?

    Is there any way of putting a string of characters into a character array? I am trying to read in input as chars, but I want the spaces to be read as well, and so far the only way I could get this to work is to use the getline function with a string. But I already wrote code to transform the letters in the char array into actual numbers. Thats why I want to be able to make this conversion. Otherwise is there any other way of converting a string into numerals?
    Last edited by Stunner; 07-22-2007 at 10:27 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 10-29-2006, 05:04 AM
  2. String sorthing, file opening and saving.
    By j0hnb in forum C Programming
    Replies: 9
    Last Post: 01-23-2003, 01:18 AM
  3. Something is wrong with this menu...
    By DarkViper in forum Windows Programming
    Replies: 2
    Last Post: 12-14-2002, 11:06 PM
  4. Strings are V important...
    By NANO in forum C++ Programming
    Replies: 15
    Last Post: 04-14-2002, 11:57 AM
  5. How do you search & sort an array?
    By sketchit in forum C Programming
    Replies: 30
    Last Post: 11-03-2001, 05:26 PM