- #1
chronie
- 23
- 0
Below is a sample code. My professor starts code and we have to finish the code. Below is not the assignment but a sample I have written up to help my question. I have two .cpp files one named main the other named func1. Within func1 I have a function called matheq. I was just wondering if there was some way to have my main.cpp print out the matheq numbers in the parentheses? Or do I have to redefine them in my second func2.cpp file?
I added a cout statement trying to show what I am trying to do, I know it is wrong but I just wanted to show some basic code to back up my statement.
Thanks again for your help!
-Mike
I added a cout statement trying to show what I am trying to do, I know it is wrong but I just wanted to show some basic code to back up my statement.
Thanks again for your help!
-Mike
Code:
#include<iostream>
void matheq(double a,double b,double c);
using namespace std;
int main()
{
matheq(1.0,3.3,2.1);
matheq(1.0,3.3,5.1);
matheq(1.0,3.3,0.0);
cout << "matheq(a) << endl;}