Introduction to Linux Programming Introduction à la programmation sous Linux
The is the newly released FTLinuxCourse 2004 for Linux Programming using C and C++. La est la nouvelle version FTLinuxCourse 2004 pour Linux programmation en C et C + +. This course module is part of the newest and latest edition of this free online Linux Course. Ce module de cours fait partie de la plus récente et la plus récente édition de ce libre cours en ligne 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.. Les chapitres et les leçons de ce nouveau cours traite de la manière de concevoir un programme en utilisant un diagramme, le langage C, la bibliothèque C (libc) fonctions avancées C et techniques de programmation, de débogage, t il langage C + +, le "make" programme, la gestion des processus, programmation réseau, Fortran, Python, paquetage RPM, et CVS .. The main course and links to all of 12 course chapters are provided here. Les principaux cours et des liens vers tous les cours de 12 chapitres sont fournies ici.
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. L'objectif principal de ce cours est d'apprendre aux utilisateurs à programmer en C et C + +, et les appliquer à l'utilisation quotidienne d'Internet de l'OS Linux point de vue.
This covers the following activities: Cela couvre les activités suivantes:
- Write programs in C, from scratch to materialize an idea Écrire des programmes en C, à partir de zéro pour matérialiser une idée
- Write programs in C++ Écrire des programmes en C + +
- Write programs using Slang and curses Écrire des programmes en utilisant Slang et malédictions
- Write programs in Fortran and Python Écrire des programmes en Fortran et Python
- Write Linux daemons (services) that regards generally Networking services Ecrire Linux démons (services) que ce qui est généralement mise en réseau des services
- Write the "configure" program to auto-configure the project Écrivez le "configure" programme d'auto-configurer le projet
- Built its own RPM packages Construit ses propres paquets RPM
- Compiling software downloaded from the remote sites La compilation de logiciels téléchargés à partir des sites distants
Update 10/23/2006: This course has been updated and is now found here: Mise à jour du 10/23/2006: Ce cours a été mis à jour et est maintenant ici:
An Introduction to Linux Programming (using C and C++) Une introduction à Linux Programmation (en C et C + +)
Table of Contents Table des matières
Chapter P1. Chapitre P1. So you want to program? Donc, vous voulez programmer?
- What is a program? Qu'est-ce qu'un programme?
- Interpreted vs Compiled Interprété vs Compilé
- A first example in C language Un premier exemple en langage C
- The "main" procedure La "principale" procédure
- The arguments argc and argv Les arguments argc et argv
- The atoi Le atoi
- Data declaration Les données de déclaration
- The C program checker: lint Le vérificateur de programme C: peluche
- The gcc: the GNU C Compiler Gcc: le compilateur GNU C
- Float and double Float et double
- The make command La commande make
- The touch command La commande touch
- The environ L'environnement
- A first example in C++ language Un premier exemple en langage C + +
- The ++ operator L'opérateur + +
- How to Design of a Program with a Flow Chart Comment Conception d'un programme avec un Tableau
- Exercises Exercices
- Test Tester
- Internet resources about this chapter Ressources Internet sur ce chapitre
Chapter P2. Chapitre P2. The C Language Le langage C
- C Data types Types de données C
- Formatting data Mise en forme des données
- Vectors and Pointers Vecteurs et pointeurs
- Structures, union and typedef Ouvrages d'art, de l'Union et typedef
- Conversion between types Conversion entre types
- C Operators Les opérateurs C
- C Functions C Fonctions
- How to build a static library Comment construire une bibliothèque statique
- How to build a shared library Comment construire une bibliothèque partagée
- Exercises Exercices
- Test Tester
- Internet resources about this chapter Ressources Internet sur ce chapitre
Chapter P3. Chapitre P3. The C Library (libc) functions La bibliothèque C (libc) fonctions
- The C Compiler Le compilateur C
- The RedHat 2.96 'gaffe' compiler La RedHat 2,96 'gaffe' compilateur
- The latest GNU gcc 3.1 La dernière GNU gcc 3,1
- The C Preprocessor Le préprocesseur C
- The C Library: "libc.a" La bibliothèque C: "libc.a"
- The stdio functions familiy Les fonctions stdio famille
- The type FILE. Le type FILE.
- The stat type: sys/stat.h Le type de stat: sys / stat.h
- The pwd functions Les fonctions pwd
- The string functions La chaîne fonctions
- The math functions Les fonctions mathématiques
- The stdlib functions Les fonctions de stdlib
- The signals Les signaux
- The time function La fonction du temps
- C Limits C Limites
- The stdio functions familiy Les fonctions stdio famille
- Some Utilities for Developers Certains services publics pour les développeurs
- Some Examples Quelques exemples
- Exercises Exercices
- Test Tester
- Internet resources about this chapter Ressources Internet sur ce chapitre
Chapter P4. Chapitre P4. Advanced C and programming techniques C avancée et des techniques de programmation
- Memory management La gestion de la mémoire
- The "malloc" and "calloc" Le "malloc" et "calloc"
- The memcpy Le memcpy
- Programming techniques Les techniques de programmation
- Algorithms for Sorting Algorithme de tri
- Selection Sélection
- Insertion Insertion
- Bubble Bubble
- ShellSort Shellsort
- QuickSort Quicksort
- Algorithms for Searching Algorithmes pour la recherche
- Sequential Search Recherche séquentielle
- List Search and Liste de recherche et de
- Binary Search Binaires de recherche
- Queues Files d'attente
- Algorithms for Sorting Algorithme de tri
- Exercises Exercices
- Test Tester
- Internet resources about this chapter Ressources Internet sur ce chapitre
Chapter P5. Chapitre P5. The debugging of C programs Le débogage de programmes en C
- What is a debugger ? Qu'est-ce qu'un débogueur?
- The "gdb" debugger Le "GDB" débogueur
- The graphical interface for gdb: "xxgdb" L'interface graphique pour gdb: "xxgdb"
- The Data Display Debugger: "ddd". Le Data Display Debugger: "ddd".
- A debugging session Une session de débogage
- Tracing the execution of a program Retraçant l'exécution d'un programme
- How to set up breakpoints. Comment mettre en place d'arrêt.
- How to print data in the debugger. Comment les données d'impression dans le débogueur.
- Some hints to debug graphical programs Quelques conseils pour déboguer des programmes graphiques
- Exercises Exercices
- Test Tester
- Internet resources about this chapter Ressources Internet sur ce chapitre
Chapter P6. Chapitre P6. The C++ Language Le langage C + +
- Introduction Introduction
- The C++ Implementation Le C + + Application
- A new mode to include files for cplusplus Un nouveau mode d'inclure des fichiers pour cplusplus
- New operators for Standard I/O Les nouveaux opérateurs pour les E / S standard
- What is a class? Qu'est-ce qu'une classe?
- Constructors and Destructors Constructeurs et destructeurs
- File I/O E / S de fichier
- Inheritance or Derived Classes Héritage ou issus des classes
- The C++ Standard Library Le C + + Standard Library
- C++ Keywords C + + Mots-clés
- Exercises Exercices
- Test Tester
- Internet resources about this chapter Ressources Internet sur ce chapitre
Chapter P7. Chapitre P7. The "make" program Le "make" programme
- The make program Le programme Make
- Some Basic Makefiles Quelques principes de base des makefiles
- The implicit Makefile Le implicite Makefile
- A simple and effective Makefile Une simple et efficace Makefile
- A recursive Makefile Un récursive Makefile
- The X11 Makefile Le makefile x11
- The Qt Makefile Le Qt makefile
- A short "make" Command Reference Un court "make" Les commandes de référence
- The "automake" and "autoconf" tools Le «automake» et «autoconf" outils
- Exercises Exercices
- Test Tester
- Internet resources about this chapter Ressources Internet sur ce chapitre
Chapter P8. Chapitre P8. Process management La gestion des processus
- Processes under Linux Processus sous Linux
- How to use a "popen" function Comment utiliser un "popen" fonction
- Using signals Utilisant des signaux
- Launching programs from programs Lancement de programmes de programmes
- Using getpid() L'utilisation de getpid ()
- Exercises Exercices
- Test Tester
- Internet resources about this chapter Ressources Internet sur ce chapitre
Chapter P9. Chapitre P9. Network Programming Network Programming
- An Introduction to Network Programming Une introduction à la programmation réseau
- Network API Réseau API
- IPC Programming Programmation CIB
- What is a socket ? Qu'est-ce qu'une prise de courant?
- The message queue La file d'attente de messages
- Semaphores Sémaphores
- What is Shared Memory? Qu'est-ce que la mémoire partagée?
- Locking files Verrouillage des fichiers
- CORBA programming CORBA programmation
- Exercises Exercices
- Test Tester
- Internet resources about this chapter Ressources Internet sur ce chapitre
Chapter P10. Chapitre P10. Fortran Fortran
- FORTRAN ... Fortran ... an ethernal scientfic programming language ethernal scientfic un langage de programmation
- Fortran Generations Fortran générations
- Fortran 90 features Fortran 90 caractéristiques
- Discovering FORTRAN Découvrir FORTRAN
- The READ and WRITE instructions Le lire et à écrire des instructions
- Data Declaration Déclaration de données
- Loops Boucles
- FORMAT FORMAT
- Compiling FORTRAN with libs Fortran Compiler avec Libs
- Some Examples Quelques exemples
- Exercises Exercices
- Test Tester
- Internet resources about this chapter Ressources Internet sur ce chapitre
Chapter P11. Chapitre P11. An overview on Python Une vue d'ensemble sur Python
- What is Python ? Qu'est-ce que Python?
- My first program in Python Mon premier programme en Python
- Numbers Numéros
- Strings Cordes
- Lists Listes
- Dictionaries Dictionnaires
- Classes Classes
- File I/O with Python E / S de fichier avec Python
- The Standard Python Library La bibliothèque standard de Python
- Compiling Python Compiler Python
- Writing X applications in Python: Tkinter Écrire des applications X en Python: Tkinter
- ZOPE ZOPE
- Conclusions Conclusions
- Exercises Exercices
- Test Tester
- Internet resources about this chapter Ressources Internet sur ce chapitre
Chapter P12. Chapitre P12. Built your RPM package Construit votre paquetage RPM
- Introduction Introduction
- RPM like a Package DataBase RPM comme une base de données des paquets
- RPM Commands Commandes RPM
- Upgrading the RPM database from RPM 3.X to 4.X Mise à jour de la base de données RPM RPM de 3.X à 4.X
- Upgrading from RPM 4.0.2 to 4.0.3 Une mise à jour de RPM 4.0.2 à 4.0.3
- Upgrading from RPM 4.0.91 to 4.0.96 Une mise à jour de RPM 4.0.91 à 4.0.96
- Built a RPM package from scratch Construction d'un paquetage RPM à partir de zéro














