今天在VS2013中调试SOCKET编程时,遇到了点小问题:
问题代码为:
inet_ntoa(addrClient.sin_addr);
生成错误消息为:
error C4996: 'inet_ntoa': Use inet_ntop() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable...
分类:
Web程序 时间:
2015-07-24 18:31:09
阅读次数:
868
1、错误描述1 queries executed, 0 success, 1 errors, 0 warnings
查询:SELECT a.createUserId AS typeId, (SELECT COUNT(c.id) FROM t_aps c WHERE c.`status` IN (2, 5) AND c.createTime >= start...
错误代码: 1247
Refe...
分类:
其他好文 时间:
2015-07-21 20:42:40
阅读次数:
832
1、错误描述1 queries executed, 0 success, 1 errors, 0 warnings
查询:select count(t.id),t.`createUserId` from t_acs_ints t where t.id not in (SELECT t1.ionId FROM t_acs_cont t1, t_ac...
错误代码: 1054
Unknown c...
分类:
其他好文 时间:
2015-07-21 20:41:58
阅读次数:
206
1、错误描述1 queries executed, 0 success, 1 errors, 0 warnings
查询:call insert_data()
错误代码: 1305
PROCEDURE world.insert_data does not exist
执行耗时 : 0 sec
传送时间 : 0 sec
总耗时 : 0 sec2、错误原因3、解决办法...
分类:
其他好文 时间:
2015-07-21 20:40:29
阅读次数:
185
#创建树,让树的每一个节点都变成度数为2的树
通过先序遍历124###3##可以唯一确定一棵树。
// nonrecursion.cpp
// 对树的操作
#define _CRT_SECURE_NO_WARNINGS
#include
#include
#include
using namespace std;
// 二叉树表示法
typedef struct BiTNode...
分类:
其他好文 时间:
2015-07-19 20:14:03
阅读次数:
169
#define_CRT_SECURE_NO_WARNINGS
//输出一个整数的每一位
//1.低位输出到高位
#include<stdio.h>
#include<stdlib.h>
intmain()
{
inta;
printf("请输出一个数");
scanf("%d",&a);
while(a)
{
printf("%d",a%10);
a=a/10;
}
system("pause");
re..
分类:
其他好文 时间:
2015-07-17 22:57:48
阅读次数:
179
顺序容器包含vector list deque
vector:用于查询操作较多的队列
list:用户插入操作较多的队列
deque:双端队列,双端队列中的元素可以从两端弹出,其限定插入和删除操作在表的两端
进行,在队列中间做插入删除操作性能最低。
#define _CRT_SECURE_NO_WARNINGS#include
#include
#includ...
分类:
编程语言 时间:
2015-07-13 12:23:01
阅读次数:
170
1. 错误描述1 queries executed, 0 success, 1 errors, 0 warnings查询:SELECT t.id, DATE_FORMAT( t.statisTime, '%Y-%m-%d %H:%i:%s' ) statisTime, (SELECT `id` FROM t_truck_info WHERE id = t.plateId...错误代码: 1242
S...
分类:
其他好文 时间:
2015-07-10 23:47:23
阅读次数:
425
#define _CRT_SECURE_NO_WARNINGS#include "string.h"#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h"#define OK...
分类:
其他好文 时间:
2015-07-09 00:31:55
阅读次数:
115
本份代码需要两个栈。一个是符号栈,一个是数字栈。输入中序表达式如9+(3-1)*3+10/2##define _CRT_SECURE_NO_WARNINGS#include#include#define max 100char ex[max]; /*存储后序表达式*//*函数功能:将中序表达式转化为...
分类:
其他好文 时间:
2015-07-07 12:43:02
阅读次数:
207