敲鍵盤上的空格鍵輸入空格。 C語言中輸入空格是可以實現的,但須知道輸出視窗一行最多多少個字元。這樣才能保證輸出在一行的中間。 #include "stdio.h" int main() { printf(" 在一行中間輸出一句話! n") } 標頭檔案:
#include <stdio.h>