摘要:
#include <stdio.h>#include <stdlib.h>#include <string.h>#define error 0#define ok 1#define overflow -1#define STACK_INIT_SIZE 100#define STACKINCREMENT 10#define OPSETSIZE 7char OPSET[7]={'+','-','*','/','(',')','#'};unsigned 阅读全文
摘要:
atof的作用是将字符数组转换成相应的双精度的实数,本题的例子如下:(仅供参考)#include<iostream>#include<stdlib.h>#include<string.h>using namespace std;int main(){char a[10]="1236241";double b=atof(a);cout<<b<<endl; return 0;} 阅读全文