一个小问题,求解答:“file not recognized: File format not recognized”
下面是源代码,
不知道为什么错。。。
#include <iostream>
#include <string>
using namespace std;
int main()
{
string A ="too high";
string B ="too low";
string C ="right on";
string N = " ";
int n;
int high = 10;
int low = 0;
int p = 2;
for (N != C)
{
cin >> n;
cin.ignore();
getline(cin,N);
if(N == A)
{
high = n;
}
else if(N == B)
{
low = n;
}
if(high < low)
p = -1;
}
if (p == -1)
cout >> "Stan is dishonest";
else
cout >> "Stan may be honest";
return 0;
}
谢谢大家啦
不知道为什么错。。。
#include <iostream>
#include <string>
using namespace std;
int main()
{
string A ="too high";
string B ="too low";
string C ="right on";
string N = " ";
int n;
int high = 10;
int low = 0;
int p = 2;
for (N != C)
{
cin >> n;
cin.ignore();
getline(cin,N);
if(N == A)
{
high = n;
}
else if(N == B)
{
low = n;
}
if(high < low)
p = -1;
}
if (p == -1)
cout >> "Stan is dishonest";
else
cout >> "Stan may be honest";
return 0;
}
谢谢大家啦
...全文
相关推荐
Protel99SE的WIN7超级补丁,可一劳永逸解决导入库File is not recognized及Format %x问题
Protel99SE(SP6),体积小,经典简单,就像WIN的【记事本】一样,所以做一些小东西及体验还是可以的。 但Protel99SE在WIN7及以上系统导入库会提示::File is not recognized(即:无法识别文件)。这是兼容性的问题。 现在使用本超级补丁摒弃了以前导入库助手每次都需操作的方式,可一劳永逸地解决导入库文件及Format %x问题! (简单粗暴的来说,其实下载别人打过补丁的Protel99SE文件直接覆盖就行了)
file is not recognized
win7如何添加PCB封装库,针对protel与win7不兼容的问题
解决python 读取 log日志的编码问题
今天小编就为大家分享一篇解决python 读取 log日志的编码问题,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
MDK5生成bin文件方法[代码]
本文详细介绍了在MDK5(KEIL5)中生成bin文件的具体步骤。作者首先提到默认情况下MDK只能生成hex文件,但在调试IAP在线升级程序时需要用到bin文件。通过比较多种方法,发现MDK内部自带的fromelf.exe工具可以方便地生成bin文件,并且生成的bin文件经过测试可用。文章详细说明了如何使用fromelf.exe工具,包括工具路径的配置、生成命令的填写以及输入文件的选择。此外,还提供了可能遇到的问题及解决方法,如路径错误导致的编译运行出错或找不到bin文件的情况。
ClamAV病毒签名方法大全
ClamAV病毒签名方法大全,介绍了其不同格式的病毒库文件。


新手乐园
