PDA

View Full Version : پیغام could not creat process !؟



zizi_zizi69
یک شنبه 02 اسفند 1383, 00:54 صبح
من وقتی برنامه زیر رو اجرا می کنم با اینکه خطایی ندارد اجرا نمیشه و
پیغام could not creat process می ده.ممنون میشم راهنمایی کنید.


#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
struct list {
char alph;
int freq;
};
struct list a[256];
///////////////////////////////////////////////////////////////
int main(){
int j,m,f,k;
FILE *fin;
char ch;
clrscr();
fin=fopen("a:test.txt","wt");
printf("\n enter characters($ for end):");
do{
ch=getchar();
putc(ch,fin);
}while(ch!='$');
fclose(fin);
fin=fopen("a:test.txt","rt");
for(j=0,m=0;j<256;j++)
{ f=0;k=0;
while((ch=getc(fin))!=EOF)
{
if(ch==j)
{ f=1;
a[m].alph=ch;
k++;
}
}
if(f==1){
a[m].freq =k;
m++;
}

rewind(fin);
}
fclose(fin);
getch();
return 0;
}

zizi_zizi69
چهارشنبه 05 اسفند 1383, 10:13 صبح
با سلام ، شما جواب این سوال رو اینجا پیدا می کنید.

http://cboard.cprogramming.com/showthread.php?t=62054
:wise1: :)