Fundamental
Hello, World!
See the very first C++ Code:
Run it with:
Here is the Java code as a comparison:
The package that is imported in Java is called the header file in C++. The same as Java, Header files in C++ can be user-created or system built-in. Besides, C++ has a concept called namespace
. What is that?
Returning and Printing
Topics: Function call and return, return types
Below is a series of four printLyrics_v#
functions, each of which has a blank where the return type should be. For each function, determine
what the return type of the function should be,
what value, if any, is returned, and
what output, if any, will be produced if that function is called.
Is it appropriate for each of these functions to be named printLyrics
? Why or why not?
Last updated
Was this helpful?