【C語言】03-printf和scanf函數

一、printf函數 這是在stdio.h中聲明的一個函數,因此使用前必須加入#include <stdio.h>,使用它可以向標準輸出設備(比如屏幕)輸出數據 1.用法 1> printf(字符串) printf("Hello, World!"); 輸出結果是: 2> printf(字符串, 格式符參數) 1 // 使用常量作參數 2 printf("My age is %d\n", 26);
相關文章
相關標籤/搜索