Thread: Calculator

  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    5

    Calculator

    Hello, I am new to this C++ programming... I use Visual C++ 2005 Express... I never did something really big, untill now... I am trying to make a calculator... but have no idea how, if anyone dont mind sending me made 1 or tutorial or anything I can see how, I will love it...

    Thanks,
    Ori.

  2. #2
    Registered User
    Join Date
    Feb 2006
    Posts
    5
    Oh, I forgot to note I use windows forms... cheers.

  3. #3
    Registered User
    Join Date
    Dec 2005
    Posts
    155
    I wont send a full one, but I can help you get started on one.
    1st give your ints, lets say, int a int b int c and int d.
    2end now call thes ints to make them add after asking the users input. Like, a=b+c;
    3ed now just say what a = to like: cout<<"anser is "<<a<<endl;

  4. #4
    Registered User
    Join Date
    Feb 2006
    Posts
    5
    Whats cout? lol, im seriously new... got MSN or AIM or anything I can online talk to u with?

  5. #5
    Registered User
    Join Date
    Dec 2005
    Posts
    155
    I think maybe you should wait then befor doing this. Start with basic 1st. There are some here on this site Here I know you should do this 1st b/c if you dont you wont know what I am saying.

  6. #6
    Registered User
    Join Date
    Dec 2005
    Posts
    43
    If you don't know what's cout, you're not ready for a calculator. You need a fairly good understanding of C++ before attempting such a project. Start by reading the basic tutorials on cprogramming.com.
    Last edited by Darklighter; 02-05-2006 at 04:54 PM.

  7. #7
    Cat Lover
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    109
    Quote Originally Posted by ShOcKJ
    Oh, I forgot to note I use windows forms... cheers.
    I would start off with learning console programming first, before worrying about graphics. If you don't know what cout is, System::String will leave you crying in a corner somewhere.

  8. #8
    Registered User Kurisu's Avatar
    Join Date
    Feb 2006
    Posts
    62

    Talking

    If you want to do forms (i.e. Windows graphical user interfaces) the language Visual Basic would probably be much easier than C++. I remember using V.B. before and it was really easy. I would imagine you could pump out a calculator in no time (like 30 mins for a beginner) if you are trying to duplicate the simple calculator that comes with Windows.

    While true programmers might not consider your program to be the most manly it will nontheless get the job done.

    Ex: (I haven't read it, but it looks like a VB Calc Tutorial for beginners) http://prism.mem.drexel.edu/stanciu/...ual_basic4.htm


    P.S. I would help you out with your C++ one, but I don't use forms anymore, thus forgotten how.. I go the looooooong and painful route instead.
    Last edited by Kurisu; 02-06-2006 at 01:20 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I need help modifying my calculator!!
    By Matus in forum C Programming
    Replies: 5
    Last Post: 03-25-2008, 12:03 PM
  2. GUI Calculator - Critique
    By The Brain in forum Windows Programming
    Replies: 1
    Last Post: 02-25-2006, 04:39 AM
  3. Calculator + LinkedList
    By maro009 in forum C++ Programming
    Replies: 20
    Last Post: 05-17-2005, 12:56 PM
  4. Need help with calculator program
    By Kate in forum C# Programming
    Replies: 1
    Last Post: 01-16-2004, 10:48 AM
  5. Replies: 2
    Last Post: 05-10-2002, 04:16 PM