#include <iostream>
#include <string>
class Developer {
private:
std::string name_;
int age_;
std::string country_;
std::string work_;
public:
Developer(std::string name, int age, std::string country, std::string work)
: name_(name), age_(age), country_(country), work_(work) {}
std::string getName() const { return name_; }
int getAge() const { return age_; }
std::string getCountry() const { return country_; }
std::string getWork() const { return work_; }
};
int main() {
Developer dev("Samuel Henrique", 23, "Brazil", "Embedded Developer");
std::cout << "Hi! I'm " << dev.getName() << ", I'm " << dev.getAge()
<< " years old, and I'm from " << dev.getCountry() << "!" << std::endl;
std::cout << "I'm currently studying to be a " << dev.getWork() << "!" << std::endl;
return 0;
}
🎯
Focusing
Engenharia de Computação
Universidade Federal do Ceará - Campus Quixadá
- Brasil
-
20:05
(UTC -03:00) - in/samuelhenrique15
Highlights
- Pro
Pinned Loading
-
-
rtos-praticas
rtos-praticas PublicCódigos desenvolvidos durante a cadeira de RTOS, utilizando os microcontroladores FRDM-KL43Z, FRDM-KL46Z e FRDM-KL25Z
C
-
-
-
-
qxd0214/Projeto-Gangorra
qxd0214/Projeto-Gangorra PublicProjeto das disciplinas de Sistemas Embarcados e Instrumentação
C++ 1
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.