获取cmd的返回值

#include <iostream>

using namespace std;

int main(int argc, char * argv[]) {

system("ipconfig > temp.txt");

return 0;

}

posted @ 2021-06-23 17:24  江南王小帅  阅读(419)  评论(0)    收藏  举报