获取路径后怎么存放在字符数组中

获取路径后如何存放在字符数组中?RT我用system(cd)获取当前路径后如何存储?[解决办法]shi shi:system(

获取路径后如何存放在字符数组中?
RT
我用system("cd");
获取当前路径后如何存储?

[解决办法]
shi shi:
system("cd >> a.txt");