Introduction to Linux Programming引入到Linux編程
The is the newly released FTLinuxCourse 2004 for Linux Programming using C and C++. 該是新近公佈的ftlinuxcourse 2004年為Linux編程使用C和C + + 。 This course module is part of the newest and latest edition of this free online Linux Course. 這當然是模塊的一部分,最新的和最新版的這個免費的網上Linux的過程中。 The chapters and lessons of this new course covers how to design a program using a flow chart, the C language, the C Library (libc) functions, advanced C and programming techniques, debugging,t he C++ language, the "make" program, process management, network programming, Fortran, Python, RPM package, and CVS.. 章節和教訓,這個新的課程包括如何設計一個程序使用的流程圖, C語言, C庫( LIBC的)功能,先進的C和編程技術,調試,他噸C + +語言“ ,使”計劃,過程管理,網絡編程, Fortran的,巨蟒, RPM的軟件包,個人簡歷.. The main course and links to all of 12 course chapters are provided here. 主要課程,並鏈接到所有的12章,當然是這裡提供的。
The main goal of this course is to teach users to program in C and C++, and apply this to daily Internet usage from the Linux OS point of view. 的主要目標,這當然是要教導用戶程序在C和C + + ,並應用此每天從互聯網的使用Linux操作系統的角度來看。
This covers the following activities: 這包括下列活動:
- Write programs in C, from scratch to materialize an idea 編寫程序在 C ,從無到有,實現一個想法
- Write programs in C++ 編寫程序在 C + +
- Write programs using Slang and curses 寫程式用的俚語和髒話
- Write programs in Fortran and Python 寫程式Fortran語言和Python
- Write Linux daemons (services) that regards generally Networking services 寫Linux的守護進程(服務)方面,一般網絡服務。
- Write the "configure" program to auto-configure the project 寫的“配置”程序自動配置項目
- Built its own RPM packages 建立了自己的RPM包
- Compiling software downloaded from the remote sites 編制的軟件下載,從遠程站點
Update 10/23/2006: This course has been updated and is now found here: 更新2006年10月23日:這當然已更新,現在發現在這裡:
An Introduction to Linux Programming (using C and C++) 介紹了Linux的編程(使用C和C + + )
Table of Contents 目錄
Chapter P1. 章的P1 。 So you want to program? 所以你要計劃?
- What is a program? 什麼是計劃?
- Interpreted vs Compiled 解釋與彙編
- A first example in C language 第一個例子,在C語言
- The "main" procedure “主要”程序
- The arguments argc and argv 論據argc和argv
- The atoi 該atoi
- Data declaration 數據宣言
- The C program checker: lint 該C程序檢查:林特
- The gcc: the GNU C Compiler 海灣合作委員會:在GNU的C編譯器
- Float and double 浮法和雙重
- The make command 作指揮
- The touch command 觸摸指揮
- The environ 對環境
- A first example in C++ language 第一個例子,在 C + +語言
- The ++ operator + +運營商
- How to Design of a Program with a Flow Chart 如何設計一個程序流程圖
- Exercises 演習
- Test 測試
- Internet resources about this chapter 互聯網上的資源,這約章
Chapter P2. 章的P2 。 The C Language C語言
- C Data types C數據類型
- Formatting data 數據格式
- Vectors and Pointers 向量和指針
- Structures, union and typedef 結構,聯盟和typedef
- Conversion between types 類型之間的轉換
- C Operators c營辦商
- C Functions c職能
- How to build a static library 如何建立一個靜態庫
- How to build a shared library 如何建立一個共享庫
- Exercises 演習
- Test 測試
- Internet resources about this chapter 互聯網上的資源,這約章
Chapter P3. 章P3的。 The C Library (libc) functions C庫( LIBC的)職能
- The C Compiler 該C編譯器
- The RedHat 2.96 'gaffe' compiler 該版RedHat 2.96 ' gaffe '編譯器
- The latest GNU gcc 3.1 最新的GNU海灣合作委員會3月1日
- The C Preprocessor 在C預
- The C Library: "libc.a" C庫: “ libc.a ”
- The stdio functions familiy 該stdio職能,致力於家庭
- The type FILE. 類型的文件。
- The stat type: sys/stat.h 該統計類型:系統/ stat.h
- The pwd functions 該密碼功能
- The string functions 字符串函數
- The math functions 數學函數
- The stdlib functions 該stdlib職能
- The signals 信號
- The time function 該時間函數
- C Limits c限制
- The stdio functions familiy 該stdio職能,致力於家庭
- Some Utilities for Developers 一些公用事業開發商
- Some Examples 一些例子
- Exercises 演習
- Test 測試
- Internet resources about this chapter 互聯網上的資源,這約章
Chapter P4. 章的P4 。 Advanced C and programming techniques 先進的C和編程技術
- Memory management 內存管理
- The "malloc" and "calloc" “ malloc ”和“ calloc ”
- The memcpy 該memcpy
- Programming techniques 編程技術
- Algorithms for Sorting 算法排序
- Selection 選擇
- Insertion 插入
- Bubble 泡沫
- ShellSort shellsort
- QuickSort 快速
- Algorithms for Searching 算法搜索
- Sequential Search 序貫搜索
- List Search and 列表搜索及
- Binary Search 二元搜尋
- Queues 排長龍
- Algorithms for Sorting 算法排序
- Exercises 演習
- Test 測試
- Internet resources about this chapter 互聯網上的資源,這約章
Chapter P5. 章小五。 The debugging of C programs 調試C程序
- What is a debugger ? 什麼是調試器?
- The "gdb" debugger “ gdb此時就會”調試器
- The graphical interface for gdb: "xxgdb" 該圖形化界面為gdb此時就會說: “ xxgdb ”
- The Data Display Debugger: "ddd". 數據顯示調試器: “國內” 。
- A debugging session 1調試會話
- Tracing the execution of a program 追查執行程序
- How to set up breakpoints. 如何設立斷點。
- How to print data in the debugger. 如何打印數據在調試器。
- Some hints to debug graphical programs 一些提示調試圖形程序
- Exercises 演習
- Test 測試
- Internet resources about this chapter 互聯網上的資源,這約章
Chapter P6. 章小六。 The C++ Language C + +語言
- Introduction 導言
- The C++ Implementation 在 C + +實施
- A new mode to include files for cplusplus 一個新的模式,包括檔案cplusplus
- New operators for Standard I/O 新營辦商為標準 I / O
- What is a class? 什麼是一類呢?
- Constructors and Destructors 建設者和destructors
- File I/O 文件 I / O
- Inheritance or Derived Classes 繼承或派生類
- The C++ Standard Library C + +標準圖書館
- C++ Keywords C + +的關鍵詞
- Exercises 演習
- Test 測試
- Internet resources about this chapter 互聯網上的資源,這約章
Chapter P7. 章p7 。 The "make" program “ ,使”計劃
- The make program 作計劃
- Some Basic Makefiles 一些基本的makefiles
- The implicit Makefile 隱Makefile中
- A simple and effective Makefile 一個簡單而有效的Makefile文件
- A recursive Makefile 遞歸Makefile中
- The X11 Makefile 在X11 Makefile中
- The Qt Makefile 該Qt的Makefile文件
- A short "make" Command Reference 在短期內“作出”命令參考
- The "automake" and "autoconf" tools “ automake ”和“ autoconf的”工具
- Exercises 演習
- Test 測試
- Internet resources about this chapter 互聯網上的資源,這約章
Chapter P8. 章p8 。 Process management 過程管理
- Processes under Linux 進程在Linux下
- How to use a "popen" function 如何使用“ popen ”功能
- Using signals 使用信號
- Launching programs from programs 發射程序,從程序
- Using getpid() 使用getpid ( )
- Exercises 演習
- Test 測試
- Internet resources about this chapter 互聯網上的資源,這約章
Chapter P9. 章p9 。 Network Programming 網絡編程
- An Introduction to Network Programming 介紹了網絡編程
- Network API 網絡的空氣污染指數
- IPC Programming IPC的編程
- What is a socket ? 什麼是插座?
- The message queue 該消息隊列
- Semaphores 信號燈
- What is Shared Memory? 什麼是共享內存?
- Locking files 鎖定檔案
- CORBA programming CORBA的編程
- Exercises 演習
- Test 測試
- Internet resources about this chapter 互聯網上的資源,這約章
Chapter P10. 章p10 。 Fortran Fortran語言
- FORTRAN ... Fortran的... an ethernal scientfic programming language 1 ethernal scientfic編程語言
- Fortran Generations Fortran的後代
- Fortran 90 features 與Fortran 90的特點
- Discovering FORTRAN 發現的Fortran
- The READ and WRITE instructions 讀取和寫入的指示
- Data Declaration 數據宣言
- Loops 循環
- FORMAT 格式
- Compiling FORTRAN with libs 編制的Fortran與庫
- Some Examples 一些例子
- Exercises 演習
- Test 測試
- Internet resources about this chapter 互聯網上的資源,這約章
Chapter P11. 章p11 。 An overview on Python 概述了Python的
- What is Python ? 什麼是Python的?
- My first program in Python 我的第一個綱領,在巨蟒
- Numbers 號碼
- Strings 弦樂團
- Lists 名單
- Dictionaries 字典
- Classes 班
- File I/O with Python 文件 I / O與巨蟒
- The Standard Python Library 標準的Python圖書館
- Compiling Python 編制巨蟒
- Writing X applications in Python: Tkinter 寫作X應用程序在巨蟒: tkinter
- ZOPE 的Zope
- Conclusions 結論
- Exercises 演習
- Test 測試
- Internet resources about this chapter 互聯網上的資源,這約章
Chapter P12. 章p12 。 Built your RPM package 建成您的RPM的軟件包
- Introduction 導言
- RPM like a Package DataBase RPM的就像一個軟件包數據庫
- RPM Commands RPM的命令
- Upgrading the RPM database from RPM 3.X to 4.X 提升RPM的數據庫從RPM 3.x中,以4.x中
- Upgrading from RPM 4.0.2 to 4.0.3 升級從RPM 4.0.2到4.0.3
- Upgrading from RPM 4.0.91 to 4.0.96 升級從RPM 4.0.91到4.0.96
- Built a RPM package from scratch 建起了rpm的包從零開始
- Creating Dependencies between packages 創造相依之間的套件
- Exercises 演習














