current position:Home>Dev C + + automatically generates an ostream after compilation?

Dev C + + automatically generates an ostream after compilation?

2022-02-02 20:17:50 CSDN Q & A

Today's code makes a sudden error after adding the input prompt statement , The program can't run ,

Show cout cin endl And so on are not defined ( The header file says iostream), a ostream

stay 1.cpp Click compile to run, and you will jump to ostream

I've tried on someone else's computer, which can compile and run normally , It shouldn't be about the code , So what's wrong with my computer ( The computer is dell)

img

img




Refer to the answer 1:

Your code should be 1.cpp Well , This ostream Where did the file come from




Refer to the answer 2:



Refer to the answer 3:

ostream Is the output stream ,C++ The header file contains information about the output , It should be all right to modify that thing , You're using Debug, Try this instead

img

If help , Hope to adopt , thank you

img




Refer to the answer 4:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202022017458854.html

Random recommended