CSC 1100 Lecture Notes - Lecture 10: Include Directive, Function Prototype, Data Type

56 views9 pages

Document Summary

Explore how to construct and use a value-returning, user-defined function. Learn how to construct and use void functions: o(cid:271)je(cid:272)ti(cid:448)es (cid:894)(cid:272)o(cid:374)t"d. (cid:895) Discover the difference between value and reference parameters. Learn about the scope of an identifier. Examine the difference between local and global identifiers. Discover static variables: o(cid:271)je(cid:272)ti(cid:448)es (cid:894)(cid:272)o(cid:374)t"d. (cid:895) Learn how to debug programs using drivers and stubs. They are like miniature programs that can be combined to form larger programs. They allow complicated programs to be divided into manageable pieces. In c++, a function is similar to that of a function in algebra. Some of the predefined mathematical functions are: sqrt(x) pow(x, y) floor(x: predefined functions (cont"d. , predefined functions are organized into separate libraries. To use predefined functions, you must include the header file using an include statement. See table 6-1 in the text for some common predefined functions: user-defined functions, value-returning functions: have a return type.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents