This is a very good linked list question, as there are tricky cases you have to consider, and getting them all right in one place is harder than it lo...
分类:
其他好文 时间:
2014-10-12 05:54:07
阅读次数:
161
main() { char s[30]; strcpy(s, "Good News!"); /*给数组赋字符串*/ . . . } 上面程序在编译时, 遇到char s[30]这条语句时, 编译程序会在内存的某处留 出连续30个字节的区域, 并将第一个字节的地址赋给s。当遇到strcpy( strc...
分类:
编程语言 时间:
2014-10-11 22:15:26
阅读次数:
202
来源:dlut oj1105: Zhuo’s DreamTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 40 Solved: 14[Submit][Status][Web Board]DescriptionZhuo is a lovely boy and ...
分类:
其他好文 时间:
2014-10-10 12:30:54
阅读次数:
212
Our good friend Mole is trying to code a big message. He is typing on an unusual keyboard with characters arranged in following way:
qwertyuiop
asdfghjkl;
zxcvbnm,./
Unfortunately Mole is blind, ...
分类:
其他好文 时间:
2014-10-10 02:36:33
阅读次数:
315
fundamentaltypes:IntDoubleFloatBoolStringcollectiontypes:ArrayDictionarydeclareconstantswith"let"declarevariableswith"var"withannotation(rarelyusedeg:leta:String="good";
varmsg:String="hello";
vara,b,c:Double;toshowaconstantorvariablewithprintln(followedbya..
分类:
移动开发 时间:
2014-10-10 01:51:14
阅读次数:
224
问题: Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return –321 Have you thought about this? Here are some good questi...
分类:
其他好文 时间:
2014-10-07 19:51:14
阅读次数:
154
程序设计的三种典范(c++对象模型)1.程序模型就像c中那也的str*系列的函数如:char boy[] = "wcfsf";char p = new char[strlen(boy) + 1];strcpy(p, boy);感觉这个就是在函数内部实现的,没有什么封装的概念2.抽象数据类型(ADT)...
分类:
其他好文 时间:
2014-10-07 18:55:53
阅读次数:
174
USING GIT IN XCODEUSING BRANCHESBranches can be a very effective tool to isolate new features or experiments in code. Xcode has pretty good support fo...
分类:
其他好文 时间:
2014-10-07 16:01:23
阅读次数:
168
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321Have you thought about this?Here are some good questions to ask...
分类:
其他好文 时间:
2014-10-07 15:47:23
阅读次数:
204
Problem Description
Unfortunately YY gets ill, but he does not want to go to hospital. His girlfriend LMY gives him N kinds of medicine, which may be helpful. It is not a good idea to take all of t...
分类:
其他好文 时间:
2014-10-07 13:51:33
阅读次数:
217