Thread: Newbie Question

  1. #16
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    >>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.

  2. #17
    Registered User jlou's Avatar
    Join Date
    Jul 2003
    Posts
    1,090
    Quote Originally Posted by sand_man
    also, a function like this
    Code:
    void foo();
    takes unknown amount of arguments. You should change it to.
    Code:
    void foo(void);
    That is true only in C. In C++,
    Code:
    void foo();
    is valid and probably more accepted.

  3. #18
    Karsten
    Join Date
    Sep 2004
    Posts
    8
    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

  4. #19
    Registered User Elhaz's Avatar
    Join Date
    Sep 2004
    Posts
    32
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Stupid Newbie question
    By TimL in forum C++ Programming
    Replies: 4
    Last Post: 07-22-2008, 04:43 AM
  2. C prog newbie question
    By Draginzuzu in forum C Programming
    Replies: 1
    Last Post: 02-03-2003, 06:45 PM
  3. a stupid question from a newbie
    By newcomer in forum C++ Programming
    Replies: 4
    Last Post: 01-11-2003, 04:38 PM
  4. confusion with integers (newbie question)
    By imortal in forum C Programming
    Replies: 7
    Last Post: 12-06-2002, 04:09 PM
  5. newbie class templates question
    By daysleeper in forum C++ Programming
    Replies: 2
    Last Post: 09-18-2001, 09:50 AM