At 1/20/2007 12:36 PM, you wrote:
On 1/20/07, Rick <<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]> wrote:


and your program will blow up..... if you're using C++ forget about all the damned char* and strxxx() crap

Yes, I know. I forgot to allocate memory for str, but I corrected that.

I'm using C, not C++, so this is perfectly valid. Why get in such a huff?


If you are using iostream and namespace std, you are using C++

-- Brett

Point taken. I don't program C++, but I use the Bloodshed C++ compiler. It put all the header stuff in. (I don't know why it put #include <cstdlib> and I don't know what that does).

So, would one of you kind souls "fix" this to use C++ strings instead? I'd love to know the correct way.

~Rick

------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi

Reply via email to