#include <stdio.h>
int main(){
printf(“Hello, World!\n”);
return 0;
}
The above code, i build successfully in sublime Text.
[Finished in 1.9s]
#include <stdio.h>
#include <string.h>
int main()
{
char key]=“apple\n”;
char input[80];
do{
printf(“Guess my favorite fruit?”);
fgets(input,80, stdin);
}while(strcmp(key,input)!=0);
puts(“Good, Correct Answer”);
return 0;
}
The above code i cannot compile, the error is below:
c:/mingw/64/bin/…/lib/gcc/x86_64-w64-mingw32/4.8.1/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: cannot open output file C:\MyCode/Apple.exe: Permission denied
collect2.exe: error: ld returned 1 exit status
[Finished in 1.5s]
When i compile cplus plus code, i also cannot compile, pls help.