+ 3
Why this program is error
I wrote the program by using setw(). But it show an error. #include <iostream> using namespace std; int main() { int name; cout <<"\n enter your name:"; cin >>name; cout <<setw(13)<<"\nyour name is"<<setw(8)<<name; return 0; }
4 Answers
+ 7
M Jawahirullah you just forgot to put-> #include <iomanip>
it should be working correctly after putting that.
Next time put your code in code bits with private and share it while making another question, if you get stuck
+ 12
#include <iomanip> include this as said by Coding kitty
//I got a bit late but mark coding kitty/Pawan sir's ans as bestđ
+ 8
M Jawahirullah
https://code.sololearn.com/cRnT9o45OXZv/?ref=app
đ Hope this will help đŸ
+ 7
Please share your snippet