This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
courses:programming:topic12 [2016/11/24 09:09] tatyana.berlenko created |
courses:programming:topic12 [2022/12/10 09:08] (current) |
||
---|---|---|---|
Line 2: | Line 2: | ||
* typedef | * typedef | ||
- | * Двунаправленные линейные списки | + | |
+ | <code c++> | ||
+ | // Programming 1. Sample at 2016-11-24-14-07.27 | ||
+ | #include <stdio.h> | ||
+ | |||
+ | struct Person { | ||
+ | int a; | ||
+ | }; | ||
+ | |||
+ | typedef struct | ||
+ | { | ||
+ | int p; | ||
+ | } PersonType; | ||
+ | |||
+ | typedef int Int32; | ||
+ | |||
+ | int main(/*int c, char **v */) | ||
+ | { | ||
+ | Int32 a; | ||
+ | |||
+ | PersonType p; | ||
+ | |||
+ | return p.p; | ||
+ | } | ||
+ | </code> | ||