打印当前工作路径:system("dir 1.txt");(windows)获得当前工作路径:_getcwd (windows)getcwd (linux)注意:工作路径为操作者当前所在路径,非程度所在路径(****cmd命令行模式下运行程序****)