Originally posted by TheDreamer
Uh sorry pb, don't know how to help you there hehe
Anyways, I get the same output as Orange Juice!! It's very frustrating isn't it? Well, might as well put down an example here so you guys can actually see what I'm missing.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#include <iostream.h>
#include <stdlib.h>
int main()
{
int month,December,August,September;
cout<<"Enter the month of your birthdate"<<endl;
cin>>December>>August>>September>>month;
if(month=December)
cout<<"If you were born in December,it is Summer "<<endl;
else if(month=August)
cout<<"If you were born in August,it is Winter." <<endl;
else if (month=September)
cout<<"If you were born in September, it is Spring."<<endl;
system("PAUSE");
return 0;
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
In this case, I keep getting" If you were born in December,it is Summer" .
You can copy the above eg. and test it out yourself.
NOTE: Just realised the computer doesn't even like me. The code on this posted message is DIFFERENT to my original. If any of you guys can help me, please give me your email address, and I'll send it to you there. It shouldn't mess up then. Thanks heaps.