|
FILE *fp;
char buffer[100], ct[]= " ,\t\n";
if((fp = fopen(strFilename,"r")) == NULL)
return false;
fgets(buffer,150,fp);
a = (int)atof(strtok(buffer,ct)); //resource의 개수 읽어들임
b = (int)atof(strtok(NULL,ct)); //process의 개수 읽어들임
res
|
- 페이지 13페이지
- 가격 2,000원
- 등록일 2004.11.15
- 파일종류 압축파일
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
atof(m_Edit);
break;
case minus: // minus 연산
m_Result -= atof(m_Edit);
break;
case multiply: // multiply연산
m_Result *= atof(m_Edit);
break;
case divide: // divide연산
denominator=atof(m_Edit);
if ( fabs(denominator)<m_Tol ) throw ("Error: Denomi
|
- 페이지 5페이지
- 가격 4,900원
- 등록일 2011.01.04
- 파일종류 기타
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
atof(yytext); // 형변환 명시
return NUMBER;
}
[ \t] ; // whitespace를 무시한다.
[A-Za-z][A-Za-z0-9]* { // symbol table point를 return한다.
struct symtab *sp = symlook(yytext);
yylval.symp = sp;
return NAME;
}
"$"{ return 0; }
\n|
.return yytext[0];
%%
lexer는 token에 관련된 type으로 자동적으로
|
- 페이지 10페이지
- 가격 1,000원
- 등록일 2009.03.17
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
atof(str); <-- 문자열 str을 부동 소숫점 수로 변환
char * str;
(4) double strtod(str); <-- 문자열 str을 double형으로 변환
char * str;
(5) long strtol(str); <-- 문자열 str을 long형으로 변환
char * str;
(6) unsigned int strtoul; <-- 문자열 str을 unsigned형으로 변환
char
|
- 페이지 10페이지
- 가격 3,500원
- 등록일 2008.01.06
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
atof(argv[3]);
printf("%d, %ld, %lf\n", i, l, d);
}
예제. #include "stdio.h"
#include "stdlib.h"
void main(int agrc, char *argv[])
{
double pounds;
if (argc != 2) {
printf("Usage: CONVERT <ounces>\n");
printf("Try again!");
exit(1); /* 프로그램을 종료하기 위한 표준 함수 */
}
pounds = atof(argv
|
- 페이지 8페이지
- 가격 1,300원
- 등록일 2003.02.10
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
gn*atof(var);
}
void print(FILE *fp, double a[][MAX_SIZE+1], int n) {
int i, j;
for(i=0; i < n; i++) {
for(j=0; j < n; j++) fprintf(fp, "%.2lf\t", a[i][j]);
fprintf(fp, "| %.2lf\n", a[i][i+1]);
}
}
|
- 페이지 2페이지
- 가격 1,000원
- 등록일 2009.02.02
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
= num*10;
num3 = (int)num;
printf("\n%d",num3); //21322 값이 출력
i=0;
do {
s[i++] = num3 % 10 + '0';
if( i == b)
{
printf("\ncount %d",i); //카운팅 지수와 배열첨자가 같을때 소숫점 입력후 배열 첨자 증가가
s[i++]='.';
}
} while (( num3/= 10 ) > 0 );
if(sign < 0 )
s[i++] ='-';
s[i
|
- 페이지 3페이지
- 가격 1,000원
- 등록일 2004.02.26
- 파일종류 한글(hwp)
- 참고문헌 있음
- 최근 2주 판매 이력 없음
|
|
#include <stdio.h>
#define INPUT_SIZE 10
#define FLOAT_SIZE 32
typedef union {
float floatType;
unsigned long bit32Type;
}UFLOAT;
float strTofloat(char* str);
void printBit_Float(float userRealNum);
int main()
{
char inputStr[11] = {0};
float outputNum = 0.0;
// 입력받기
printf("
|
- 페이지 5페이지
- 가격 1,000원
- 등록일 2010.05.28
- 파일종류 압축파일
- 참고문헌 있음
- 최근 2주 판매 이력 없음
|
|
(atoi, atof)
【 2】함수 선언
【 3】함수 프로토타입
【 4】문자열의 입력
【 5】문자열 처리함수
【 6】매개변수 전달방법
【 7】재귀함수(하노이탑)
【 8】함수의 내포
【 9】글로벌 변수
【10】전처리기와 매크로
|
- 페이지 19페이지
- 가격 2,000원
- 등록일 2004.05.27
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
atof(yytext));
break;
case T_TEXT:
printf("%8s\t:\tText(%d, %s)\n",yytext,tk,yytext);
break;
case T_BOOL:
printf("%8s\t:\tBool(%d, %s)\n",yytext,tk,yytext);
break;
case T_IDENTIFIER:
printf("%8s\t:\tIdentifier(%d, %s)\n",yytext,tk,yytext);
break;
case T_COMMENT:case T_LINKWORD:case T_DATAINFORM:
c
|
- 페이지 15페이지
- 가격 0원
- 등록일 2010.02.01
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|