标准输入输出
1. 完整例子
| 1 | #include <stdio.h> |
| 2 | |
| 3 | int main(void) { |
| 4 | printf("int=%d float=%.2f char=%c str=%s\n", |
| 5 | 42, 3.14, 'A', "hi"); |
| 6 | return 0; |
| 7 | } |
| 1 | #include <stdio.h> |
| 2 | |
| 3 | int main(void) { |
| 4 | printf("int=%d float=%.2f char=%c str=%s\n", |
| 5 | 42, 3.14, 'A', "hi"); |
| 6 | return 0; |
| 7 | } |