'Cannot open source file in Visual Studio 2022
Currently, I am trying to make a simple out put and input game using <iostream> but whenever I type #include <iostream> an error pops up saying "cannot open source file "iostream."" I have tried to copy the file path, but personally, I have no idea how to do that, even with tutorials.
Here is my code:
#include <iostream>
using namespace std;
int main()
{
cout << "Welcome human!\n" << endl;
return 0;
}
If you respond on how to do the file directory, do explain like you are trying to explain it to a c++ beginner since I recently started. :)
Solution 1:[1]
Try:
#include "stdafx.h"
#include <iostream>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | ra1n |
