codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#include <iostream> using namespace std; struct Cliente{ string nombre; }; Cliente funcion1 (Cliente c){ cout << "nombre para el cliente: "; cin >> c.nombre; return c; } void funcion2 (Cliente c){ cout << "El nombre del cliente es: " << c.nombre << endl; } int main (){ Cliente cliente; cliente = funcion1(cliente); funcion2(cliente); cin.ignore(); return 0; }
Private
[
?
]
Run code
Submit