![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C语言
我很忙2010
咩
展开
-
sprintf用法
作用:将一个格式化的字符串输出到一个目的字符串中。原型: int sprintf( char *buffer, const char *format , [argument] ... );除了前两个参数类型固定外,后面可以接任意多个参数。当需要把数字转化为字符串时,sprintf非常好用;C++中也可使用to_string。测试如下:#include <stdio.h&g...原创 2018-10-04 17:10:48 · 528 阅读 · 0 评论 -
关于error: expected ';', ',' or ')' before '&' token
今天用C写LeetCode时,出现了error: expected ';', ',' or ')' before '&' tokenC语言中&表示取地址,不表示引用。C++中&可表示引用,这个需要注意原创 2018-12-08 22:37:20 · 2468 阅读 · 1 评论