Formation C# - Cours 2 - Programmation procédurale

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Formation C# - Cours 2 - Programmation procédurale - Presentation Transcript

    1. Formation C#
      • Pierre de La Morinerie
      • Club Microsoft Isep — 2007
      Cours n° 2 : Programmation procédurale
    2. Plan
      • Introduction, premiers pas, concepts
      • Programmation procédurale
      • Programmation objet
      • Programmation Windows
    3. Prog. procédurale
      • Programmation procédurale :
        • Très fortement hérité du C
        • Syntaxe et opérateurs similaires
    4. Prog. procédurale
      • Les types de bases :
        • Numériques : int, long, double...
        • Alphabétiques : char, string
        • Booléen : bool
    5. Prog. procédurale
      • Déclaration une variable :
        • <type> <nom> = <valeur>;
      • Exemple :
        • int answer = 42;
        • string nom = “Ford Escort”
    6. Prog. procédurale
      • Opérations :
        • “+, -, *, /” sur les nombres
        • “+” sur les strings : concaténation
    7. Prog. procédurale
      • TP 2 : Salutations
        • Demander le prénom puis le nom
        • Afficher “Bonjour <prénom> <nom> !”
      • Outils :
        • void Console.WriteLine(string)
        • string Console.ReadLine()
    8. Prog. procédurale
      • Structures conditionnelles
        • if (<condition>) { // si la condition est vraie } else { // sinon }
    9. Prog. procédurale
      • Opérateurs conditionnels :
        • Comparaison : “ <, >=, <, <= ”
        • Egalité : “ == ”
        • Logique : “ &&, || ”
    10. Prog. procédurale
      • Opérateur de sélection : switch
        • switch (<variable>) { case <valeur>: // code break; case <valeur2>: // autre code break; }
    11. Prog. procédurale
      • TP 3 : analyse numérique
        • Demander un nombre
        • Dire si ce nombre est supérieur, inférieur ou égal à zéro
      • Outils :
        • Int32.Parse(string)
    12. Prog. procédurale
      • Boucles :
        • while(<condition>) { // code }
    13. Prog. procédurale
      • Boucles :
        • for(int i = 1; i < 5; i++) { // code }
    14. Prog. procédurale
      • Boucles :
        • for(int i = 1; i < 5; i++) { // code }
    15. Prog. procédurale
      • TP 4 : puissance
        • Demander un nombre x
        • Demander un nombre y
        • Afficher x y
      • Outils :
        • Boucle

    + kemenarankemenaran, 2 years ago

    custom

    2639 views, 0 favs, 0 embeds more stats

    Deuxième partie de la formation C# du Club Microso more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 2639
      • 2639 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 80
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories