Re: [Dev-C++] One other minor problem
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Khalid El-K. <kha...@ho...> - 2003-04-13 05:30:27
|
>I was told that I did not need to learn malloc and that other stuff if I >was going to use C++. Is that true? Yes that's right. I don't know why do I stick to them :-) >BTW the compiler errors i used were purposely generated like this: > >char* foo; >int bar; >foo = bar; foo[0] = 'a'; //for instance bar = (int) *foo; foo[1] = 'b'; //also for instance bar = (int) foo[1] // or bar = *(foo+1); >that way the compiler would give me something like: > >invalid conversion from int to char*. > >When I got that I started to wonder because it originally appeared that > >foo would be a pointer to a char. not an item of char*. > Have a good luck ... >Shane Regards, Khalid AL-Kary _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail |