Visual Studio 2022 “Cannot open source file” Problem

Screenshot 2025-01-23 123916

Hi, I have a problem , when i installed Viusal Studio 2022 community i selected only this in installation detail C++ ATL and Windows 10 DSK (10.0.2348.0) and intellicode .

  • when i run code , it appears “can’t open source file “iostream” “
  • identifier “cout” is undefined.

(Additional information that may help you solve the problem)

  • I have Visual studio code for python
  • I installed mingGW and deleted it again For VSC
  • I installed MSYS2 and deleted it again For VSC

notice: iam new user in Visual Studio and Learing C++ 🙃

(Sorry for the English mistakes and bad typing because I am a new learner of English)

Read more here: Source link