In a header:
someType MyFunc(someType1 var1, someType2 var2); //notice the ";" at end
someType is the type of what the function returns, for example double. Same goes for parameters. For example double MyFunc(int var1, double var2)
In the source
someType MyFunc(someType1 var1, someType2 var2)
{
do something with var1, var2
return something of type 'someType'
}
2
solved How to find the computational geometry of circles and rectangles using x and y values in c++? [closed]