Programmation

782 documents à télécharger gratuitement

Cours, examens, TD, TP et exercices de programmation. Thèmes couverts : algorithmique, langage C, Java, Python, POO, structures de données.

Chapitre 6 : Les types structurés et les enregistrements

Le document traite des enregistrements dans les langages de programmation structurée, les comparant aux tableaux pour souligner leurs particularités. Il explique comment définir un type structuré et déclarer des variables enregistrement, avec des exemples syntaxiques inspirés des langages Pascal et C. Il détaille les manipulations possibles sur les enregistrements, comme l'accès aux champs individuels, l'utilisation d'imbrication pour représenter des dépendances fonctionnelles, et l’emploi de tableaux pour gérer des collections d’enregistrements. Enfin, il montre comment utiliser ces struct...

types structurés
enregistrements
syntaxiques Pascal et C
6p0
Introduction au cours de programmation WEB

This syllabus focuses on practical learning of web technologies, aiming to enable students to design, manage, or redesign dynamic websites. It introduces both the foundational concepts like HTML and CSS and advanced topics such as server-side programming with PHP and AJAX-based dynamic web applications. The methodology includes hands-on practice facilitated through directed coursework, covering topics like HTTP protocols, XML technologies, and security concerns. It highlights the importance of establishing a robust working environment for testing all discussed technologies.

Ramzi GUETARI
HTML
PHP
4p0
Introduction à la programmation en C et au langage C++

This document explores the origins, characteristics, and fundamental principles of the C programming language. It begins with a historical overview of C's creation by D. Ritchie and B. Kernighan and its adaptation through the ANSI C standard, which improved portability. The notes emphasize C's efficiency, portability, and use of libraries, alongside an introduction to basic syntax, like the 'Hello World' program. Furthermore, it discusses the integration of object-oriented concepts into C++, designed by B. Stroustrup, and concludes with an overview of key coding elements such as functions,...

ANSI C
B. Kernighan
D. Ritchie
Institut Supérieur des Études Technologiques21p0
Essential MATLAB for Scientists and Engineers

This document serves as a guide for learning MATLAB essentials tailored for scientists and engineers. It covers fundamental concepts, programming basics, and algorithm development. The material is structured to facilitate understanding and application of MATLAB in scientific contexts.

matlab
function
which
304p0
La Programmation en Assembleur du Microprocesseur 8086

This document introduces the instruction set of the 8086 microprocessor, categorizing them into data transfer, arithmetic, logical, and branch instructions. It explains advanced addressing modes, enabling manipulation of complex data structures such as matrices and arrays. Core operations include arithmetic and logical computations, addressing techniques, and the use of jumps, rotations, and conditional logic for effective program control. The document also highlights assembly-level methods for subprogram calls to optimize programming efficiency.

assembly programming
8086 microprocessor
instruction set
13p0
La mise au point des programmes avec gdb

This document delves into the debugging process using gdb, an open-source debugging tool designed for console use and compatible with emacs. It highlights the necessity of debugging tools to pinpoint semantic errors such as uninitialized variables and incorrect operator usage. The guide provides in-depth coverage of gdb commands for managing program execution, variable inspection, and breakpoint manipulation. It emphasizes the importance of including debugging information during compilation with gcc's -g option to facilitate targeted error identification.

debugging
gdb
semantic errors
1p0
Compilation, Linking, and Library Construction in C

This document provides a comprehensive overview of the compilation process for C programs, detailing the stages from preprocessing and compilation to linking and creation of binary executables. It introduces the use of the GCC compiler and its options for managing errors, warnings, and various stages of the process. The document also distinguishes between static and shared libraries, explaining their creation, usage, and tradeoffs. Examples are provided for command-line usage, library linking, and dependency checks.

gcc
C language
preprocessing
8p0
Activité 3: Paramètres en Ligne de Commande

This document demonstrates how to handle command-line arguments in C programming, explaining the `argc` and `argv` parameters in the `main` function. It includes examples for parsing and converting inputs into numerical formats using functions like `atoi`, `atol`, or `atof`. Additionally, it provides solutions for computing the sum of integers and counting the number of letters in a word passed as a command-line argument. Proper error handling is emphasized throughout, such as checking input validity and ensuring expected argument formats.

command-line arguments
argc and argv
atoi function
3p0
Compilation, Execution, and Naming Executables with GCC

This document explains the process of compiling, executing, and naming executables for C programs using the GCC compiler. It begins with compiling a sample C program 'bonjour.c' to produce a default executable 'a.out,' and demonstrates running the application using the command line. It further elaborates on the use of the gcc '-o' option to assign custom names to executables, enhancing clarity in multi-program workflows. The tutorial emphasizes practical examples to ensure clarity in the steps required from compilation to execution.

gcc
C programming
compilation process
1p0
Compilation and Execution of C Programs using GCC

This document explores the compilation and execution workflow of a basic C program using the GCC compiler. It demonstrates how to compile a program file like 'bonjour.c' into an executable, defaulting to 'a.out', and subsequently executing it through the command line using './a.out'. Additionally, it explains how to assign a more descriptive name to the executable using the '-o' option. The examples provided clarify the methodology with outputs for compilation and execution commands.

gcc
compilation
executable
1p0
Les étapes de la compilation

The document explains the compilation process using the gcc tool in four steps: preprocessing, compilation, assembly, and linking. It highlights intermediate files generated during these steps, such as .i, .s, .o, and finally, the executable. Errors and warnings are discussed, especially syntax and preprocessing issues, along with solutions using gcc flags like '-E' and '-Wall'. It also emphasizes platform-specific executables, requiring recompilation for systems like Linux and Solaris.

Compilation
gcc
Preprocessing
6p0
Static Performance Rule Analyzer

The project titled 'Static Performance Rule Analyzer' was developed during an internship at Adhoc ISL. It involves the definition, implementation, and documentation of performance-oriented coding rules for Java source code. The tool aims to validate Java code from a performance perspective, targeting primarily developers.

quot
rłgles
performance
79p0
Cours 8

This course covers the hierarchy of numbers, introducing imperative programming concepts including assignment and stack representation using lists. It delves into various data structures and operations in Common Lisp, including destructive functions on lists and multiple value returns.

type
print
argument
29p0
Visual Media Processing Using MATLAB Beginner's Guide

This guide provides a range of techniques for enhancing and adding artistic effects to photographs, as well as editing and processing videos using MATLAB. Written by George Siogkas, it combines practical applications in visual media with programming expertise. The book is designed for beginners looking to develop skills in visual media processing.

image
video
will
326p0
Series d'Exercices et Corrige

This document contains a series of exercises focused on recursion and iterative programming techniques. Each exercise provides a task to implement various functions, including list manipulations, factorization, and set operations. Additionally, the document includes solutions for each exercise that demonstrate the intended logic and function implementation.

liste
fonction
exercice
20p0
Paradigmes de programmation et Lisp pour IA

This document covers the objectives of a course on functional programming, particularly focusing on mastering Lisp. It discusses the fundamentals of programming paradigms, including functional, procedural, and object-oriented approaches, while emphasizing the importance of recursive functions. Additionally, it delves into the introduction and features of the Lisp programming language, highlighting its history and unique aspects.

liste
fonction
valeur
128p0
Programming Paradigms and Lisp Language

This document explores various programming paradigms, focusing on functional programming and the Lisp language. It outlines key characteristics of functional programming, the importance of recursion, and the fundamentals of Lisp, including its syntax and data structures. Students will learn how to write simple functions in Lisp and apply it in AI applications.

liste
fonction
valeur
147p0
Programming Paradigms

This document provides an overview of different programming paradigms, including functional, procedural, and object-oriented programming. It discusses their characteristics, advantages, and language examples. The document also introduces LISP, highlighting its unique features and basic structures.

exemple
valeur
lisp
46p0
Compte Rendu des Travaux Pratiques

This document presents the practical work conducted in a programming course using Java Remote Method Invocation (RMI). It includes various exercises demonstrating the implementation of remote interfaces, server-client communication, and error handling. The work was carried out by students Amani Ben Dhiab and Mohamed Yassine Chaieb under the guidance of Mme. Nadia Ben Azzouna during the 2012-2013 academic year.

java
quot
fichier
École Nationale des Sciences de l'Informatique (ENSI)9p0
Logique Formelle

This document details a course on Prolog and formal logic, highlighting the differences between Prolog programming and traditional methods. It discusses the historical development of Prolog and its features, including the declarative nature of the language. The document also outlines the Turbo Prolog environment with its primary windows and functionalities.

prolog
number
slide
75p0
Algorithmes et Structures de Données

This document outlines the principles of algorithms and data structures covered in the course. Various Abstract Data Types (ADTs) such as lists, stacks, queues, and binary trees are defined with their operations and axioms. Exercises are provided to explore recursive algorithms and operations implementation.

liste
ment
longueur
7p0
Apprenez à programmer en C !

This document provides an introduction to programming in C, covering basic concepts and necessary tools. It includes discussions on why to learn C, programming vocabulary, and details about Integrated Development Environments (IDEs) like Code::Blocks and Visual C++. The content aims to guide beginners through the foundational elements of programming in C.

quot
code
fonction
398p0
Automates, Langages et Applications - TD 7

This document contains exercises on pushdown automata and their applications in recognizing specific languages. Each exercise presents a language definition, followed by the proposed automata solutions and analysis of their determinism. The exercises focus on various conditions and properties of languages involving symbols a and b.

pile
automate
chaque
2p0

Autres ressources en programmation