按下F5下報錯!
1>------ 已啟動生成: 項目: cin, 配置: Debug Win32 ------
1>生成啟動時間為 2015/5/13 13:53:46。
1>InitializeBuildStatus:
1> ?正在對“Debug\cin.unsuccessfulbuild”執(zhí)行 Touch 任務。
1>ClCompile:
1> ?所有輸出均為最新。
1>ManifestResourceCompile:
1> ?所有輸出均為最新。
1>LINK : fatal error LNK1123: 轉換到 COFF 期間失敗: 文件無效或損壞
1>
1>生成失敗。
1>
1>已用時間 00:00:00.16
========== 生成: 成功 0 個,失敗 1 個,最新 0 個,跳過 0 個 ==========
2015-05-15
問題解決了,謝謝!在百度知道查的!LINK : fatal error LNK1123: 轉換到 COFF 期間失敗: 文件無效或損壞 ,是系統(tǒng)設置的一個問題!
2015-05-15
#include <iostream>
#include <stdlib.h>
using namespace std;
int main(void)
{
cout<<"請輸入一個整數(shù):"<<endl;
int x=0;
cin>>x;
cout<<oct<<x<<endl;//oct是8進制的縮寫
cout<<dec<<x<<endl;//dec是10進制的縮寫
cout<<hex<<x<<endl;//hex是16進制的縮寫
cout<<"請輸入一個布爾值(0或者1):";
bool y=false;
cin>>y;
cout<<boolalpha<<endl;
return 0;
system("pause");
}
代碼如下 您有空幫忙看看!謝謝親!
2015-05-14
你再檢查一下你的代碼