#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
-
09:11
(UTC -03:00) - in/samuelhenrique15
Highlights
- Pro
Pinned Loading
-
-
sbesc-esc-2024
sbesc-esc-2024 PublicRepositório dedicado para o projeto Boia para Monitoramento e Prevenção de Inundações da Embedded Systems Competition (ESC) 2024.
C 1
-
-
rtos-praticas
rtos-praticas PublicCódigos desenvolvidos durante a cadeira de RTOS, utilizando os microcontroladores FRDM-KL43Z, FRDM-KL46Z e FRDM-KL25Z
C
-
-
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.