プログラミングを始めたばかりですが、ヘッダーなどに問題があります。 だから、いつでも私が試してみて、私は指定されたファイルが見つかりませんでした。Visual Studio 2015
Unable to start program 'C:\Users\Gebruiker\documents\visual studio 2015\Projects\ConsoleApplication4\Debug\ConsoleApplication4.exe'. The system cannot find file specified.
また言って、この警告を受けるコード
// ConsoleApplication4.cpp : Defines the entry point for the console application.
#include "stdafx.h"
#include "std_lib_facilities.h"
int main()
{
return 0;
}
を実行し、ビルド出力:
1>------ Build started: Project: ConsoleApplication4, Configuration: Debug Win32 ------
1>ConsoleApplication4.cpp
1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\hash_map(17): error C2338: <hash_map> is deprecated and will be REMOVED. Please use <unordered_map>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========_
あなたは気づいたかもしれませんが、IこれについてのBjarne Stroustrupの本に従うと、彼はこれをどう扱うべきかを指定していない。
とにかく、std_lib_facilities.hヘッダは、彼が何を私に語ったのと同様に、ConsoleApplication.cppと同じフォルダ内にあります。
私が実際に行っているすべてのプロジェクトでこの問題に直面しているので、これは特にこのプログラムとは関係がないと私は思っています。
ああ、私はこれに関連する複数の質問をチェックしたが、質問は私のものと一致しなかったと言わざるを得ない。
また、私は結果なしで、#include "../std_lib_facilities.h"
と#include "../../std_lib_facilities.h"
しようとした。(stdafx.hをと同じ)私は、「建物」のプログラムを試してみたが、私は実際にそれが何をするか分からない、と私は必要がある場合解決策やcppをビルドし、いつデバッグするのですか。
私は第8章に続けましたので、答えは確かに本書にはありません。作業。
(私はこの質問で何かを台無し場合も教えてください、つまり私は、あまり話の詳細や何かを与える必要があること)
[コメントアーカイブ(http://chat.stackoverflow.com/transcript/134857) –