再調用函數時須要對函數進行聲明

#include "stdio.h"
 void printline(void);/*declaration(sometimes must be declared before call funtion)*/

 main()
 {
     printline();
     printf("This illustrates the use of C funtions\n");
     printline();
 }
 void printline(void)
 {
     int i;
     for(i = 1; i < 40; i++)
     printf("=");
     printf("\n");
 }
相關文章
相關標籤/搜索