Is there anyway to close Console in C++

I’m building a Menu in Visual studios and I’m just wanting is there any way to close the console window with code? because all I’ve found so far is Exit() and that is not what I’m looking for

(Edit) found what I was looking for

Privacy & Terms