16进制加法1 #include2 int main()3 {4 int a,b;5
while(scanf("%x %x",&a,&b)!=EOF)6 {7 printf("%d\n",a+b); 8 } 9 }
分类:
其他好文 时间:
2014-04-30 02:19:33
阅读次数:
357
copy的目的就是修改副本,修改原始对象和副本时不会产生干扰。
定义一个不可变属性A,再定义一个可变属性B。用B做添加删除等操作后再将B赋值给A时,有些人习惯用A = B;其实这样是不安全的。 假设有下面的一段代码: int
main(){ NSMutableString *strM = [...
分类:
移动开发 时间:
2014-04-30 01:58:00
阅读次数:
561
转载自:http://blog.csdn.net/onestep365/article/details/1897626#include #include
#include int main(){ char *str = (char *)malloc(100); strcpy(str, "hello"...
分类:
其他好文 时间:
2014-04-30 01:51:48
阅读次数:
427
friend numbers = 2^x + 3^y -1 1 #include 2 int
main() 3 { 4 __int64 a; 5 while(scanf("%I64d",&a)!=EOF) 6 { 7 if(!a) 8 {
9...
分类:
其他好文 时间:
2014-04-30 01:43:36
阅读次数:
322
public class Factory2 { /** * @param args 工厂模式
*/ public static void main(String[] args) { // TODO Auto-generated method stub
Ifactory ifactory =...
分类:
其他好文 时间:
2014-04-30 00:33:52
阅读次数:
504
public class Factory2 { /** * @param args 工厂模式
*/ public static void main(String[] args) { // TODO Auto-generated method stub
//工厂模式 Ifactory if...
分类:
其他好文 时间:
2014-04-30 00:13:13
阅读次数:
512
package exp { object Main { def main(args:
Array[String]): Unit = { B[String].say("hello");
//B[String]后的括号可以省略,编译器知道这不是要用类型B而是要...
分类:
其他好文 时间:
2014-04-29 22:15:21
阅读次数:
500
App被启动时,从非运行状态到短暂的非激活状态,然后切换到运行状态或者后台运行状态。在启动过程中,操作系统对App创建了一个主线程来调用main方法。main方法是App的入口,用来调用UIKit框架和做一些程序运行前的预处理。XCode项目模板自动生成了mian方法,调用UIApplication...
分类:
移动开发 时间:
2014-04-29 21:53:43
阅读次数:
716
ALLEN-XIEABOUTAllen
Xie是一家坚持理念至上的西装定制店。我们的价值观渗透于我们所做的每一件事中,从而确保始终遵循自己的风格。我们坚持用最高标准要求自己,因此,在制衣过程中,两次的试衣过程以确保每一件西装都可以完美的贴合在顾客的身上。对于远程客户,我们提供远程定制服务,对于五件及...
分类:
其他好文 时间:
2014-04-29 21:21:51
阅读次数:
426
题意:求N!中末尾0的个数 其实就是5的个数 因为2*5=10
肯定n中2的个数比5的个数多#includeusing namespace std;int main(){ int n; int t,d; int sum;
scanf("%d",&t); while(t...
分类:
其他好文 时间:
2014-04-29 21:09:41
阅读次数:
346