March 4th, 2012, 12:40 PM
- must #include <time.h> if want to use time()
- must #include <string> if want to use string
- if you define string m then you can not use cin >> m, it only works if you define m as character....
December 30th, 2011, 02:04 PM
@laserlight: I'm using visual c++ 2010 express, I was trying to help the thread owner, with those simple problems like this, I just use:
December 29th, 2011, 08:53 PM
You don't need to translate A = baby wear or B =children wear..etc.. so you can avoid many lines of codes and problems with your translation, just use whatever variable which stands for "item code",...
December 9th, 2011, 04:58 PM
You are absolutely right, I totally agreed. Reason I did that b/c, looking at his codes: using "iostream.h", main function with "void main()" and no returned value ...etc..., man, he have no basic...
December 9th, 2011, 02:31 PM
Ok, good to hear that. Next time you have problem like this, my suggestion is that, you only ask the part that you having difficult time with. Why? B/c it is shorter, it is simpler to see and easier...
December 9th, 2011, 04:54 AM
I saw u posted this question in several C++ forums, so I'll help you this time. Hope you be better in tomorrow
using namespace std;
December 9th, 2011, 12:29 AM
There are some issues in your code and the result would not be corrected
else if ((average<=3.0) &&(average<=3.5))
else if ((average<=2.0) &&(average<=3.0))