Money Counter Program

This is a discussion on Money Counter Program within the C++ Programming forums, part of the General Programming Boards category; Let me try putting it this way. If I accidently forgot to space one side of an assignment, would you ...

  1. #16
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,622
    Let me try putting it this way. If I accidently forgot to space one side of an assignment, would you call that a "different style"? Or am I imitating the teacher? I think you're focusing too hard on minute detail.

  2. #17
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,411
    Well, no.
    I mostly react to the placement of * and &.
    That, and indentation.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #18
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    But hang on a bit. The mix of & and * is because they have different meanings. The latter is used to pass an array of six elements - yes, we could declare the function differently to do that, but it's still not a replacement to use a reference [of course, we could have a reference to an array].

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

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

Similar Threads

  1. I pay (money) for a program
    By Mszx in forum Projects and Job Recruitment
    Replies: 6
    Last Post: 01-08-2007, 12:22 PM
  2. Help: Program to calc space and money for apartments
    By MightyM991 in forum C Programming
    Replies: 4
    Last Post: 09-22-2005, 09:11 AM
  3. Replies: 2
    Last Post: 10-23-2004, 03:46 AM
  4. I need some help with my program please.
    By agentxx04 in forum C Programming
    Replies: 9
    Last Post: 09-26-2004, 07:51 AM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM

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