Convert the C program in the power.c file (Section 9.4.2) into C++. sore the pre-standard, post standard without namespaces and post standard with namespaces versions of the program in the files named power1.cpp power2.cpp power3.cpp. Generate the executable code for the three files and store the code in power1 power2 and power3 files respectively. Then run the three programs to see if they all work. Write down the sequence of commands.
First of all, the source code needs to be edited to generate the code for the three versions of the program. Any editor such as vim or vi can be used for this purpose. To compile the code instead of the gcc compiler, g++ compiler is used.
```
$ g++ power1.cpp -o power1
$ g++ power2.cpp -o power2
$ g++ power3.cpp -o power3
$ ./power1
$ ./power2
$ ./power3
$
```
You might also like to view...
When using input or dynamic text blocks, specify "Use device fonts" as the font ________________ method so that fonts do not need to be embedded with the SWF file.
Fill in the blank(s) with the appropriate word(s).
A(n) ________ allows you to take a picture of your monitor screen
Fill in the blank(s) with correct word
Photoshop uses the ____ dialog box to make choices about the number of pixels, the document size, and the resampling method.
a. Document b. Image Size c. Properties d. Options
?
?
Referring to the figure above, which code is cue text?
A. NOTE B. 1 C. 00:00.000 --> 00:31.000 D. A bush with purple flowers is covered with many dark butterflies, some of which slowly beat their wings.