分析程序,写出运行结果。#include using namespace std; int f() { static int i = 0; int s = 1; s += i; ++i; return s;} int main() { int i, a = 0; for(i = 0; i < 5; ++i) { a += f( ); cout << a<
发布时间:2024-04-18 21:01:17
发布时间:2024-04-18 21:01:17