motorollin wrote:
bloodline wrote:
Is C really so hard, that you want to stick with BASIC?
Yes. C is vile. Something as simple as converting a variable from one type to another is so complicated in C that it makes me want to smash my computer up. I once spent a whole day trying to find out how to use a variable which, for some perverse reason, had to be a "const char *" (whatever that is) as an argument to a function which wanted a string variable. There was seemingly no simple way of doing it. Trying to understad the difference between the different variable types seemed to require me to read pages and pages of documentation, and not one single method I found to convert the variable worked.
So yes, C is ghastly. Basic any day please.
--
moto
Wash your mouth out young man! :-)
You need to cast then, for example
float real_number = 92.4;
int number = (int) real_number;
The "(int)", converts the floating point number into an integer... Easy :-)
But if you are doing something string heavy.. Then use C++, the string object is wonderful :-)