The basic types of functions are as follows.
[Return type] [Function name] ([Factor 1], [Factor 2]...);
Return type means return type, i.e.
return e;
It represents the data type of the return value that will go into 에.
Typical data types include int
float
double
char
.
Questioner is
string find (string num1, string num2) {
strcat(num1, num2);
return num1;
}
I think you want a function similar to... The return type is already string
, but I don't understand what you're changing.
© 2024 OneMinuteCode. All rights reserved.