Greetings,
I am recieving this code but it doesn't make sense to me. Pls tell me how to fix it.
Code:
/*
* Specification:
* Input:
* Input three integers from the keyboard.
* Output:
* Sort them into ascending order onto the screen.
*
**************************************************************************************/
#include <iostream>
#include <numeric>
using namespace std;
int Sort3(int);
int int1, int2, int3;
int main()
{
cout << "Input three integers: \n";
cin >> int1 >> int2 >> int3;
cout << " Integers have now been sort by ascending order. " << Sort3(int1, int3) << "\n";
return 0;
}
int Sort3(int in1, int int2, int int3)
{
Sort3(int1, int3);
return 0;
}
Here is the errors:
error C2660: 'Sort3' : function does not take 2 parameters
C:\Program Files\Microsoft Visual Studio\MyProjects\test\testme.cpp(39) : error C2661: 'Sort3' : no overloaded function takes 2 parameters
Error executing cl.exe.
test.exe - 2 error(s), 0 warning(s)