Help with Printing

Write your question here.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  //Printing Table
		cout << setw(8) << "D1";
		cout << setw(8) << "D2";
		cout << setw(8) << "+";
		cout << setw(8) << "-";
		cout << setw(8) << "*";
		cout << setw(8) << "%";
		cout << setw(8) << "/";
		cout << endl;
		cout << "-----------------------------------------------------------\n";cout << endl;
		
		
		
		cout << setw(8) << (tt1, tt2, tt3, tt4);
		cout << setw(8) << (yy1, yy2, yy3, yy4);
		cout << setw(8) << (sum1. sum2. sum3. sum4);
		cout << setw(8) << (subt1, subt2, subt3, subt4);
		cout << setw(8) << (multi1. multi2, multi3, multi4);
		cout << setw(8) << (modu1, modu2, modu3, modu4);
		cout << setw(8) << (divi1, divi2,divi3, divi4);
		cout << endl;



I am having errors printing the bottom part.

They were set a int, how can I print?
They were set a int, how can I print?

Can you rephrase?
Hi, sorry..

I set them as
int sum1, sum2, sum3, sum4;
int subt1, subt2, subt3, subt4;
int multi1, multi2, multi3, multi4;
int modu1, modu2, modu3, modu4;
int divi1, divi2, divi3, divi4;

on the top.

I am trying to print the results. So sorry english isn't my first language :(

Now at the bottom, I am trying to print out my result but I am getting error.

which is of non class type 'int'
Last edited on
Topic archived. No new replies allowed.