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 演习














