errors made, boundary conditions, <= vs < , decreasing vs increasing , ++, –, '0'/'1' vs 0/1 prototype of sum, return the starting position of c-style string containing the sum, just like sprintf return number of characters successfully read. p1=sum
<一>程序习惯注意 一.Linux与Windows的区别 a) 大小写敏感 i. 在Windows下,文件名大小写不敏感,例如A.c 与 a.c 与和a.C与A.C和没有区别. ii. Linux视文件名为二进制数据,所以区分大小写. iii. 考试时一定要看清题目上要求,区别大小写. iv. 注意修改文件名,尤其是在重新调试编译后. b) 关闭文件 i. Windows在程序退出时默认自动关闭已打开的文件,会把缓存中数据写入硬盘. ii. 在Linux下必须由程序关闭文件,否则没有被写
最近忙于考试复习,没有多少可供自己安排的时间,所以我利用复习之余的空闲时间去刷刷杭电acm的题目,也当对自己编程能力的锻炼吧. Problem Description I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. Input The first line of the input contains an integer T(1