12.12.2012 Views

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

66 Day 2<br />

7. How do you access the members of a structure?<br />

8. Is it legal to have arrays of structures?<br />

Exercises<br />

1. Write a program that counts from 200 to 300 by 5s and displays the results.<br />

2. Write a program that asks the user to <strong>in</strong>put the day of the week and then displays<br />

the name of the day us<strong>in</strong>g a switch statement.<br />

3. See if you can figure out what the \b and \n do <strong>in</strong> this l<strong>in</strong>e from List<strong>in</strong>g 2.2:<br />

cout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!