01-28-2012, 03:05 PM
(01-28-2012, 02:57 PM)AceInfinity Wrote: Like I mentioned, it depends. Perhaps you have a program where you need to iterate through a selection of letters from the alphabet to make a check as to whether a sentence contains certain values. For example, checking for vowels?I can still say through that, I'm confused as hell.
Otherwise if you have something like this, you can make it a char string:
Code:int main()
{
char * str = "string value";
}
You're using a pointer here as type char, but this enables you to use a string value.
Otherwise you can use string:
Code:int main()
{
string str = "my string";
}
A developer, thinker & bliss guy that tries his hardest to enjoy life ~~~