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.

<strong>C++</strong>Builder Extensions to <strong>C++</strong><br />

you can stick with standard <strong>C++</strong> and write W<strong>in</strong>dows programs the hard way. The decision<br />

is yours to make. I’m fairly confident that if you are still read<strong>in</strong>g this book at this po<strong>in</strong>t, you<br />

have decided that the RAD that <strong>C++</strong>Builder provides outweighs the perceived problem of<br />

<strong>Borland</strong>’s extensions to <strong>C++</strong>. So if you are an exist<strong>in</strong>g <strong>C++</strong> programmer, you may have to<br />

ponder the ramifications of language extensions and decide whether you can live with them.<br />

If you are new to <strong>C++</strong>, you probably don’t understand what the fuss is all about. Whichever<br />

camp you are from, you can almost certa<strong>in</strong>ly be more productive if you use the power that<br />

<strong>C++</strong>Builder offers. That power comes at a price, but I th<strong>in</strong>k that the price is a very small one.<br />

Workshop<br />

The Workshop conta<strong>in</strong>s quiz questions to help you solidify your understand<strong>in</strong>g of the<br />

material covered and exercises to provide you with experience <strong>in</strong> us<strong>in</strong>g what you have learned.<br />

You can f<strong>in</strong>d answers to the questions <strong>in</strong> Appendix A, “Answers to Quiz Questions.”<br />

Q&A<br />

Quiz<br />

Q I really like <strong>C++</strong>Builder, but I don’t know if I like the language extensions.<br />

What are my choices?<br />

A Your choices are fairly simple: Either use <strong>C++</strong>Builder and learn to accept the<br />

language extensions or don’t use <strong>C++</strong>Builder and give up RAD.<br />

Q Is the practice of extend<strong>in</strong>g <strong>C++</strong> common?<br />

A To a degree, yes, but generally not on the scale of the extensions that <strong>C++</strong>Builder<br />

<strong>in</strong>troduces. The <strong>C++</strong>Builder extensions are fairly significant.<br />

Q The <strong>C++</strong> extensions <strong>in</strong> <strong>C++</strong>Builder make <strong>C++</strong>Builder a nonstandard <strong>C++</strong><br />

compiler, right?<br />

A Wrong. The extensions do not prevent <strong>C++</strong>Builder from be<strong>in</strong>g an otherwise<br />

standard <strong>C++</strong> compiler. <strong>C++</strong>Builder is a standard <strong>C++</strong> compiler plus it gives you<br />

RAD through language extensions.<br />

1. What is the name of the keyword that is used to declare a property?<br />

2. Is an event a closure?<br />

3. What does the __published keyword do?<br />

4. Is the declspec keyword new to <strong>C++</strong>Builder?<br />

497<br />

<strong>14</strong>

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

Saved successfully!

Ooh no, something went wrong!