L10voidfuncs

L10voidfuncs - Ch 6 / Foil 1 Multiple files revisited q q q...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Ch 6 / Foil 1 What are executable/non-executable statements out of the ones below which statements are executable #include <iostream> P=3.14; const double PI=3.14; int myfunc(int); what is a header file? what is the difference between the two statements? #include <filename> and #include “filename.h” why are programs included in multiple files what are object files and how are they related to multiple file-program what is the option the compiler has to accept to produce an object file? -g -c -o what is linking? How does make utility help with multiple file compilation? Multiple files revisited
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Programmer-Defined Functions II Void functions, call-by-reference
Background image of page 2
Ch 6 / Foil 3 Frequently void functions are output functions: void show_results(double fard, double celd){ cout << fard << “ degrees Fahrenheit is equivalent to\n” << celd << “ degrees Celsius.\n”; return; // not necessary } Void function example
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Ch 6 / Foil 4 what was call-by-value?
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/22/2010 for the course CS 23021 taught by Professor Staff during the Spring '08 term at Kent State.

Page1 / 5

L10voidfuncs - Ch 6 / Foil 1 Multiple files revisited q q q...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online