How to simulate the situation of insufficient memory by visual studio 2013 CPP Program

as shown in the question, I want to set the available memory (heap or stack) when the program is running. how should I set it?

CPP
Apr.01,2021
Menu