a) Cut/copy and paste allows you to select a section of text and insert a new copy of that text. You can also transfer data from one place to another.
b) Save is when you keep your work for later and it will be the same as you left it. Think of it like putting a bookmark in your book. Save as lets you name the files.
c) Close and Exit just let you leave the program, saying you are finished working with it and want to do something else.
I think so that it will be zero or more
Test.java
The classname and the filename need to match (case sensitive).
Answer:
See explaination
Explanation:
#include <iostream>
using namespace std;
string * createAPoemDynamically()
{
string *p = new string;
*p = "Roses are red, violets are blue";
return p;
}
int main() {
while(true) {
string *p;
p = createAPoemDynamically();
if (!p)
{
cout << "Memory allocation failed\n";
}
cout<<*p<<"\n";
// assume that the poem p is not needed at this point
//delete allocated memory
delete p;
}
}