Download presentation
Presentation is loading. Please wait.
1
Functions That Do Not Return a Value 03/09/11
2
Reminders Quiz 3 Friday Work with partner on for-loop activity. Work with partner on for-loop activity. pp. 122-125 pp. 122-125
3
void Functions We have written functions that return a value. Can write functions that don't return anything. ch5/circle1.cpp instructions( ) function prints, but doesn't return a value. instructions( ) function prints, but doesn't return a value.
4
void functions start with "void" return statement w.o. value return statement is optional A call to the function stands alone as statement.
5
void functions function could be passed value starSqWhile.cpp Has a void function to print square of asterisks Has a void function to print square of asterisks Nested loop Nested loop
6
Linux Redirection a.out < dataIn.txt a.out > dataOut.txt Pipeline One process gets output of previous One process gets output of previous
7
For Next Monday Read pp. 129-134 Tables, 138-139, do- while. Also nested loops.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.