摘要: Codeblocks下运行C++的程序时,偶尔会出现 Cannot open output file, permission denied 的问题,导致不能够编译。 在 Stack Overflow 上看到有过类似的遭遇。 链接地址 I have encountered the same probl 阅读全文
posted @ 2017-04-09 22:41 爱简单的Paul 阅读(5370) 评论(0) 推荐(0) 编辑
摘要: C语言提供了几个标准库函数,可以将任意类型(整型、长整型、浮点型等)的数字转换为字符串。以下是用itoa()函数将整数转换为字符串的一个例子:# include <stdio.h># include <stdlib.h>void main (void){int num = 100;char str[ 阅读全文
posted @ 2017-04-09 22:25 爱简单的Paul 阅读(1264) 评论(0) 推荐(1) 编辑