>>use pointers to get rid of those ugly global variables
References, my friend. Pointers are harder to use (and to understand).
>>use pointers to get rid of those ugly global variables
References, my friend. Pointers are harder to use (and to understand).
Just Google It. √
(\ /)
( . .)
c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.
That is true only in C. In C++,Originally Posted by sand_manis valid and probably more accepted.Code:void foo();
to Elhaz
this third case statement first of all does exit the programm even it doesnt looks like it ,and second i try to avoid that you enter a letter instead of a number for the temperature ,which obviously would print out some stupid not wanted strings ,but yes there is still the a lill problem with comparing enterd letters and number while you already choose your temp .
Anyways as you can see i think its not to bad for someone that didnt had done something in C++ for 5 years ,guess its getting more as time to find and read some books to get ahead ,but regardless that ,thank you all with the help i gave me and the ideas of how to manage it all .
Hoschi
Hi Hoschi,
I see it now. The exit (0) is a library function. I didn't look at it (think about it) carefully enough. My mistake. I'll try to be more careful about "piping up" in the future.
Don't know how much I helped... you actually helped me more just by giving me something read and think about.
Thanks