March 4th, 2012, 01: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, 03: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:
#include<iostream>
#include<fstream>
using namespace...
December 29th, 2011, 09: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, 05: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, 03: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, 05: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
#include<iostream>
#include<iomanip>
#include<cstring>
using namespace std;
...
December 9th, 2011, 01:29 AM
There are some issues in your code and the result would not be corrected
else if ((average<=3.0) &&(average<=3.5))
{
cout<<"Good";
}
else if ((average<=2.0) &&(average<=3.0))
{...