GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

C 4 Loops-Iteration

qinwen sun Computer Science Englisch

Inhalt der Mindmap

C 4 Loops-Iteration

  1. 4.1 controlled iteration

    • for (initialize; guard; update) e.g.
      • e.g.  for(i = 1; i<= NUM_LINES; i=i+1):        statement
  2. 4.4 uncontrolled iteration

    • while (guard) /statement
    • Exit the loop
      • Achieve a negated guard
      • if () {break;}
        • Flag
    • do (statement) while (guard)
  3. Iterating over the input data

    • number: scanf
      • scanf('%d',&next)
    • character: getchar()
      • The int getchar(void) function reads the next available character from the screen and returns it as an integer. This function reads only single character at a time. You can use this method in the loop in case you want to read more than one character from the screen.
    • putchar(int c)

Informationen

Beschreibung
Computer Science Mindmap am C 4 Loops-Iteration, erstellt von qinwen sun am 28/02/2017.
Erstellt von
qinwen sun
Aufrufe
0
Bewertung

Mehr zu Conditionals and Loops

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck