I have worked this code in windows and i have to make this work in an UNIX environment using G++. However, the compiler doesnt seem to recognise "fixed"(to specify the precision of float variable price) and "left"(to left justify prod_Name). Both are member functions of base class ios_base. Can someone suggest me an alternative that can give me the same effect?Code:output.precision(2); output << prod_Id << '\t'; output << setw(12) << left << prod_Name << '\t'; output << fixed << price << '\t'; output << tax_Cat << endl;
i.e
12345 <productName> 3.50 C
Also, is there any free compiler that i can use in windows which ensure the code can compile in G++ under UNIX environment?
Thanks for any assistance.