diff options
Diffstat (limited to 'test/test9.cpp')
-rw-r--r-- | test/test9.cpp | 36 |
1 files changed, 29 insertions, 7 deletions
diff --git a/test/test9.cpp b/test/test9.cpp index da0a297..856188e 100644 --- a/test/test9.cpp +++ b/test/test9.cpp @@ -125,23 +125,45 @@ class Object1 *ptr2 = 300; } + void func10(int *ptr1, int *ptr2) + { + if (!ptr1 || !ptr2) + { + int k = 0; + } + else + { + *ptr1 = 100; + } + *ptr1 = 200; + *ptr2 = 300; + } -/* - void func8(int *ptr1, int *ptr2) + void func11(int *ptr1, int *ptr2) { - int c; - if (k == c || !ptr1) + if (!ptr1 || ptr2) { - return; + int k = 10; + *ptr1 = 100; } - else + + *ptr1 = 200; + *ptr2 = 300; + } + + void func12(int *ptr1, int *ptr2) + { + if (!ptr1 || k == 10) { *ptr1 = 100; } + else + { + *ptr1 = 400; + } *ptr1 = 200; *ptr2 = 300; } -*/ }; |