在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:paytonrules/PointerKoan开源软件地址:https://github.com/paytonrules/PointerKoan开源编程语言:C 95.0%开源软件介绍:Pointer Arithmetic KoanThis very simple koan is taken from the tradition of the Ruby koans, Clojure Koans, Smalltalk Koans and others, but was written on a train in a fit of rage. That means it's short, sweet, and to the point. This is a few tests to brush up on your pointer arithmetic. The memory block is setup as an array of 255 bytes with values from 0 - 254. Several pointer operations take place, and it's your job as the developer to figure out what the correct values are to make the program complete. Use it as flashcards and you'll never screw up pointers like I did again. Running
This will run the program and tell you where the first failed assertion is. Make this program run to completion, and you've done a pretty good job of learning pointer arithmetic. ContributorsHat tip to @sdegutis for updating the koans to get rid of the dependency on C++ and on CMake. @sdegutis accepts checks or cash. This code is released under the MIT license Copyright Eric Smith 2019 |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论