#include <iostream>
using namespace std;
// Declare a function "bigger" which takes 2 double arguments and returns boolean.
bool bigger( double x, double y );
int main()
{
int x, y, rb;
Type: Posts; User: Zerohero11
#include <iostream>
using namespace std;
// Declare a function "bigger" which takes 2 double arguments and returns boolean.
bool bigger( double x, double y );
int main()
{
int x, y, rb;
Ok so then just replace "x,y" with true, false correct?
ah ok,
so...
rb = bigger (double x, double y)
correct?
Thanks for your help btw!
Ok I added the data type to "int" since the variables passed will be integers. I ran the program, and it ran fine. Did I excute the program right from your stand point?
#include <iostream>
using namespace std;
// Declare a function "bigger" which takes 2 double arguments and returns boolean.
int bigger( double x, double y );
int main()
{
int x, y, rb;
Can anyone else give me a few more insiders?
So far I can only get the first line but it won't display right. It keep apearing in front of the horizontal line..
int main()
{
int i,t,max;
Ok, I think I pretty much have the majority of it down. All I need to do is add the multiples of each number to the chart, but I'm having a little trouble. * Noob *
#include <iostream>...
I got it to work but
warning C4101: 'salary' : unreferenced local variable
Is one minor problem you might want to fix.
Also remove the ")" from your program.
#include<iostream>
Thanks for the help again guys!
Thanks alot for you help!
I jsut want to make sure in all scenero's that the program exected the calculations correctly. You seem like an experienced programer thats why I asked.
I see,
As far as the program , when you ran it did it work properly for you, and did the calculations correctly?
Thanks for the help. Can you explain what those librarys you added consist of?
I did this, and got better results, but still not the proper execution. Basically the 3rd part of the program will not execute any answer at all.
#include <iostream>
using namespace std;
...
What I'm trying to do is write a program to find the middle number of 3 sets of variables entered. I'm starting off doing it in basic fashion , not advanced using fuctions etc. This is the code I...
Alright, well I figured I need to change the loop, and x the percent by 100 so far. Still working on everything else.
I need to calculate how much time it will take to pay off a credit card. I'll take any help.
#include <iostream>
using namespace std;
The correct program:
#include <iostream>
using namespace std;
#include <math.h>
int trigequation( int,int);
Thanks alot guys I got it to work. I thought it was a major problem when it was just a few small minor errors.
I'm guessing about the prototyping right?
and when I add the brace it gives me this error.
'main' : not all control paths return a value
I recieved this error when doing what you recomended.
error C2601: 'trigequation' : local function definitions are illegal
C:\Program Files\Microsoft Visual Studio\MyProjects\Trig...
I get this error when I add the brace at the end.
warning C4715: 'main' : not all control paths return a value
Hello everyone this is my first post.I was trying to make tihs program using function and everything seemed to be going great....until I compiled. This is just a project I want to work on myself....