Forum: C++ Dec 18th, 2007 |
| Replies: 19 Views: 2,272 Thanks rajat. Good suggestion. |
Forum: C++ Dec 17th, 2007 |
| Replies: 19 Views: 2,272 Don't worry I just found why double is better. Thanks |
Forum: C++ Dec 17th, 2007 |
| Replies: 19 Views: 2,272 Thanks. But why do you say that double its better? |
Forum: C++ Dec 17th, 2007 |
| Replies: 19 Views: 2,272 Thanks Salem and neosomosis. Its working excellent. |
Forum: C++ Dec 17th, 2007 |
| Replies: 19 Views: 2,272 Thanks Salem it worked, but when the result is for example is 124 and then the program divides it by 10 the result is 12.0000. Why? The result should be 12.400 |
Forum: C++ Dec 17th, 2007 |
| Replies: 19 Views: 2,272 Ok, Thank you very much Salem. Will try to find it on my program |
Forum: C++ Dec 17th, 2007 |
| Replies: 19 Views: 2,272 You could you make an example, I don't understand. Sorry but I just starting.
Thank You,
C-+ |
Forum: C++ Dec 17th, 2007 |
| Replies: 19 Views: 2,272 #include <iostream>
using namespace std;
int profit_expenditure(int rent, int electricity, int telephone, int internet, int salary, int profit){
int expenditureprofit;
... |
Forum: C++ Dec 17th, 2007 |
| Replies: 19 Views: 2,272 I am having a problem trying to divide a number. So in my in my program I have a number and I want it to divide it by 10. The problem is that the result is going to be decimal. I run my program I put... |
Forum: C++ Dec 15th, 2007 |
| Replies: 10 Views: 1,591 You should use switch case instead of "if" |