码迷,mamicode.com
首页 >  
搜索关键字:atoi    ( 736个结果
线程创建代码
#include #include #include #include #include #include #include #include #ifndef T_DESC #define T_DESC(x, y) (y) #endif #if T_DESC("global", 1) pid_t g... ...
分类:编程语言   时间:2017-04-07 23:06:10    阅读次数:298
AToI&IToA
//AToI #include #define SIZE 200 int data[SIZE] = {4,5,6,7}; int AToI(int N,int Base) { int ret = 0; for(int i=0;i #define SIZE 20 int data[SIZE]; int... ...
分类:其他好文   时间:2017-04-01 15:38:34    阅读次数:140
上交大 2011 二次方程计算器
题目:输入关于x的二次方程表达式(系数为整数),输出两个解(由小到大输出,保留两位小数);如果无解,则输出“No Solution”。 思路:先确定等号位置,分成左右两个字符串,从中分别提取系数,再综合。然后求解。提取系数的过程如图: 过程:介绍两个函数:atoi()函数可以识别"+""-"号,并正 ...
分类:其他好文   时间:2017-03-30 13:41:22    阅读次数:267
第二次作业_105032014126
根据作业要求改为java代码 测试帖链接:http://www.cnblogs.com/destinyandfate/p/6606681.html 根据测试所暴露的问题,经过分析为atoi函数转换字符数组会自动将非数字字符作为终止符号,所以对数字字母混合的非法数据失去判断能力 经过修改后的代码: 由 ...
分类:其他好文   时间:2017-03-27 19:31:22    阅读次数:123
[SinGuLaRiTy] COCI 2011~2012 #2
【SinGuLaRiTy-1007】 Copyright (c) SinGuLaRiTy 2017. All Rights Reserved. 测试题目 对于所有的题目:Time Limit:1s | Memory:256 MB 第一题:考试得分(score)[najboljih] 【题目描述】 某 ...
分类:其他好文   时间:2017-03-21 22:45:29    阅读次数:249
数字转字符串及字符串转数字
头文件:#include<cstdio> 1、字符串数字之间的转换(1)string --> char * string str("OK"); char * p = str.c_str();(2)char * -->string char *p = "OK"; string str(p);(3)ch ...
分类:其他好文   时间:2017-03-20 22:07:50    阅读次数:276
【LeedCode】String to integer(atoi)
Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below ...
分类:其他好文   时间:2017-03-16 23:48:17    阅读次数:219
过中等难度题目.0310
。 8 String to Integer (atoi) 13.9% Medium 。 151 Reverse Words in a String 15.7% Medium 。 288 Unique Word Abbreviation 15.8% Medium 。 29 Divide Two Int... ...
分类:其他好文   时间:2017-03-10 10:46:20    阅读次数:319
继续过中等难度.0309
。 8 String to Integer (atoi) 13.9% Medium 。 151 Reverse Words in a String 15.7% Medium 。 288 Unique Word Abbreviation 15.8% Medium 。 29 Divide Two Int... ...
分类:其他好文   时间:2017-03-09 14:31:00    阅读次数:279
从文件读数据插入到链表
fopen函数的使用,fscanf函数分段读取文件中的字符串,atoi函数和atof函数分别将字符串转化成int型和float型 ...
分类:其他好文   时间:2017-03-06 01:16:54    阅读次数:313
736条   上一页 1 ... 26 27 28 29 30 ... 74 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!