The queue makes sure the printer prints each sheet of paper in order.
Answer:
thank you i really needed that and plus i just lost point by putting a question i mean i was asking for help and i still don't know the answer
hope u feel better
Answer:
Im twelve but i know something about economics. The more homeless the more free coupons the government give out which the middle and high class pay for. The more people the higher the taxes and inflation causing the middle class to shrink making only rich and poor people. The U.S. then will have more homeless.
Explanation: Larg bwain finking
Answer:
#include <bits/stdc++.h>
using namespace std;
void funct(){
string name;
cout<<"enter the string: ";
cin>>name;
reverse(name.begin(), name.end());
cout<<"The string is : "<<name<<endl;
}
int main()
{
funct();
return 0;
}
Explanation:
create the function funct() with return type void and declare the variable type string and print a message for asking to used enter the string.
The string enter by user is store in the variable using cin instruction.
after that, we use a inbuilt function reverse() which takes two argument.
firs argument tell the starting point and second index tell the ending point. then, the reverse function reverse the string.
name.begin() it is a function which return the pointer of first character of string.
name.end() it is a function which return the pointer of last character of the string.
finally, print the reverse string.
for calling the function, we have to create the main function and then call the function.