Thread: void function in c -> c++

  1. #16
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    > yes but this is why I ask....it's a c snippet which I would like to port to c++
    Actually, no it isn't.
    It's just as invalid in C as it is in C++.
    Just because your broken compiler happens to compile it doesn't change that.
    Fix the return types and move on.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  2. #17
    Banned
    Join Date
    Jun 2005
    Posts
    594
    Quote Originally Posted by ahluka
    ROFL
    so it true, you can be a dumbass and still program. sigh

  3. #18
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Quote Originally Posted by ILoveVectors
    so it true, you can be a dumbass and still program. sigh
    Yep.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  4. #19
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    If someone has something constructive they would like to add, PM me or another moderator / administrator and they'll open the thread for you.

    Oh god not again... started an 'argument' with someone possessing the mental intelligence of a 12 year old

    I'm going to be a good boy this time mods
    Stop showing off how smart you like to think you are. If I had to guess your age, I would seriously guess 12 because of how immature you're acting. You have added nothing useful to this thread. Consider this a friendly warning to change your attitude on the board.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  3. getting a headache
    By sreetvert83 in forum C++ Programming
    Replies: 41
    Last Post: 09-30-2005, 05:20 AM
  4. Replies: 5
    Last Post: 02-08-2003, 07:42 PM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM