別のプログラムからプログラムを起動しようとしています。
これが図の下のコードです
:1
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<string.h>
int main()
{
printf("Before Execution \n");
system("c:\\Rasmi Personal\\PERSONAL\\C\\Code Block\\C_Test\\bin\\Debug\\C_Test.exe");
printf("\nAfter Execution \n");
return 0;
}
c:\Rasmi Personal\PERSONAL\C\Code Block\C_Test\bin\Debug\C_Test プロジェクトには、コードが含まれています
図 2:
#include <stdio.h>
int main()
{
int x = 10;
while( x --> 0 ) // x goes to 0
{
printf("%d\n", x);
} return 0;
}
しかし、最初のプログラム (図 1) を実行すると、出力は次のようになります。
Before Execution
'c:\Rasmi' is not recognized as an internal or external command,
operable program or batch file.
After Execution
これを解決するのを手伝ってください。
PS:- Windows XP で CODE::BLOCKS を使用しています。