dsr95

C++ Lab2

Dec 17th, 2014
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. // lab2 dsr.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4.  
  5.  
  6. #include "stdafx.h" //Libreria de VS
  7. #include <iostream> //Libreria para Input/Output
  8. #include <string> //Libreria para string
  9.  
  10. using namespace std;
  11.  
  12.  
  13. int main()
  14. {
  15. string Nombre;
  16. string Pueblo;
  17.  
  18. cout << "Favor de ingresar su nombre." << endl;
  19. cin >> Nombre;
  20. cout << "Favor de ingresar su pueblo de recidencia." << endl;
  21. cin >> Pueblo;
  22. cout << "Nombre: " << Nombre << ". " << "Pueblo de residencia: " << Pueblo << "." << endl;
  23.  
  24. system("PAUSE");
  25.  
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment