gcc hw3.c ...... 程式記憶體區段錯誤!

 

#include <homework_hell.h>

#include <poor_health.h>

#include <no_holiday.h>

 

int

main(int argc, char *argv[])

{

    while (professor_alive)

    {

        number_homework++;

        printf("Homework %d posted\n", number_homework);

 

        /* 我甚至還沒把 final_exam() 的功能加上去...... */

    }

    summer_vacation("Oh yeah! It's coming!");

 

    return probability_karoshi;

}

 

void

summer_vacation(char *sentence)

{

    printf("%s I want to......\n", sentence);

 

    write_monograph("TinyOS");     // 我好想把這一行註解掉......

    play_xBox_360("Prototype");

    date("Girlfriend");

    travel();

    do_nothing();

}

 

/*

/* 你們不覺得在 while 迴圈之外的 summer_vacation() 顯得很悲傷嗎?

/* 真希望哪天 professor_alive 會變成 FALSE

/* 唉............

/*/