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.

Day 10<br />

Answers to Quiz Questions<br />

1. F12.<br />

2. No. It is only removed from the project.<br />

3. On the Forms page of the Project Options dialog.<br />

4. You will have to take the responsibility of creat<strong>in</strong>g the forms before us<strong>in</strong>g them.<br />

5. It’s hard to say, but probably 32MB for W<strong>in</strong>dows 95 and 40MB for W<strong>in</strong>dows NT.<br />

6. When debug <strong>in</strong>fo is generated, you will be able to step through your code dur<strong>in</strong>g<br />

debugg<strong>in</strong>g sessions.<br />

7. In the directory where the project file resides.<br />

8. Ctrl+S.<br />

9. Set a bookmark with Ctrl+K+0 through Ctrl+K+9. There are 10 bookmarks<br />

available.<br />

10. Choose Read Only from the Code Editor speed menu.<br />

Day 11<br />

1. Click <strong>in</strong> the gutter (the left marg<strong>in</strong>) on that l<strong>in</strong>e of code. You can also press F5 or<br />

choose Toggle Breakpo<strong>in</strong>t from the Code Editor speed menu.<br />

2. A breakpo<strong>in</strong>t that is <strong>in</strong>advertently set on a source code l<strong>in</strong>e that generates no<br />

compiled code.<br />

3. Set the breakpo<strong>in</strong>t, choose View | Breakpo<strong>in</strong>ts from the ma<strong>in</strong> menu, click on the<br />

breakpo<strong>in</strong>t <strong>in</strong> the Breakpo<strong>in</strong>t List w<strong>in</strong>dow, and then choose Properties from the<br />

Breakpo<strong>in</strong>t List speed menu. Set the condition <strong>in</strong> the Condition field of the Edit<br />

Breakpo<strong>in</strong>t dialog.<br />

4. Double-click the watch <strong>in</strong> the Watch List w<strong>in</strong>dow. The Watch Properties dialog is<br />

displayed. Modify the properties as needed.<br />

5. Click on the variable and type Ctrl+F5 (or choose Add Watch at Cursor from the<br />

Code Editor speed menu).<br />

6. The Debug Inspector.<br />

7. F7.<br />

8. Click on the variable and then choose Evaluate/Modify from the Code Editor<br />

speed menu. Change the value <strong>in</strong> the Evaluate/Modify dialog.<br />

9. TRACE unconditionally displays a message. WARN displays the message only if the<br />

provided expression evaluates to true.<br />

10. In the OutDbg1.txt file <strong>in</strong> the Code Editor.<br />

507<br />

A

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

Saved successfully!

Ooh no, something went wrong!