Forum: C++ Jul 26th, 2009 |
| Replies: 3 Views: 243 hey your program is solved
next time pls indent properly
just do the changes done in this portion of your code
cout <<"Product price $";
cin >> P;
TP=P*T; //Calculates product price with... |
Forum: C++ Jul 26th, 2009 |
| Replies: 3 Views: 243 what compiler are u using? |
Forum: C++ Feb 22nd, 2009 |
| Replies: 4 Views: 826 Indeed waltp's way i the easiest to find prime factors of a number |
Forum: C++ Feb 22nd, 2009 |
| Replies: 15 Views: 918 the funcion gets does the job of taking the data in a line
i have not use cin.getline so i cant tell about that and the i in ur program is wrong it should be k as in my program |
Forum: C++ Feb 22nd, 2009 |
| Replies: 15 Views: 918 take the code i give
u will understand urself
#include<iostream.h>
#include<conio.h>
#include<string.h>
int main()
{
char line[80]; |
Forum: C++ Feb 22nd, 2009 |
| Replies: 15 Views: 918 oh sorry i put up the post without refeshing my page,so didnt see that so many lesons have been put up for u already |
Forum: C++ Feb 22nd, 2009 |
| Replies: 15 Views: 918 what is it supposed to do ,bro?? |
Forum: C++ Feb 22nd, 2009 |
| Replies: 7 Views: 731 can u be a bit more specific |
Forum: C++ Feb 22nd, 2009 |
| Replies: 11 Views: 522 anyways the problem is now solved so make the thread as solved |
Forum: C++ Feb 22nd, 2009 |
| Replies: 11 Views: 522 no problem with the for loop as well
maybe sallem gave the coment as u missed the barces of the for loop in your first code |
Forum: C++ Feb 22nd, 2009 |
| Replies: 11 Views: 522 hey excuse me but the above code is absolutely fine,i dont find an error it is running fine |