Introduction to Linux Programming Introduzione a Linux di programmazione
The is the newly released FTLinuxCourse 2004 for Linux Programming using C and C++. È la rilasciato la nuova FTLinuxCourse 2004 per Linux Programmazione in C e C + +. This course module is part of the newest and latest edition of this free online Linux Course. Modulo di questo corso è parte del più recente e ultima edizione di questa online gratis Corso di 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.. I capitoli e le lezioni di questo nuovo corso copre come progettare un programma utilizzando un diagramma di flusso, il linguaggio C, la libreria C (libc) funzioni, C e avanzate tecniche di programmazione, il debug, t egli C + + lingua, il "fare" programma, processo di gestione, programmazione di rete, Fortran, Python, pacchetto RPM, e CVS .. The main course and links to all of 12 course chapters are provided here. Corso principale e link a tutti i corsi di 12 capitoli sono qui fornite.
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'obiettivo principale di questo corso è di insegnare agli utenti di programmare in C e C + +, e questo si applica a tutti i giorni uso di Internet da Linux OS punto di vista.
This covers the following activities: Questo comprende le seguenti attività:
- Write programs in C, from scratch to materialize an idea Scrivere programmi in C, da zero a materializzare un'idea
- Write programs in C++ Scrivere programmi in C + +
- Write programs using Slang and curses Scrivere programmi che utilizzano Slang e maledizioni
- Write programs in Fortran and Python Scrivere programmi in Fortran e Python
- Write Linux daemons (services) that regards generally Networking services Scrivere Linux demoni (servizi) che riguarda in generale i servizi di rete
- Write the "configure" program to auto-configure the project Scrivere il "configurare" programma per l'auto-configurare il progetto
- Built its own RPM packages Costruito la sua propria pacchetti RPM
- Compiling software downloaded from the remote sites Compilare il software scaricato da siti remoti
Update 10/23/2006: This course has been updated and is now found here: Aggiornamento 10/23/2006: Il corso è stato aggiornato ed è ora trovare qui:
An Introduction to Linux Programming (using C and C++) Una Introduzione a Linux di programmazione (utilizzando C e C + +)
Table of Contents Table of Contents
Chapter P1. Capitolo P1. So you want to program? In modo che si desidera programmare?
- What is a program? Che cos'è un programma?
- Interpreted vs Compiled Interpretato vs Compiled
- A first example in C language Un primo esempio in linguaggio C
- The "main" procedure "Main" procedura
- The arguments argc and argv Gli argomenti argc e argv
- The atoi La atoi
- Data declaration Dichiarazione dei dati
- The C program checker: lint Il programma in C checker: lint
- The gcc: the GNU C Compiler L'esecuzione di gcc: il compilatore GNU C
- Float and double Flottante e doppio
- The make command Il comando make
- The touch command Il tocco di comando
- The environ L'ambiente
- A first example in C++ language Un primo esempio in C + + lingua
- The ++ operator I + + operatore
- How to Design of a Program with a Flow Chart Come Design di un programma con un diagramma di flusso
- Exercises Esercizi
- Test Verifica
- Internet resources about this chapter Risorse internet su questo capitolo
Chapter P2. Capitolo P2. The C Language Il linguaggio C
- C Data types C tipi di dati
- Formatting data Di formattazione dei dati
- Vectors and Pointers Vettori e puntatori
- Structures, union and typedef Strutture, Unione europea e typedef
- Conversion between types La conversione tra tipi
- C Operators Gli operatori C
- C Functions Funzioni C
- How to build a static library Come creare una libreria statica
- How to build a shared library Come costruire una libreria condivisa
- Exercises Esercizi
- Test Verifica
- Internet resources about this chapter Risorse internet su questo capitolo
Chapter P3. Capitolo P3. The C Library (libc) functions La libreria C (libc) funzioni
- The C Compiler Il compilatore C
- The RedHat 2.96 'gaffe' compiler 2,96 RedHat la 'gaffe' compilatore
- The latest GNU gcc 3.1 L'ultima GNU gcc 3,1
- The C Preprocessor Il preprocessore C
- The C Library: "libc.a" La libreria C: "libc.a"
- The stdio functions familiy Stdio le funzioni di famiglia
- The type FILE. Il tipo di file.
- The stat type: sys/stat.h Il tipo di stat: sys / stat.h
- The pwd functions La PWD funzioni
- The string functions La stringa funzioni
- The math functions Il funzioni matematiche
- The stdlib functions Stdlib le funzioni
- The signals I segnali
- The time function La durata della funzione
- C Limits C Limiti
- The stdio functions familiy Stdio le funzioni di famiglia
- Some Utilities for Developers Alcune utilità per gli sviluppatori
- Some Examples Alcuni esempi
- Exercises Esercizi
- Test Verifica
- Internet resources about this chapter Risorse internet su questo capitolo
Chapter P4. Capitolo P4. Advanced C and programming techniques C e avanzate tecniche di programmazione
- Memory management Gestione della memoria
- The "malloc" and "calloc" La "malloc" e "calloc"
- The memcpy La memcpy
- Programming techniques Tecniche di programmazione
- Algorithms for Sorting Algoritmi per l'ordinamento
- Selection Selezione
- Insertion Inserimento
- Bubble Bolla
- ShellSort ShellSort
- QuickSort Quicksort
- Algorithms for Searching Algoritmi per la ricerca
- Sequential Search Ricerca sequenziale
- List Search and Elenco di ricerca e
- Binary Search Ricerca binaria
- Queues Code
- Algorithms for Sorting Algoritmi per l'ordinamento
- Exercises Esercizi
- Test Verifica
- Internet resources about this chapter Risorse internet su questo capitolo
Chapter P5. P5 capitolo. The debugging of C programs Il debug di programmi C
- What is a debugger ? Che cos'è un debugger?
- The "gdb" debugger Il "GDB" debugger
- The graphical interface for gdb: "xxgdb" L'interfaccia grafica per gdb: "xxgdb"
- The Data Display Debugger: "ddd". Il Data Display Debugger: "ddd".
- A debugging session Una sessione di debug
- Tracing the execution of a program Rintracciare l'esecuzione di un programma
- How to set up breakpoints. Come impostare un breakpoint.
- How to print data in the debugger. Come stampare i dati del debugger.
- Some hints to debug graphical programs Alcuni accenni di eseguire il debug di programmi di grafica
- Exercises Esercizi
- Test Verifica
- Internet resources about this chapter Risorse internet su questo capitolo
Chapter P6. P6 capitolo. The C++ Language Il C + + Lingua
- Introduction Introduzione
- The C++ Implementation Il C + + Attuazione
- A new mode to include files for cplusplus Un nuovo modo di includere i file per cplusplus
- New operators for Standard I/O Nuovi operatori per I / O standard
- What is a class? Che cos'è una classe?
- Constructors and Destructors Costruttori e distruttori
- File I/O File di I / O
- Inheritance or Derived Classes Eredità o per classi derivate
- The C++ Standard Library Il C + + Standard Library
- C++ Keywords C + + Parole chiave
- Exercises Esercizi
- Test Verifica
- Internet resources about this chapter Risorse internet su questo capitolo
Chapter P7. Capitolo P7. The "make" program Il "make" programma
- The make program Rendere il programma
- Some Basic Makefiles Alcuni di base makefile
- The implicit Makefile Implicito il Makefile
- A simple and effective Makefile Un semplice ed efficace Makefile
- A recursive Makefile Un ricorsive Makefile
- The X11 Makefile Il Makefile x11
- The Qt Makefile Qt Makefile
- A short "make" Command Reference Un breve "make" Comando di riferimento
- The "automake" and "autoconf" tools Il "automake" e "autoconf" strumenti
- Exercises Esercizi
- Test Verifica
- Internet resources about this chapter Risorse internet su questo capitolo
Chapter P8. Capitolo P8. Process management La gestione dei processi
- Processes under Linux Processi sotto Linux
- How to use a "popen" function Come per l'utilizzo di un "popen" funzione
- Using signals Utilizzando segnali
- Launching programs from programs Aprire i programmi da programmi
- Using getpid() Utilizzando getpid ()
- Exercises Esercizi
- Test Verifica
- Internet resources about this chapter Risorse internet su questo capitolo
Chapter P9. P9 capitolo. Network Programming Programmazione di rete
- An Introduction to Network Programming Un'introduzione alla programmazione di rete
- Network API API di rete
- IPC Programming Programmazione IPC
- What is a socket ? Che cos'è un socket?
- The message queue La coda di messaggi
- Semaphores I semafori
- What is Shared Memory? Che cosa è la memoria condivisa?
- Locking files Bloccaggio file
- CORBA programming CORBA di programmazione
- Exercises Esercizi
- Test Verifica
- Internet resources about this chapter Risorse internet su questo capitolo
Chapter P10. P10 capitolo. Fortran Fortran
- FORTRAN ... FORTRAN ... an ethernal scientfic programming language uno ethernal scientfic linguaggio di programmazione
- Fortran Generations Fortran Generazioni
- Fortran 90 features Fortran 90 funzioni
- Discovering FORTRAN Scoperta di FORTRAN
- The READ and WRITE instructions La lettura e la scrittura di istruzioni
- Data Declaration Dichiarazione dei dati
- Loops Loop
- FORMAT FORMATO
- Compiling FORTRAN with libs FORTRAN con la compilazione di Libs
- Some Examples Alcuni esempi
- Exercises Esercizi
- Test Verifica
- Internet resources about this chapter Risorse internet su questo capitolo
Chapter P11. P11 capitolo. An overview on Python Una panoramica su Python
- What is Python ? Che cos'è Python?
- My first program in Python Il mio primo programma in Python
- Numbers Numeri
- Strings Stringhe
- Lists Elenchi
- Dictionaries Dizionari
- Classes Classi
- File I/O with Python File di I / O con Python
- The Standard Python Library La libreria standard di Python
- Compiling Python Compilazione di Python
- Writing X applications in Python: Tkinter Iscritto applicazioni X in Python: Tkinter
- ZOPE Zope
- Conclusions Conclusioni
- Exercises Esercizi
- Test Verifica
- Internet resources about this chapter Risorse internet su questo capitolo
Chapter P12. P12 capitolo. Built your RPM package Costruito il vostro pacchetto RPM
- Introduction Introduzione
- RPM like a Package DataBase RPM come un database dei pacchetti
- RPM Commands RPM Comandi
- Upgrading the RPM database from RPM 3.X to 4.X L'aggiornamento del database RPM RPM da 3.X a 4.X
- Upgrading from RPM 4.0.2 to 4.0.3 RPM di aggiornamento da 4.0.2 a 4.0.3
- Upgrading from RPM 4.0.91 to 4.0.96 RPM aggiornamento da 4.0.91 a 4.0.96
- Built a RPM package from scratch Costruito un pacchetto RPM da zero
- Creating Dependencies between packages La creazione di dipendenze tra pacchetti














