用VS2010进行c语言调试时出现的问题,急需解决?
#include "stdio.h"#include "stdlib.h"
#include "string.h"
unsigned int c1[32]={0xffff,0x5678,0x12ac,0xfedc,0x1456,0x2456,0xfefe,0x1245,
0x1234,0x5678,0x12ac,0xfedc,0x1456,0x2456,0xfefe,0x1245,
0x1234,0x5678,0x12ac,0xfedc,0x1456,0x2456,0xfefe,0x1245,
0x1234,0x5678,0x12ac,0xfedc,0x1456,0x2456,0xffff,0x1245};
unsigned int c2[32]={0x1,0x5678,0x12ac,0xfedc,0x1456,0x2456,0xfefe,0x1245,
0x1234,0x5678,0x12ac,0xfedc,0x1456,0x2456,0xfefe,0x1245,
0x1234,0x5678,0x12ac,0xfedc,0x1456,0x2456,0xfefe,0x1245,
0x1234,0x5678,0x12ac,0xfedc,0x1456,0x2456,0xfff0,0x1245};
unsigned c3[32]={0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0};//32bits
unsigned int sub(unsigned *p1,unsigned *p2)
{
unsigned i,j;
unsigned bit=0;//借位的标志
for(i=31;i>=0;i--)
{
if((p1[i]-p2[i]-bit)<0)
{
bit = 1;
c3[i] = 0x10000+(p1[i]-p2[i]-bit);
}
else
{
bit = 0;
c3[i] = p1[i]-p2[i]-bit;
}
}
for(j=0;j<=31;j++)
{
printf("%x ",c3[j]);
}
return 0;
}
int main(void)
{
int k;
k=1;
while(k)
{
sub(c1,c2);
k--;
}
return 0;
}
1>------ 已启动生成: 项目: test1, 配置: Debug Win32 ------
1>生成启动时间为 2015/7/16 17:01:32。
1>PrepareForBuild:
1> 正在创建目录“E:\vc\工程文件\test1\Debug\”。
1>InitializeBuildStatus:
1> 正在创建“Debug\test1.unsuccessfulbuild”,因为已指定“AlwaysCreate”。
1>ClCompile:
1> sub.c
1>LinkEmbedManifest:
1> test1.vcxproj -> E:\vc\工程文件\test1\Debug\test1.exe
1>FinalizeBuildStatus:
1> 正在删除文件“Debug\test1.unsuccessfulbuild”。
1> 正在对“Debug\test1.lastbuildstate”执行 Touch 任务。
1>
1>生成成功。
1>
1>已用时间 00:00:28.34
========== 生成: 成功 1 个,失败 0 个,最新 0 个,跳过 0 个 ==========
源程序在上面,各位大神帮忙看看,帮忙指点一下,我才开始用的VS2010,谢谢各位大神