problem with setiosflag
hi! first, sorry for my english, i am argentinian....I am using c++ and i need to justify to the left ( by default is to the right ). So, i tried to use setiosflag, but u had a compile error:
setiosflag undecleared .....
i have this:
using namespace std;
#include <iomanip>
#include <iostream>
#include <fstream>
int main() {
cout<<"hola"<<setw(15)<<setfill(' ')<<setiosflag(ios::left)<<endl;
cin.get();
}
I've proved this in devcpp for windows and with kdevelop in suse linux 9.3
thanks
|