Hey, everybody, glad to have joined the forums. :]
I've just recently started learning C++ and it seems like the one for me at the moment. However, I'm having a slight problem with this little program I've tried to create:
CODE
#include <iostream.h>
#include <math.h>
char songs;
double x = 5.5;
char megab = songs * x;
int main (void)
{
cout << "Please input the number of songs in your iTunes library: ";
cin >> songs;
cout << "The amount of MB your iTunes contains is roughly ";
cout << megab;
}
The first part works fine... the input doesn't seem to have any problems... but when it returns the converted amount to rough MB (and this is mostly just a wild guess and a chance to mess around with this kind of program), it returns a ¿. If anybody could let me know what I've done wrong, I would very much appreciate it. Thanks a lot. :]
Colt