Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #define ELEMENTOS 5;
- using namespace std;
- struct datos_estudiante
- {
- char nombre[20];
- float nota1, nota2, nota3;
- float nota_parcial;
- int codigo;
- };
- struct datos_estudiante *datos[10];
- struct notas_estudiante
- {
- };
- struct estudiante notas[10];
- int tomar_datos(struct datos_estudiante *arg_datos)
- {
- cout << "codigo : " << endl;
- cin >> arg_datos->codigo;
- cout << "nombre : " << endl;
- cin >> arg_datos->nombre;
- }
- void main(){
- tomar_datos(*datos);
- /*
- cout << "nota 1 : " << endl;
- cin >> ptrn->nota1;
- cout << "nota 2 : " << endl;
- cin >> ptrn->nota2;
- cout << "nota 3 : " << endl;
- cin >> ptrn->nota3;
- ptrn = notas;
- */
- system("pause>null");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement