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.

Quiz<br />

Gett<strong>in</strong>g Your Feet Wet<br />

W<strong>in</strong>dows will issue a general protection fault (GPF) or an access-violation error.<br />

The GPF might come immediately, or it may not come until later when the<br />

overwritten memory is used by another part of your program, by another program,<br />

or by W<strong>in</strong>dows itself.<br />

1. What is wrong with this program?<br />

#<strong>in</strong>clude <br />

#<strong>in</strong>clude <br />

#pragma hdrstop<br />

void displayText();<br />

displayText()<br />

{<br />

cout

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

Saved successfully!

Ooh no, something went wrong!