Skip to content

Instantly share code, notes, and snippets.

@guilleiguaran
Created August 22, 2010 03:08
Show Gist options
  • Select an option

  • Save guilleiguaran/543229 to your computer and use it in GitHub Desktop.

Select an option

Save guilleiguaran/543229 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main()
{
int numero;
cout<<"Digite un numero: ";
cin>>numero;
cout<<"El numero digitado fue: "<<numero<<endl;
//resto del algoritmo aca
return 0;
}
@guilleiguaran
Copy link
Copy Markdown
Author

Para usar el mismo codigo en Visual C++ copias todo lo que hay adentro del main(){ } del ejemplo, lo metes dentro del main() de la plantilla de Visual C++ y cambia el "return 0;" por "_getch();"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment