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?