Like Tree2Likes
  • 1 Post By grumpy
  • 1 Post By King Mir

Mathematics program - need help

This is a discussion on Mathematics program - need help within the C++ Programming forums, part of the General Programming Boards category; Hey guys! I've just started programming and I want to be able to write a program which will be able ...

  1. #1
    Registered User
    Join Date
    Dec 2011
    Posts
    1

    Mathematics program - need help

    Hey guys!
    I've just started programming and I want to be able to write a program which will be able to find all solutions to equations like the following:
    a+b+c+d=22. where a, b, c & d are positive integers<17
    Im not too sure how to start off etc. Would someone be able to help me???
    Thanks!!!

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    6,657
    Look up loops.
    dennis.cpp likes this.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Sunshine, and read this, this, and this before posting again.

  3. #3
    language hopper dennis.cpp's Avatar
    Join Date
    Jan 2011
    Location
    Herborn, Hesse, Germany
    Posts
    197
    I'm sure somebody would be able to help you if you asked a specific questions. This is more like, "I've just started engineering and I want to be able to build a car engine like the following: (some random specification). Would someone be able to help me?"

    What answer to that would you expect?
    Hardware: Intel® Core™ i7-3630QM CPU @ 2.40GHz × 8
    Operating system: Debian Testing/Jessie / Linux 3.16-2-amd64 / KDE SC 4.14.1
    Compiler: gcc 4.9.1-16 with KDevelop 4.7.0

  4. #4
    Registered User
    Join Date
    Apr 2006
    Posts
    2,053
    Start by getting a good book on c++.
    Elysia likes this.
    It is too clear and so it is hard to see.
    A dunce once searched for fire with a lighted lantern.
    Had he known what fire was,
    He could have cooked his rice much sooner.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mathematics in Programming
    By silk.odyssey in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 02-23-2006, 08:29 PM
  2. C++ mathematics????
    By strickey in forum C++ Programming
    Replies: 4
    Last Post: 02-07-2005, 12:20 PM
  3. Highschool mathematics
    By Panopticon in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 06-09-2003, 01:52 AM
  4. difficult(4 me) mathematics program
    By Unregistered in forum C++ Programming
    Replies: 9
    Last Post: 02-28-2002, 11:41 AM
  5. mathematics
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 11-25-2001, 12:32 PM

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