How do you determine the amount of Linux system RAM in C++?

前端 未结 4 1604
迷失自我
迷失自我 2020-12-04 17:54

I just wrote the following C++ function to programatically determine how much RAM a system has installed. It works, but it seems to me that there should be a simpler way to

4条回答
提交回复
热议问题