M
Maxx
Lately i'm having a problem running this program:
#include <stdio.h>
#include <ctype.h>
int main(int argc, char *argv[])
{
FILE *fp;
int ch;
if((fp=fopen(argv[1],"r")) == NULL)
fprintf(stderr,"Error can't open file: %s",*argv[1]);
while((ch=getc(fp)) !=EOF)
{
if(isalpha(ch) && islower(ch)) {
ch=toupper(ch);
putc(ch,fp);
}
}
fclose(fp);r
return 0;
}
i'm getting this error:
The instruction at "0x004045e3" referenced memory at "0x0000006c". The
memory could not be read.
I can't make any headway with this error. please help..
#include <stdio.h>
#include <ctype.h>
int main(int argc, char *argv[])
{
FILE *fp;
int ch;
if((fp=fopen(argv[1],"r")) == NULL)
fprintf(stderr,"Error can't open file: %s",*argv[1]);
while((ch=getc(fp)) !=EOF)
{
if(isalpha(ch) && islower(ch)) {
ch=toupper(ch);
putc(ch,fp);
}
}
fclose(fp);r
return 0;
}
i'm getting this error:
The instruction at "0x004045e3" referenced memory at "0x0000006c". The
memory could not be read.
I can't make any headway with this error. please help..