🧼C, C++/기초및 입문

윈도우 애플리케이션에서 콘솔 사용하는 법

Mawile 2021. 12. 28.
728x90

윈도우 애플리케이션에서 콘솔 사용하는 법

오늘 게임엔진 공부하는데 하드웨어어댑터를 콘솔로 출력하고 싶어서 찾아봤는데, 이러한 내용이 있더라구요.

https://stackoverflow.com/questions/587767/how-to-output-to-the-console-in-c-windows

 

How to output to the console in C++/Windows

When using iostream in C++ on Linux, it displays the program output in the terminal, but in Windows, it just saves the output to a stdout.txt file. How can I, in Windows, make the output appear in ...

stackoverflow.com

 

저가 본 부분은 이렇습니다.

 

freopen_s메서드를 이용해서 한번 더 열어줘야 하나 봅니다.

실제 사용해본 코드사진입니다.

 

실제 프로그램실행을 통해 어댑터 서술자를 출력해봤습니다.

 

굿!

참고로 이제부터 저의 메인 게임엔진 이름은 "ZekrosEngine" 이 될것입니다.

Zekrom + Zephrus의 합성어예요. 갑자기 생각나서 합쳐서 지어봄.

 

그럼 안녕!


728x90

댓글