01 - C++ Language Programming Teaching Material +&&...

Info iconThis preview shows pages 1–16. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: C++ Language Programming Teaching Material +&& Introduction to Programming with C++ n&& Y.Daniel Liang ¨ y ¡ ‚ “ J&& —, ] 2009 n 6 n& 1 T ¢ v · “ J T ¢ v · “ www.cs.armstrong.edu/liang/cpp T ¢ v · “ £ ¤ ¥ Reference + 1 n C++ & ¡ ¢ • “0&& p ( ¸ª* 21 n££ ¤0 ¥ ‚ “0&& — 9 ]E n 2 n C++ Primer n££ ( n 4 n ) n Stanley B. Lippman Barbara E. Moo Josée LaJoie } Av · “ n££ n 3 n££ C++/C ££££ ££ http://download.csdn.net/source/374232 Syllabus Part I Fundamentals of Programming Chapter 1 ~ Chapter 8 (6 credit hours) Part II Object-Oriented Programming Chapter 9 ~ Chapter 14 (14 ~ 16 credit hours) Part III Data Structures Chapter 15 ~ Chapter 20 (4 credit hours) Part IV C++ development Extension of teaching material. Development of simple GUI applications using MFC. (2 ~ 4 credit hours) Grading Class Participation ( +&&& ): 20% Home Works ( +&& & ): 10% Final Examination ( +&&& ): 70% Chapter 1 Fundamentals of Programming Objectives To review computer basics, programs, and operating systems (§1.2-1.4). (Optional) To represent numbers in binary, decimal, and hexadecimal (§1.5 Optional). To know the history of C++ (§1.6). To write a simple C++ program (§1.7). To understand the C++ program development cycle (§1.8). To develop C++ using Visual C++ (§1.9). Before Writing Your First C++ Program Question: Where to write your C++ program? Before Writing Your First C++ Program Question: Where to write your C++ program? A typical C++ program usually includes two types of text files: *.cpp file (source file, definition file) *.h file (header file) You can write your program in any text editor , then name it properly. Let’s Write a Simple C++ Program #include <iostream> int main() { // Display Welcome to C++ to the console std::cout << "Welcome to C++!" << std::endl; getchar(); return 0; } After Writing the C++ Program Compiler Welcome.cpp Welcome.obj Compiling… Send it to the compiler Now it is the compiler’s job Waiting … See what we’ll get Then? Linker Welcome.obj Welcome.exe Linking… Send it to the linker Now it is the linker’s job Waiting … See what we’ll get Now run your program Is the result what you want? Review What We Have Done S o urce C o d e C re ate/M o d ify S o urce C o d e C o m p iler E xec uta b le C o d e R u n E x ec utab le C o d e e.g., W elco m e R e su lt If c o m p ila t io n e rro rs If ru n t im e e rro rs o r in c o rre c t re su lt #include <iostream> int main() { // Display Welcome to C+ + to t he c on sole std::cout << "Welcome to C ++ !" < < st d::endl; return 0; } S a v e d o n th e d isk sto re d o n th e d isk S o u rc e c o d e (d e v e lo p e d b y th e p ro g ra m m e r) M ach ine C o d e L in k e r sto re d o n th e d isk A n o b je c t file (e .g ., W e lc o m e .o b j) is c re a te d ....
View Full Document

This note was uploaded on 06/12/2011 for the course ECON 101 taught by Professor Professor during the Spring '10 term at Cisco Junior College.

Page1 / 56

01 - C++ Language Programming Teaching Material +&&...

This preview shows document pages 1 - 16. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online