Thread: string help
View Single Post
Old Feb 24th, 2005, 8:58 PM   #4
Mjordan2nd
The Supreme Ruler
 
Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6 Mjordan2nd is on a distinguished road
You'll need to declare it as something like this:

 char str[50]; /* 50 can be replaced with any reasonable number -- its the maximium length for a string that can be entered*/

For more information on arrays, check this out:

http://programmingforums.org/forum/s...ead.php?t=1644
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower
Mjordan2nd is offline   Reply With Quote