Simple array problem plz help

Hi!! im new to c++
and i would like to know how to write a program to read string,
but only read a to z, not the , ' ' + ! etc. and store them into an array s[50].
e.g. hello, world!, i wish s[0]='h', s[1]=e, s[2]=l.... s[5]='w' instead of ','
PLEASEEE helppp
Last edited on
Read one character at a time.

If the character is valid, e.g. http://www.cplusplus.com/reference/cctype/isalpha/
then store it.
Hi Newbieess -- post what you have so far inside [code] [/code] tags...

This feels like a C question -- why not store the whole thing in a regular std::string ?
Topic archived. No new replies allowed.