Okay...
There was a post here earlier about looking through a string of text for vowels. I was going to post an answer, but it got deleted. Howeevr, in working on the answr, I can run into a doozy of a question -- it's a doozy for me anyway.
I was trying to declare a char variable with 1000 characters, in case someone had a rather long string to type. However, with a 1000 characters it kept screwing up. With 255 and 100 characters in the variable, it kept screwing up. If I use a smaller number, like 25 or 16 it seems to work fine. Am I forgetting some basic tenet of declaring strings and then later resizing them? I feel foolish for asking, but I'm kind of stumped. Thanks.
I was trying to declare a char variable with 1000 characters, in case someone had a rather long string to type. However, with a 1000 characters it kept screwing up. With 255 and 100 characters in the variable, it kept screwing up. If I use a smaller number, like 25 or 16 it seems to work fine. Am I forgetting some basic tenet of declaring strings and then later resizing them? I feel foolish for asking, but I'm kind of stumped. Thanks.
