英文引号怎么写( 三 )


比如用c:
#include "stdio.h"
void main()
{
char c;
int n=1;
FILE *fs,*fd;
fs=fopen("f:/20080924_1/s.txt","r"); /*前面引号里是源文件名*/
fd=fopen("f:/20080924_1/d.txt","w"); /*目的文件名*/
while((c=fgetc(fs))!=EOF)
{
if(c=='\"')
{
if(n%2==0)
【英文引号怎么写】fprintf(fd,"”");
else fprintf(fd,"“");
n++;
}
else
fprintf(fd,"%c",c);
}
fclose(fs);
fclose(fd);
}