chap 2 notes 16 - or variable_type variable_name , . ..;...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
16 VARIABLES int variables store signed whole numbers. float variables store integer and fractional part. Variables must be declared before they can be used. To declare a variable, use the following format: variable_type variable_name;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: or variable_type variable_name , . ..; float and int are among the many C++ variable_types. Examples: float X; // cm from base float Rate; // average speed in mph int I, qty;...
View Full Document

This note was uploaded on 11/16/2011 for the course COP 2271 taught by Professor Staff during the Fall '11 term at University of Florida.

Ask a homework question - tutors are online