在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:cbourke/KaprekarProject开源软件地址:https://github.com/cbourke/KaprekarProject开源编程语言:C 62.8%开源软件介绍:Computer Science I - GitHub AssignmentThis repo contains code and tests for a simple GitHub assignment in used in Computer Science I at the University of Nebraska-Lincoln. It contains code to compute whether or not a given integer is a Kaprekar number. It contains both Java and C versions. Both versions contain both ad-hoc testing suites as well as examples of formal testing frameworks (junit and cmocka respectively). Both versions contain intentional syntax errors and bugs that will fail a number of test cases. The assignment is to fix these errors, commit and document each change and to push it to your own repository. When working with GitHub, you should fork the project first to your own GitHub profile. Then clone your repository to your local machine, make and commit changes, then push them to your repository. C VersionC code is available in
and then run it from the command line using
An ad-hoc testing program has been provided as well which can be built using
and then run it from the command line using
An alternative version,
which produces an executable, Only after you have corrected all of the problems (both syntax errors as well as logic errors) will everything compile and the test suite reach 100% Java VersionCode for the Java version is in Files provided:
Once you've fixed all issues, run either |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论