poj 1102--LCDisplay
来源:互联网 发布:腾讯企业邮箱端口 编辑:程序博客网 时间:2024/05/16 12:36
这题首先纠结在atoi函数的参数,是const char类型的,但是通过循环string[i]是char类型的,所有需要转换才能调用atoi函数,正好网上找了一下,char to const char 和const char to char , const char* 转换成char*只能新开辟空间, 然后通过strcpy()函数来实现,char *转换成const char*直接赋值就可以,其实后来想到不需要那么复杂,直接9='9'-'0'可以了,第二点在与逻辑的处理上,一开始我写的很挫,后来网上查找了一下,思想完全一样,以为本来没啥算法,纯粹模拟题,但是逻辑比我好的多,感叹差距还是很大, 路还是很长。
- poj 1102--LCDisplay
- poj 1102
- POJ-1102
- POJ 1102 LC DISPLAY
- poj 1102 LC-Display
- POJ 1102 LC-Display
- poj 1102 LC-Display
- POJ 1102 - LC-Display
- POJ
- poj
- POJ
- POJ
- poj
- poj
- POJ
- POJ
- poj
- POJ
- 使用 Excel 2007 做图 学习心得。
- Programmer Competency Matrix
- 每一句话都可以品一辈子的职场箴言
- Programmer Competency Matrix
- 该写点博客了,记录漫游网络的心路历程。
- poj 1102--LCDisplay
- Can I Use this Intent?
- Windows 8操作系统让你网络生活产生革命的变化
- 《JQuery in Action》学习笔记——ch1 Introducing jQuery
- PostgreSQL字符串处理函数
- ADROID 2.1 架构解析 1 语言定制& CTS
- VC++ 升级到visual studio 2008 后,调试DirectShow中的Sample编译出错问题解决方案
- 交叉编译场景分析(arm-linux)(六)--编译TinyX
- setAttribute()的使用方法与ie不兼容onclick事件解决方法