[1]진수변환프로그램
- 최초 등록일
- 2011.11.14
- 최종 저작일
- 2011.06
- 3페이지/ 한컴오피스
- 가격 1,000원
소개글
데이터통신
목차
1.결과화면
2.프로그램 소스
본문내용
2.프로그램 소스
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
4
5 void conversion(int argc, char **argv, FILE *decimal);
6 void conv_fwrite(char *changed, char *out, int negative);
7
8
9 void main(int argc, char **argv)
10 {
11 int n, in, i;
12 int r=0;
13 FILE *decimal;
14
15 if(argc <5){
16 write(2, "Usage : append R 10.txt W2 2.txt W8 8.txt W16 16.txt\n", 54); // 2 is standard e rror
17 exit(1);
18 }
19
20 for(i=1; i<argc;i++){
21 if(strcmp(argv[i],"R")==0){
22 r=1;
23 break;
24 }
25 }
26
27 if(r==0){
28 write(2, "Usage : You defined Read File that decimal\n", 45); // 2 is standard error
29 exit(1);
30 }
참고 자료
없음