解答例:
#include <iostream.h> void jan12(int x, int y, int* sum, int* mul) { *sum = x+y; *mul = x*y; } void main() { int a, b; jan12(1, 2, &a, &b); cout << a << ", " << b << "\n"; }
解答例:
int mystrlen (char *str) { int i=0; for (; *str; str++) { i++; } return i; }