the question reads as follows....
show how u can efficiently multiply an integer that is read from the keyboard by 100, without using the operator *. use the << operator several times....
ok i can do this using overload.... or thats the only way i can think of... or is it actually possible to use << to muliply the number.
my code so far... (just to get the number)
#include <iostream>
#include <stdlib.h>
using namespace std;
int num;
int main(int argc, char *argv[])
{
cout << "Enter a number from: ";
cin >> num;
system("PAUSE");
return 0;
}
oh and thanx