Maybe you should use a tab in-between?
Code:cout << left << setw(10) << teller << right << '\t' cout << setw(10) << setprecision(3) << uitkomst cout << setprecision(prec) << endl ;
Hello Elysia,
Sorry but it don't work.
Roelof
Hello,
What I see now is : 11122233334444 and so on.
What I want see is :
1 1
2 1
,,,
25 5
So i 2 collum idea.
Roelof
The code I posted:
ProducesCode:#include <iostream> #include <vector> #include <iomanip> using namespace std; int main() { int teller = 0, uitkomst = 0; cout << left << setw(10) << teller << right << '\t'; cout << setw(10) << setprecision(3) << uitkomst; cout << endl ; }
0 0
...for me. How is that different from what you want?
Wierd,
This is working and I do the same on mine main.cpp and the output is different.
Roelof
Wierd,
I tried to do step by step using the source of Elysia and now everythings works fine.
And I see no difference between the source then and now.
Roelof