荔园在线
荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀
[回到开始]
[上一篇][下一篇]
发信人: kaman (天外飞仙), 信区: ACMICPC
标 题: [合集]is there any function of string convert it t ┅
发信站: 荔园晨风BBS站 (Tue Jun 1 11:03:57 2004), 站内信件
alec (AlecMonkeyKing) 于Sat Apr 3 08:47:28 2004提到:
is there any function of string to convet a string type variable to int type?
posidone (海王波赛冬) 于Sat Apr 3 09:35:55 2004提到:
function in stdlib.h:
double strtod(const char *s,char * *endp) 将字符串转化为double
long strtol(const char *s,char * *endp,base ) 将字符串转化为long,
按base指明的进制转换
unsigned long stroul(const char *s,char * *endp,base ) 将字符串转化为
unsigned long
double atof(const char *s)
int atoi(const char *s)
long atol(const char *s)
以上三个函数为简化形式
liujian (@STU) 于Sat Apr 3 13:40:01 2004提到:
But they are not the ANSI functions, thus they are not allowed
to be used during the contest.
kaman (天外飞仙) 于Sat Apr 3 13:45:13 2004提到:
???
It seems that STL can be used in the contest,why the functions in STDLIB.h
can not?
kaman (天外飞仙) 于Sat Apr 3 13:49:10 2004提到:
Otherwise,it seems that in the contest we should submit the program that
compiled to .EXE.
liujian (@STU) 于Sat Apr 3 15:38:56 2004提到:
my "contest" means "online contest", sorry, I made a mistake.
The contest which allows to submit the executed file can use STL
of course.
[回到开始]
[上一篇][下一篇]
荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店