当然可以。 而且你现在产生这种感觉,非常正常。 因为绝大多数 C 语言入门教程,前十几节课都长这样: #include int main() { int a, b; scanf("%d%d", &a, &b); printf("%d\n", a + b); return 0; } ...