Thread: Help, I am building my first project: A simple calculator.

  1. #1
    Registered User
    Join Date
    Jan 2019
    Posts
    17

    Help, I am building my first project: A simple calculator.

    Last edited by ChaturBauka; 01-08-2019 at 07:34 PM.

  2. #2
    Registered User
    Join Date
    Dec 2017
    Posts
    1,626
    There are many errors in your code so it's hard to help, especially when it's all linked to in another location like that.
    In general, input shouldn't take a parameter but definitely should return a value. Why are you passing a value in?
    And your calculation functions need to take two values each and return a value, but your prototypes in the header file say they don't take any parameters.
    A little inaccuracy saves tons of explanation. - H.H. Munro

  3. #3
    Registered User
    Join Date
    Jan 2019
    Posts
    17
    Thank You for your feedback, it's crucial. Leave all other errors just explain me errors related to header file and linking of multiple .c files. Your help is much appreciated.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    1. Tell calc.h line 12 that your input function takes a float parameter.

    2. Make a prototype for unusualFlow.
    You have bool UnusualFlow(); but case matters, and you also seem to be passing a parameter.





    And next time, post your error messages as text we can copy and paste for easy reference. A fuzzy picture just doesn't cut it.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Jan 2019
    Posts
    17
    I won't do that again. I didn't wish to clutter here, that is why I did that. Anyway thank you again this forum is very helpful.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 03-10-2013, 05:40 PM
  2. Building my (biggest yet) project
    By Vespasian in forum C Programming
    Replies: 19
    Last Post: 10-12-2011, 03:18 AM
  3. building the project issue
    By beach king in forum Windows Programming
    Replies: 9
    Last Post: 01-01-2011, 09:18 AM
  4. Building a project using a Makefile
    By starcatcher in forum Windows Programming
    Replies: 2
    Last Post: 11-23-2008, 11:50 PM
  5. Building a calculator
    By 52Cent in forum C Programming
    Replies: 13
    Last Post: 02-23-2008, 02:50 PM

Tags for this Thread