xcxsxdxnx 2015-06-09 03:20 采纳率: 20%
浏览 1600

为什么每次执行结果都不一样??????????

void Hog::Debug(int w, int h)
{
double* buffer;
ofstream testout;

testout.open("C:\\Users\\Administrator\\Desktop\\training1.txt",ios::out);//以添加模式打开文件

for(int i=1;i<=100;i++)
{

char filePath[100];
sprintf(filePath,"C:\Users\Administrator\Desktop\image\%d.bmp",i);

unsigned char* testinput1 = read_bmp_image(filePath);
ImageProperty image_property1 = get_image_property(filePath);

Init(image_property1.width,image_property1.height,testinput1);

delete []testinput1;
testinput1 = NULL;
unsigned char* testoutput1 = new unsigned char[image_property1.size];
 buffer= FeatureExt( testoutput1 );



for( int i = 0 ; i < 108 ; i++ )
{
    testout<<buffer[i]<<" ";
    if((i+1)%w ==0)
    {
        testout<<endl;
        testout<<endl;
    }

}

}
testout.close();

  • 写回答

5条回答 默认 最新

  • 91program 博客专家认证 2015-06-09 03:24
    关注

    FeatureExt 是什么功能,怎么没有看到源代码?

    评论

报告相同问题?

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题