Programming Exercises

1:Assume that you are writing the source code from which three different program versions will be compiled—a Standard Version, a Professional Version, and an Enterprise Version. In this case, the program simply contains three different WriteLine statements that write the following three lines:
A:  "This is the standard version"
B:  "This is the professional version"
C:   "This is the enterprise version"

The Standard Version only prints line A, the Professional Version only prints line B, and the Enterprise Version only prints line C. Use preprocessor directives so that you can easily control (without deleting and adding WriteLine statements, but instead by defining and undefining identifiers) which of the three WriteLine statements ...

Get C# Primer Plus now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.