With the rapid development of information technology, programming has become a compulsory course for the vast majority of majors at Chengdu University, with “C programming” courses being the main focus. Through practice, it has been found that there are some problems with the current teaching mode, such as insufficient integration of theory and practice, insufficient utilization of students subjectivity, and limited practical activities. To address these issues, the article proposes a new teaching model a student centered, practice oriented teaching model. This model aims to stimulate students interest and initiative in learning, improve their practical ability and innovative thinking by optimizing teaching content and methods, introducing AIGC (Artificial Intelligence Generated Content) technology, adjusting teaching strategies, and solving practical problems.