Write a C++ program that outputs "My first C++ program" and then outputs a carriage return.
What will be an ideal response?
```
#include
using namespace std;
int main()
{
cout << “My first C++ program” << endl;
}
```
An alternative is to place using namespace std; after the #include directive, or to place this inside the block of the function main. This depends on the local rules for placing namespace directives and definitions.
Computer Science & Information Technology
You might also like to view...
All SSDs must be installed in an internal drive bay
Indicate whether the statement is true or false
Computer Science & Information Technology
Write a procedure PathLookup(Pathname, Dir) ? UFID that implements Lookup for UNIX-like pathnames based on our model directory service.
What will be an ideal response?
Computer Science & Information Technology