mirror of
https://github.com/epasveer/seer.git
synced 2026-08-30 00:50:42 +08:00
VarObj. Checkpoint.
This commit is contained in:
@@ -3,10 +3,15 @@
|
||||
#include <string.h>
|
||||
|
||||
|
||||
struct Cell {
|
||||
unsigned int number;
|
||||
};
|
||||
|
||||
struct Location {
|
||||
std::string city;
|
||||
std::string state;
|
||||
int zip;
|
||||
struct Cell* cell;
|
||||
};
|
||||
|
||||
struct Person {
|
||||
@@ -21,12 +26,14 @@ int main (int argc, char** argv) {
|
||||
|
||||
Person me;
|
||||
|
||||
me.name = "Pasveer, Ernie";
|
||||
me.age = 60;
|
||||
me.salary = 0.25;
|
||||
me.location.city = "Houston";
|
||||
me.location.state = "Texas";
|
||||
me.location.zip = 77063;
|
||||
me.name = "Pasveer, Ernie";
|
||||
me.age = 60;
|
||||
me.salary = 0.25;
|
||||
me.location.city = "Houston";
|
||||
me.location.state = "Texas";
|
||||
me.location.zip = 77063;
|
||||
me.location.cell = (Cell*)malloc(sizeof(Cell));
|
||||
me.location.cell->number = 2813877580;
|
||||
|
||||
std::cout << "'" << me.name << "', from '" << me.location.city << "', is " << me.age << " years old and makes " << me.salary << " per year." << std::endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user