I want output as per follows in C++:
name aabsd
Size in KB 170
Width and Height 512 512
cout<<"\n \t name "<<std::setw(15)<<filename;
cout<<" \n \t Size in KB "<<std::setw(10)<<size;
cout<< " \n \t Width and Height "<<std::setw(3)<<width<<" "<<height;
Values on right side should be aligned in same coloumn. I tried with setw() but it does not give me output aligned because my left side text is different.