close

18.試找出下列程式錯誤之處,並嘗試修正之:
/* hw2_18,請找出此程式何處有誤*/
#include <stdio.h>
#include <stdlib.h>
int main (void)
{
 int num=2
 printf (num=%d,num);
 system (pause);
 return 0;
}

#include <stdio.h>

#include <stdlib.h>

int main (void)

{

int num;

num=2;

printf("num=%d\n",num);

system ("pause");

return 0;

}

arrow
arrow
    文章標籤
    作業 CH2
    全站熱搜

    小宥韓諾非 發表在 痞客邦 留言(0) 人氣()