The peice of the program compiles and executes on a regular C compiler, but when I use a C++ compiler it compiles but crashes my system..
The C compiler is pacific c the C++ compiler is dev c++.
The program checks for brakets and deletes space between them..
int i. j = 0;
char file[20] = "<a h ref="sys tem.tx t">
for (i=0;i<numchar;i++){
if (file[i]=='<'){
do{
if (file[i]==' ')
i++;
if (file[i]!=' '){
file[j]=file[i];
j++;
}
}while (file[i]!='>'&&file[i]);
}
file[j]='\0';
when i comment out the j++ it compiles and runs..