Skip to content

Commit 90dff0d

Browse files
committed
added drill13 for chapter13
1 parent 79e440d commit 90dff0d

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Chapter13/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,6 @@ Make the cosine blue.
4040

4141
## [Drill 12](drill/12)
4242
Write a function `sloping_cos()` that adds a cosine to `slope()` (as defined above) and add it to the window.
43+
44+
## [Drill 13](drill/13)
45+
Define a `struct Person` containing a `string` name and an `int` age.

Chapter13/drill/13/Person.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#ifndef PERSON_H
2+
#define PERSON_H
3+
4+
#include <string>
5+
6+
struct Person {
7+
std::string name;
8+
int age;
9+
};
10+
11+
#endif

0 commit comments

Comments
 (0)