
--3.2C++
XuRuiIsCoding
这个作者很懒,什么都没留下…
展开
-
C++关于snprintf和sprintf
1.sprintf 头文件:#include #include <stdio.h> main() { char buf[10]; sprintf(buf, "Test!"); printf("%s", buf); } 屏幕显示: Test! 2.snprintf 头文件:#incl...原创 2018-03-04 19:26:31 · 1268 阅读 · 0 评论 -
leetcode-203. Remove Linked List Elements-C++
Remove Linked List Elements Remove all elements from a linked list of integers that have value val. Example Given: 1 –> 2 –> 6 –> 3 –> 4 –> 5 –> 6, val = 6 Return: 1 –> 2 –&...原创 2018-03-24 21:27:53 · 685 阅读 · 0 评论