My compiler says my code isnt standard c++?
#include <iostream.h>
//Decimal To Binary Conversion
//James Duncan Bennet 2007 james.bennet1@ntlworld.com
using namespace std;
void binarynum(int);
int main(void) {
int intnum;
int choice = 0;
cout << endl << "Decimal To Binary Conversion" << endl;
cout << endl << "Please enter an integer value > 0 : ";
cin >> intnum;
if (intnum < 0)
cout << endl << "That isnt an integer > 0!" << endl;
else {
cout << intnum << " converted ito binary becomes: ";
binarynum(intnum);
cout << endl;
}
return 0;
}
void binarynum(int intnum) {
int remainder;
if(intnum <= 1) {
cout << intnum;
return;
}
remainder = intnum%2;
binarynum(intnum >> 1);
cout << remainder;
}