Vote count:
0
I'm having problem with my code not sure if it's a bug or there is something wrong with my code.
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
cout << setfill('*') << setw(80) << "*";
cout << setw(21) << "Mt.Pleasant Official Billing Statement" << endl;
cout << setfill('*') << setw(80) << "*" << endl;
return 0;
}
Adding manual spaces works but I want to add spaces programmatically but when I tested the application this what it looks like :
asked 1 min ago
setw() not working properly on my code
Aucun commentaire:
Enregistrer un commentaire