U E D R , A S I H C RSS

문자반대출력/임다찬

~cpp
#include <stdio.h>
#include <string.h>
int datain(){
	char *a;
        FILE *input;
	input=fopen("source.txt","r");
	fgets(a,20,input);
        return *a;
}
void datasave(char *b){
	FILE *output;
	output=fopen("result.txt","w");
	fputs(b,output); 	
}             

int main(void){
	char *in,*out;

	*in=datain();   
	out=strrev(in);
        datasave(out);

	return 0;
}


20자를 읽어오는 소스네요. 크기와 관계없이 문자를 뒤집을 수 있을까요? -- Leonardong
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2009-05-27 07:09:19
Processing time 0.3015 sec