运行VC++,提示出错.懂的人教下我,小弟叩谢拉
我用运行的程序是,很简单,就是求两个数中最大的一个 ,程序本身没有问题.
#include <iostream.h>
vodi main()
{ float a,b;
cout<<"Enter two float number :"<<endl;
cin>>a>>b;
if(a>b)
cout<<"max is :"<<a<<endl;
else
cout<<"max is :"<<b<<endl;
}
运行程序提示的结果提示出错,它的提示是
Compiling...
pp.cpp
e:\program files\microsoft visual studio\myprojects\pp\pp.cpp(3) : error C2146: syntax error : missing ';' before identifier 'main'
e:\program files\microsoft visual studio\myprojects\pp\pp.cpp(3) : error C2501: 'vodi' : missing storage-class or type specifiers
e:\program files\microsoft visual studio\myprojects\pp\pp.cpp(3) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.
pp.exe - 1 error(s), 0 warning(s)
大哥大姐帮忙拉,小弟谢谢拉!!!
#include <iostream.h>
vodi main()
{ float a,b;
cout<<"Enter two float number :"<<endl;
cin>>a>>b;
if(a>b)
cout<<"max is :"<<a<<endl;
else
cout<<"max is :"<<b<<endl;
}
运行程序提示的结果提示出错,它的提示是
Compiling...
pp.cpp
e:\program files\microsoft visual studio\myprojects\pp\pp.cpp(3) : error C2146: syntax error : missing ';' before identifier 'main'
e:\program files\microsoft visual studio\myprojects\pp\pp.cpp(3) : error C2501: 'vodi' : missing storage-class or type specifiers
e:\program files\microsoft visual studio\myprojects\pp\pp.cpp(3) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.
pp.exe - 1 error(s), 0 warning(s)
大哥大姐帮忙拉,小弟谢谢拉!!!
...全文
相关推荐
vc140运行库
vs2017运行库,vc140运行时库,含64位和32位版本,使用时直接接所需要的dll全部拷贝到缺少dll的exe目录下即可。
系统没有安装VC9、VC11、VC14运行库,注意是X86 32位
电脑安装了phpStudy本地环境,由于昨天电脑重装系统了,今天运行phpStudy的时候提示“系统没有安装VC9、VC11运行库,注意是X86 32位”,重新安装hpStudy可以搞定吗
java、c、c++、vc、vc++、vb的区别和联系
详细介绍java、c、c++、vc、vc++、vb的区别和联系。
解决Win10 1607下VC6运行出错的问题的FileTool
同时解决Win10 1607下VC6运行出错以及VC6“Open project”出错的问题。 Code by tEAr 2017.01.02 基于achillis改进的FileTool源码 使用方法:以管理员身份运行Reg_FileTool.bat。 已知问题:VC6中中文输入不出现选词栏,运行VC后打开的部分其他程序也存在类似问题。
32位+64位VC9VC10VC11VC12VC13VC14运行库打包下载
发现大家下载比较麻烦,把常用运行库的全部打包,方便大家下载使用。


工具平台和程序库
