This program is supposed to ask you for a number (it's just a practice for me) and you press enter and it changes your number to binary but it doesn't what's wrong... I'm learning :
Code:#include <cstdlib> #include <iostream> #include <iomanip> using namespace std; int main() { int thisisanumber; cout<<"Please enter a number: "; cin>> thisisanumber; cin.ignore(); cout<<"You entered but in decimal!: "<< setbase(2) << thisisanumber;"\n"; cin.get(); }