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
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
Check out http://www.cplusplus.com/reference/iostream/manipulators/setprecision/ , in particular the example.
ok thanks.. please answer my 2nd question as well..
a+=b;
is equivalent to
a=a+b;
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.