Startpage >> Main >> UserDefinedFunction
Contents
edit SideBar
func int fi(real a1) { int i=a1*a1/1; return i; }; func real myfunction(real a,real b) { real aa=a; real z =fi(aa)+b; return z; }; // call the function cout << myfunction(1.0,3.) << " " << myfunction(1,3) << endl;
return to 2D examples