#include <iomanip>
#include <iostream>
using namespace std;
int main()
{
cout << left << setw(10) << "Hello"<< "*"
<< right << setw(4) << "World\n";
}
is the above code correct?? I think the alignments are not working for me..
MY output
Hello^^^^^^^^^*World (represented spaces as ^)