struct in function

This is a discussion on struct in function within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by Ideswa I have to write them all over again!!! That's why you should make frequent backups of ...

  1. #16
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    Quote Originally Posted by Ideswa
    I have to write them all over again!!!
    That's why you should make frequent backups of your source files. Make a copy before you start making major changes just in case new changes don't work. I learned that the hard way too

  2. #17
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Quote Originally Posted by Daved
    >> why use the std namespace if you're using depreciated libraries?
    BTW, the word is deprecated (depreciated means something different), and <iostream.h> isn't deprecated anyway, it is completely non-standard.
    Then (IMO) it's as good as deprecated.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  3. #18
    C / C++
    Join Date
    Jan 2006
    Location
    The Netherlands
    Posts
    312
    Luckily it's not that much work, because my sources aren't > 1000 lines yet!
    Operating Systems:
    - Ubuntu 9.04
    - XP

    Compiler: gcc

  4. #19
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,066
    Quote Originally Posted by Daved
    >> why use the std namespace if you're using depreciated libraries?
    BTW, the word is deprecated (depreciated means something different), and <iostream.h> isn't deprecated anyway, it is completely non-standard.
    I'll buy it.
    Sent from my iPadŽ

  5. #20
    Registered User
    Join Date
    Jan 2005
    Posts
    7,317
    >> Then (IMO) it's as good as deprecated.
    There is an important difference. Deprecated means that it is still standardized and will still work on a standards compliant compiler. Non-standard means it might not. <stdio.h> is deprecated, <iostream.h> is non-standard. <stdio.h> works on VC++ 7.1, <iostream.h> does not. While many people don't know the difference, those who do will understand that non-standard is worse than deprecated and that the distinction is worth noting.

  6. #21
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,066
    Funny how one letter can change
    you're using depreciated libraries?
    to
    you're using deprecated libraries?
    and
    the distinction is worth noting.
    to
    the distinction is worth nothing.
    Sent from my iPadŽ

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Link List math
    By t014y in forum C Programming
    Replies: 17
    Last Post: 02-20-2009, 05:55 PM
  2. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 02:07 AM
  3. Replies: 28
    Last Post: 07-16-2006, 11:35 PM
  4. Replies: 10
    Last Post: 05-18-2006, 11:23 PM
  5. c++ linking problem for x11
    By kron in forum Linux Programming
    Replies: 1
    Last Post: 11-19-2004, 09:18 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21