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,208
    Look up loops.
    dennis.cpp likes this.
    Right 98% of the time, and don't care about the other 3%.

  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: Fedora 19 (64-Bit) / Linux 3.11.6-200.fc19 / KDE SC 4.11.2
    Compiler: gcc 4.8.2 with Netbeans IDE 7.4

  4. #4
    Registered User
    Join Date
    Apr 2006
    Posts
    2,021
    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, 07:29 PM
  2. C++ mathematics????
    By strickey in forum C++ Programming
    Replies: 4
    Last Post: 02-07-2005, 11:20 AM
  3. Highschool mathematics
    By Panopticon in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 06-09-2003, 12:52 AM
  4. difficult(4 me) mathematics program
    By Unregistered in forum C++ Programming
    Replies: 9
    Last Post: 02-28-2002, 10:41 AM
  5. mathematics
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 11-25-2001, 11:32 AM

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