i have two questions

1st is can any one please tell me what is the role of setprecision in C++, why it is used?

2nd is : this statement

totalS+=sales[i][j];

is equivalent to what, i.e what is the role of this +=

thanks alot

Recommended Answers

All 3 Replies

ok thanks.. please answer my 2nd question as well..

a+=b;

is equivalent to

a=a+b;

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.