Introduction to Linux Programming Einführung in die Linux-Programmierung
The is the newly released FTLinuxCourse 2004 for Linux Programming using C and C++. Das ist der neu freigegeben FTLinuxCourse 2004 für Linux-Programmierung mit C und C + +. This course module is part of the newest and latest edition of this free online Linux Course. Dieser Kurs-Modul ist Teil der neuesten und aktuellsten Ausgabe dieses kostenlose Online-Kurs 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.. Die Kapitel und Lehren aus diesem neuen Kurs umfasst, wie man ein Programm mit einem Flussdiagramm, der C-Sprache, die C-Bibliothek (libc)-Funktionen, erweiterte C und Programmiertechniken, Debugging, t er C + + Sprache, die "make"-Programm, Prozess-Management, Netzwerk-Programmierung, Fortran, Python-, RPM-Paket, und CVS .. The main course and links to all of 12 course chapters are provided here. Das Hauptgericht und Links zu allen 12 Kapiteln Natürlich geben wir Ihnen hier.
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. Das wichtigste Ziel dieses Kurses ist es, Nutzern zu programmieren in C und C + +, und dies für tägliche Nutzung des Internets aus dem Linux-OS point of view.
This covers the following activities: Dies umfasst die folgenden Aktivitäten:
- Write programs in C, from scratch to materialize an idea Schreiben Sie Programme in C, von Grund auf neu zu materialisieren eine Idee
- Write programs in C++ Schreiben Sie Programme in C + +
- Write programs using Slang and curses Schreiben Sie Programme mit Slang und Flüche
- Write programs in Fortran and Python Schreiben Sie Programme in Fortran und Python
- Write Linux daemons (services) that regards generally Networking services Schreiben Sie Linux-Daemons (Dienste), was im Allgemeinen Networking Services
- Write the "configure" program to auto-configure the project Schreiben Sie das "configure"-Programm automatisch zu konfigurieren, das Projekt
- Built its own RPM packages Erbaut seine eigene RPM-Pakete
- Compiling software downloaded from the remote sites Kompilieren von Software-Download aus dem Remote-Standorten
Update 10/23/2006: This course has been updated and is now found here: Update 10/23/2006: Dieser Kurs wurde aktualisiert und ist jetzt hier:
An Introduction to Linux Programming (using C and C++) Eine Einführung in die Linux-Programmierung (mit C und C + +)
Table of Contents Inhaltsverzeichnis
Chapter P1. Kapitel P1. So you want to program? Also Sie wollen Programm?
- What is a program? Was ist ein Programm?
- Interpreted vs Compiled Ausgelegt vs Zusammengestellt
- A first example in C language Ein erstes Beispiel in C-Sprache
- The "main" procedure Die "Haupt"-Verfahren
- The arguments argc and argv Die Argumente argc und argv
- The atoi Die atoi
- Data declaration Daten-Erklärung
- The C program checker: lint Die C-Programm-Checker: fusselfreien
- The gcc: the GNU C Compiler Der gcc: der GNU C Compiler
- Float and double Float und Double
- The make command Die make-Befehl
- The touch command Der Touch-Befehl
- The environ Die Umwelt
- A first example in C++ language Ein erstes Beispiel in C + + Sprache
- The ++ operator Der Operator + +
- How to Design of a Program with a Flow Chart How to Design eines Programms mit einem Flow Chart
- Exercises Übungen
- Test Test
- Internet resources about this chapter Internet-Ressourcen zu diesem Kapitel
Chapter P2. Kapitel P2. The C Language Die C-Sprache
- C Data types C-Datentypen
- Formatting data Formatieren von Daten
- Vectors and Pointers Vektoren und Zeiger
- Structures, union and typedef Bauwerke, Union und typedef
- Conversion between types Konvertierung zwischen Typen
- C Operators C-Operatoren
- C Functions C-Funktionen
- How to build a static library Wie zum Aufbau einer statischen Bibliothek
- How to build a shared library Wie zum Aufbau einer Shared Library
- Exercises Übungen
- Test Test
- Internet resources about this chapter Internet-Ressourcen zu diesem Kapitel
Chapter P3. Kapitel P3. The C Library (libc) functions Die C-Bibliothek (libc) Funktionen
- The C Compiler Die C-Compiler
- The RedHat 2.96 'gaffe' compiler Die RedHat 2,96 "Ausrutscher"-Compiler
- The latest GNU gcc 3.1 Die neuesten GNU gcc 3,1
- The C Preprocessor Die C-Präprozessor
- The C Library: "libc.a" Die C-Bibliothek: "libc.a"
- The stdio functions familiy Die stdio-Funktionen Familie
- The type FILE. Der Typ FILE.
- The stat type: sys/stat.h Die stat-Typ: sys / stat.h
- The pwd functions Die PWD Funktionen
- The string functions Der String-Funktionen
- The math functions Die mathematischen Funktionen
- The stdlib functions Die stdlib Funktionen
- The signals Die Signale
- The time function Die Zeit-Funktion
- C Limits C Limits
- The stdio functions familiy Die stdio-Funktionen Familie
- Some Utilities for Developers Einige Utilities für Entwickler
- Some Examples Einige Beispiele
- Exercises Übungen
- Test Test
- Internet resources about this chapter Internet-Ressourcen zu diesem Kapitel
Chapter P4. Kapitel P4. Advanced C and programming techniques Advanced C und Programmiertechniken
- Memory management Memory Management
- The "malloc" and "calloc" Die "malloc" und "calloc"
- The memcpy Die memcpy
- Programming techniques Programmiertechniken
- Algorithms for Sorting Algorithmen für die Sortierung
- Selection Auswahl
- Insertion Insertion
- Bubble Bubble
- ShellSort ShellSort
- QuickSort QuickSort
- Algorithms for Searching Algorithmen für die Suche
- Sequential Search Sequentielle Suche
- List Search and US-Suche und
- Binary Search Binäre Suche
- Queues Warteschlangen
- Algorithms for Sorting Algorithmen für die Sortierung
- Exercises Übungen
- Test Test
- Internet resources about this chapter Internet-Ressourcen zu diesem Kapitel
Chapter P5. Kapitel P5. The debugging of C programs Das Debuggen von C-Programmen
- What is a debugger ? Was ist ein Debugger?
- The "gdb" debugger Die "GDB" Debugger
- The graphical interface for gdb: "xxgdb" Die grafische Schnittstelle für gdb: "xxgdb"
- The Data Display Debugger: "ddd". Der Data Display Debugger: "DDD".
- A debugging session Eine Debug-Sitzung
- Tracing the execution of a program Tracing der Ausführung eines Programms
- How to set up breakpoints. How to set up Breakpoints.
- How to print data in the debugger. Wie druckt man Daten in den Debugger.
- Some hints to debug graphical programs Einige Hinweise zum Debuggen grafische Programme
- Exercises Übungen
- Test Test
- Internet resources about this chapter Internet-Ressourcen zu diesem Kapitel
Chapter P6. Kapitel P6. The C++ Language Die C + + Language
- Introduction Einleitung
- The C++ Implementation Die C + +-Umsetzung
- A new mode to include files for cplusplus Einen neuen Modus zu Include-Dateien für cplusplus
- New operators for Standard I/O Neue Betreiber für die Standard I / O -
- What is a class? Was ist eine Klasse?
- Constructors and Destructors Konstruktoren und Destruktoren
- File I/O File I / O
- Inheritance or Derived Classes Erbschaft oder abgeleitete Klassen
- The C++ Standard Library Die C + + Standard Library
- C++ Keywords C + + Schlüsselwörter
- Exercises Übungen
- Test Test
- Internet resources about this chapter Internet-Ressourcen zu diesem Kapitel
Chapter P7. Kapitel P7. The "make" program Die "make"-Programm
- The make program Das Programm make
- Some Basic Makefiles Einige grundlegende Makefiles
- The implicit Makefile Die implizite Makefile
- A simple and effective Makefile Eine einfache und effektive Makefile
- A recursive Makefile Eine rekursive Makefile
- The X11 Makefile Die x11 makefile
- The Qt Makefile Die Qt-Makefile
- A short "make" Command Reference Ein kurzes "make" Command Reference
- The "automake" and "autoconf" tools Die "automake" und "autoconf" Werkzeuge
- Exercises Übungen
- Test Test
- Internet resources about this chapter Internet-Ressourcen zu diesem Kapitel
Chapter P8. Kapitel P8. Process management Process Management
- Processes under Linux Prozesse unter Linux
- How to use a "popen" function Wie man eine "popen"-Funktion
- Using signals Verwenden Signale
- Launching programs from programs Starten von Programmen Programme
- Using getpid() Verwenden getpid ()
- Exercises Übungen
- Test Test
- Internet resources about this chapter Internet-Ressourcen zu diesem Kapitel
Chapter P9. Kapitel P9. Network Programming Netzwerk-Programmierung
- An Introduction to Network Programming An Introduction to Network Programming
- Network API Netzwerk-API
- IPC Programming IPC-Programmierung
- What is a socket ? Was ist ein Socket?
- The message queue Die Message Queue
- Semaphores Semaphoren
- What is Shared Memory? Was ist Shared Memory?
- Locking files Sperren von Dateien
- CORBA programming CORBA-Programmierung
- Exercises Übungen
- Test Test
- Internet resources about this chapter Internet-Ressourcen zu diesem Kapitel
Chapter P10. Kapitel P10. Fortran Fortran
- FORTRAN ... FORTRAN ... an ethernal scientfic programming language ein ethernal scientfic Programmiersprache
- Fortran Generations Fortran Generationen
- Fortran 90 features Fortran 90 Funktionen
- Discovering FORTRAN Die Entdeckung FORTRAN
- The READ and WRITE instructions Die Lese-und Schreibzugriff Anweisungen
- Data Declaration Daten-Erklärung
- Loops Schleifen
- FORMAT FORMAT
- Compiling FORTRAN with libs Compiling FORTRAN mit Libs
- Some Examples Einige Beispiele
- Exercises Übungen
- Test Test
- Internet resources about this chapter Internet-Ressourcen zu diesem Kapitel
Chapter P11. Kapitel P11. An overview on Python Eine Übersicht über Python
- What is Python ? Was ist Python?
- My first program in Python Mein erstes Programm in Python
- Numbers Numbers
- Strings Strings
- Lists Listen
- Dictionaries Wörterbücher
- Classes Klassen
- File I/O with Python File I / O mit Python
- The Standard Python Library Die Standard-Python-Bibliothek
- Compiling Python Kompilieren Python
- Writing X applications in Python: Tkinter Writing X-Anwendungen in Python: Tkinter
- ZOPE ZOPE
- Conclusions Schlussfolgerungen
- Exercises Übungen
- Test Test
- Internet resources about this chapter Internet-Ressourcen zu diesem Kapitel
Chapter P12. Kapitel P12. Built your RPM package Erbaut Ihre RPM-Paket
- Introduction Einleitung
- RPM like a Package DataBase Wie ein RPM-Paketdatenbank
- RPM Commands RPM-Befehle
- Upgrading the RPM database from RPM 3.X to 4.X Aktualisieren der RPM-Datenbank von RPM 3.x auf 4.X
- Upgrading from RPM 4.0.2 to 4.0.3 Aktualisieren von RPM 4.0.2 auf 4.0.3
- Upgrading from RPM 4.0.91 to 4.0.96 Aktualisieren von RPM-4.0.91 bis 4.0.96
- Built a RPM package from scratch Erbaut ein RPM-Paket von Grund auf neu
- Creating Dependencies between packages Erstellen von Abhängigkeiten zwischen Paketen














