Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<string>
- using namespace std;
- #include "Attletas.h"
- Attletas::Attletas()
- {
- }
- void Attletas::setName(char N[])
- {
- cin.ignore();
- cout << "Name : "; cin.getline(N, 100, '\n');
- name = N;
- }
- const char * Attletas::getnames()
- {
- return this -> name;
- }
- void Attletas::settime(float T)
- {
- cout << "Tiempo :"; cin >> T;
- time = T;
- }
- float Attletas::gettime()
- {
- return time;
- }
- void Attletas::setid(int iD)
- {
- cout << "Id :"; cin >> iD;
- id = iD;
- }
- const int Attletas::getid()
- {
- return id;
- }
- void Attletas::PT()
- {
- cout << gettime() << endl;
- }
- void Attletas::Print()
- {
- cout << "Name : " << getnames() << endl;
- cout << "Id :" << getid() << endl;
- cout << "Tiempo :" << gettime() << endl;
- }
- Attletas::~Attletas()
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement