-
HELP!求分析原文件是否存在函数递归调用的程序或工具!本帖最后由zhou304082042于2010-09-0310:30编辑如题,把源文件中存在递归调用的函数找出来,怎么办?zhou304082042 时间:09-03 + 阅读全文
-
fwrite写文件多个0d在cygwin和vc测试都一样,输出都多一个0d(用gvim,%!xxd查看)intmain(){ FILE*fd=fopen("a.txt","wb");unsignedchara[]={0x00,0x00,0x01};fwrite(a,1,3,fd);fclose(fd);}a.txt内容:0000010d源方 时间:09-03 + 阅读全文
-
无符号 unsigned short型的 10 ,求反后,为何会得到负数呢?无符号unsignedshort型的10,求反后,为何会得到负数呢?以下代码,输出结果为下列内容,我不明白,unsignedshort型的10,本身就是无符号数呀,对它取反后,为何值是-11呢?short:-11ushort:-11int-11uint4294967285代码如下:#include"stdafx.h"#include<iostream&ggo_hao 时间:09-03 + 阅读全文
-
Unix/Linux平台下没有Mutex相关的函数吗,只有pthread里面的mutex操作?搜了半天,网上的都是pthread对mutex概念的操作。Unix下没有独立的mutex数据类型和相关函数吗?谢谢!!!!!jeanlove 时间:09-03 + 阅读全文
-
输出environ coredump.下面代码,用for循环没事,用while打印完就coredump,core在strlen里,为什么?#include<stdio.h>#include<stdlib.h>intmain(){insnowind 时间:09-02 + 阅读全文
-
这个友元函数的使用有什么问题么??为什么报这么奇怪的错???如下: 1#include<iostream> 2usingnamespacestd; 3classB 4{ 5prglq2000 时间:09-02 + 阅读全文
-
FTP PASV模式问题请教自己写的FTP客户端,想远程登录服务器下载文件,使用被动模式(PASV),控制连接一切正常但是当发送PASV后再建立服务器指定端口的数据端口就有问题表现为,如果该FTP服务器是局域网的,就没有问题,数据端口能建立并且能下载文件可是如果该服务器是外部公网的,就不行,数据端口总是connect失败注:公网服务器用了端口映射,原来的21端口为2121了lqq_1229 时间:09-02 + 阅读全文
-
cygwin中编译的问题我是用crosstool0.43制作的,里面的配置是#!/bin/sh#Thisscripthasonelineforeachknownworkingtoolchain#forthisarchitecture. Uncommenttheoneyouwant.#Generatedbygenerate-demo.plfromxiaojia0820 时间:09-02 + 阅读全文