User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 429,747 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,081 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums

help me please I try to make a arithmetic calculator but i have 3 errors

Join Date: Nov 2007
Posts: 882
Reputation: mitrmkar is a jewel in the rough mitrmkar is a jewel in the rough mitrmkar is a jewel in the rough mitrmkar is a jewel in the rough 
Rep Power: 5
Solved Threads: 180
mitrmkar mitrmkar is offline Offline
Practically a Posting Shark

Re: help me please I try to make a arithmetic calculator but i have 3 errors

  #5  
May 15th, 2008
Originally Posted by mertucci View Post
but i want to take numbers from user
how can i ?

You already correctly take all the input from the user by using cin, e.g. the following works

cin>>x;

But you cannot call a function like this:

hesap.arith_ex(int x,int y ,int z);

The above line actually generates all of the three errors you get.

You are not allowed to specify the types of the arguments you pass to a function when you make the function call. Instead you need to do it like:
// declare the variables you need to pass to the function
int x = 0;
int y = 0;
int z = 0;

// here you might also get the values from the user, using cin 

hesap.arith_ex(x, y, z); // now make the function call with the arguments
Reply With Quote  
All times are GMT -4. The time now is 3:13 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC