
C语言学习
逝_doom
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
%n 格式符运行时异常 printf
visual studio C语言 使用%n格式符的时候 运行会报错 简单来讲就是会造成缓冲区攻击,导致不安全的隐患,需要被禁用。 所以不用就不用了吧。 原因见下: Because the %n format is inherently insecure, it is disabled by default. If %n is encountered in a format string...原创 2019-02-14 17:50:02 · 962 阅读 · 0 评论 -
pat 乙级 1094
这个程序整体来讲,没什么难点,唯一的bug是pow()这个函数,用int作为参数返回的结果不对= =这个必须debug才能看到 #include <stdio.h> #include <stdlib.h> #include <math.h> typedef int Status; long powme(int k); int isPrime(long nu...原创 2019-05-23 16:18:25 · 3242 阅读 · 0 评论