Write a C++ program defining a simple `Person` class with name and age fields, setting values through member functions, and printing them.
A string representing name and an integer representing age.
Print the person's name and age.
Age >= 0
Alice 25
Name: Alice, Age: 25
Introduces basic class syntax, object instantiation, and member function access.
#include <iostream>
#include <string>
class Person {
public:
std::string name;
int age;
void display() {
// Write your code here
}
};
int main() {
Person p;
if (std::cin >> p.name >> p.age) {
p.display();
}
return 0;
}Embedded systems rely on efficient low-level programming to interact directly with hardware. In this course, you will learn how to write practical Embedded C programs used in real microcontroller-based systems. Rather than focusing only on theory, this course follows a practice-driven approach. Each lesson includes hands-on coding exercises that simulate real firmware development tasks used