The method of function calling in C++ is no different from that in C language. Function calling is still implemented by executing the function calling statement in the caller function.
Below, we take question 1031 in the training ground as an example to show you how to use function calls and parameter passing in C++.
1031 is titled String Reverse Order Problem, the code is as follows:
#include<iostream>#include<cstring>usingnamespacestd;intReverse(chara[],charb[]){inti=0,n;n=strlen(a);while(a[i]!='