This article discusses teaching methods about programming in computer basic courses. Take ”Dynamic Memory Allocation and Release” as the subject to design a training project. The training project divides into ”teaching goal”, ”experimental content”, ”output”, ”result description”, and ”discussion” five paragraphs, expected to conducive toward arranging the teaching material for teachers, enhancing learning efficiency and effectiveness for students.