GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — cpp-code-snippets/assert.cpp at master · keineahnung2345/cpp-code-snippets Expand file tree/ Copy pathassert.cppMore file actions 20 lines (14 loc) · 340 Bytes / Copy pathassert.cppFile metadata and controls20 lines (14 loc) · 340 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 #include <stdio.h> #include <assert.h> //https://www.geeksforgeeks.org/assertions-cc/ int main() { int x = 7; /* Some big code in between and let's say x is accidentally changed to 9 */ x = 9; // Programmer assumes x to be 7 in rest of the code assert(x==7); /* Rest of the code */ return 0; } |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |