thats just it is im stuck at where you see just trying to get the inputs and cant seem to get around getting the inputs in first useing those first two
int main ()
{
int num, denom;
cout <<" enter a common fraction as 2 integers seperated by a slash";
getfrac (num, denom);
cout <<" fraction is " << num << " / " << denom << endl;
}
void readfracproblem(int& num1, int& denom1, int& num2, int& denom2, char& op)
{
char slash;
getfrac (num1,slash, denom1);
cin >> op;
getfrac (num2,slash, denom2);
}
even this isnt helping, it now says it doesnt take 3 arguments
------ Build started: Project: fraction, Configuration: Debug Win32 ------
Compiling...
fraction.cpp
c:\documents and settings\alissa\my documents\visual studio 2008\projects\fraction\fraction\fraction.cpp(23) : error C2660: 'getfrac' : function does not take 2 arguments
c:\documents and settings\alissa\my documents\visual studio 2008\projects\fraction\fraction\fraction.cpp(25) : error C2660: 'getfrac' : function does not take 2 arguments
fraction 2.cpp
c:\documents and settings\alissa\my documents\visual studio 2008\projects\fraction\fraction\fraction 2.cpp(27) : error C2660: 'getfrac' : function does not take 3 arguments
c:\documents and settings\alissa\my documents\visual studio 2008\projects\fraction\fraction\fraction 2.cpp(29) : error C2660: 'getfrac' : function does not take 3 arguments
Generating Code...
Build log was saved at "file://c:\Documents and Settings\alissa\My Documents\Visual Studio 2008\Projects\fraction\fraction\Debug\BuildLog.htm"
fraction - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Now you declare and define getfract to take 2 arguments and pass 3 to it.
getfrac (num1,slash, denom1);
does not match
void getfrac (int& numerator, int& denomanator)