int main()
{
// system("start cd i:"); //1. changing to I: but again going back to c:
system(" dir i: >>d:\txt.txt"); //2. "Access denied."
getch();
return 0;
}
誰かがステートメント1と2でこのコードによって生成された出力を説明してもらえますか?そして、これら2つのコマンドを同じsystem()
呼び出しで連結する方法を提案してください。