![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++
文章平均质量分 54
zhangshan415
这个作者很懒,什么都没留下…
展开
-
strcmp 使用说明
functionhttp://www.cplusplus.com/reference/clibrary/cstring/strcmp/strcmpint strcmp ( const char * str1, const char * str2 );Compare two stringsCompares the C string str1 to the C st翻译 2012-09-12 15:01:04 · 1076 阅读 · 0 评论 -
VS2008中出现断点不能调试的问题
VS2008中出现不能调试“当前不会命中断点,还没有为该文档加载任何符号”的解决办法(在debug模式下解决的):解决方法:选择项目属性----》C++常规-----》调试信息格式设置--》选择“用于“编辑并继续”的程序数据库(/ZI)” 在我电脑上就这样解决了(在debug模式下),但在release编译模式下还是没有解决用这种办法,希望能给与你一点参考。原创 2012-11-22 10:22:33 · 1372 阅读 · 0 评论 -
勇敢的心
#include#includeint main(){ double x,y; int H=3; for(y=-4;y { for(x=-4;x if(fabs(sqrt(x*x+y*y)-H*sin(2*atan(y/x))) fabs(sqrt(x*x+y*y)-H*转载 2012-12-27 18:47:43 · 754 阅读 · 0 评论 -
一道编程题
// test.cpp : Defines the entry point for the console application.//#include "stdafx.h"//实验原理:假设开始时传教士、野人和船都在右岸,用数组(a,b,c)分别表示右岸传教士个数、右岸野人个数、船的位置,则可分为三种情况讨论: //A、n>m/2。此种情况下,先把所有的野人度过去,每次返回一转载 2012-12-29 17:01:31 · 778 阅读 · 0 评论 -
Windows平台下的win socket网络编程-文件传输小范例:
Windows平台下的win socket网络编程-文件传输小范例:实现:C语言功能:文件传输(可以传任何格式的文件) // // FILENAME: // File_Transfer_Server.c // // DESCRIPTION: // Winsocket Server demo, receive filenam转载 2013-10-21 17:16:17 · 1966 阅读 · 0 评论