Professional Documents
Culture Documents
doandongnguyen@gmail.com
Course information
• Programming 1 – INS2020
• Theory + Exercises
• Mid-term quiz (30%) + Final exam (60%)
• Books:
• The C Programming language (2nd), Brian W. Kerninghan & Dennis M. Ritchie,
Prentice-Hall, 1998
• The C++ Programming Language (3rd), Rjarne Stroustrup, Addison-Wesley, 1997
• IDE:
• MS Visual Studio (Community, Professional) for Windows/Mac Users
• Notepad++ (requires a separate compiler) for Windows Users
• Vim + GCC compiler for GNU/Linux
Contents
• Low-level languages
• Machine dependent (machine language: Binary number)
• Assembly
• Need an assembler to translate into machine instructions
• High-level languages
• A program can be written in a language to be machine independent (requires a
compiler)
• Ex: Fortran (FORmula TRANslation), C/C++, ..
Operating Systems (OS)
• Comments in C:
• /*…*/
• //
• .. Details will be in next lessons
Example
/***helloworld.c***/ OUTPUT
Hello World
#include <stdio.h>
int main(void){
printf(“Hello World”);
return 0;
}
Exercises