高级语言程序设计简介
课程编号:3412201
课程名称(中文):高级语言程序设计
课程名称(英文):Programming Languages
学分数/开课学期:8/1,2
课程类别:专业基础课必修
面向专业:信息与计算科学
课程负责人:冯伟
课程内容简介(中文):
高级语言程序设计是信息与计算科学专业重要必修课。讲授C和C++语法,及如何编写编译调试C和C++程序。目标是引导学生从C初学者成为C++程序员,使其能熟练利用计算机解决实际问题。C内容包括数据类型、运算符和表达式、过程化语句、函数和指针等。而C++是C的增强版和扩展语言。C++包括C的任何内容,且增加对面向对象编程特点,包括类的封装、继承、多态和模板等。C和C++分享一些共同语法,在程序结构上都是函数驱动,但程序设计思想极不同。C是过程化语言,将任务分解为一系列小任务,称由上而下设计。而C++则是面向对象语言,解决问题时由物理对象抽象出来类,而后用类表示算法程序。课程中,学生应尽力编译运行例题程序。推荐微软VC编译器,它是包括编辑、编译和调试的集成开发环境,C和C++程序都可使用。最有效和最令人愉快的学习方法,是用正确C和C++语法及良好编程方格,实际地编码,并用VC编译器编译运行。
课程内容简介(英文):
Programming languages is an important major subject of information and computational science specialty. The course teaches the syntax of C and C++ languages, and how to write, compile and debug C and C++ programs. Its aim is to lead student from being a beginner of C language up to being a C++ language programmer, and to make them be able to be skilled in making use of computer to solve the practical problems. C topics include data type, operator and expression, procedural sentence, function, pointer, and so on. While C++ language is an enhanced version and an extendible language of the C language. C++ language includes everything of C language and adds support for object-oriented programming features. These include class encapsulation, inheritance, polymorphism, template, and so on. Although the C and C++ share some common syntax, and are all function-driving in program structure, they are very different in programming idea. C language is a procedural language,is to break the task into successively smaller subtasks. This is known as top-down design. While C++ language is an object-oriented language. To solve a problem with C++ is to design classes that are abstractions of physical objects, and the algorithmic program is written that uses these classes. As studying the lessons, the students should try compiling and running the examples. As compiler, Microsoft's Visual C++ is recommended. It is an integrated development environment with editor, compiler and debugger integrated together, and will works for C and C++ codes. The best efficient and most enjoyable way to learn programming languages is to actually write these codes with correct C and C++ syntax and good programming style, compile and run them by Visual C++ compiler.