摘要: 新来报道 阅读全文
posted @ 2007-01-21 23:20 Edward Xie 阅读(134) 评论(0) 推荐(0) 编辑
摘要: #include string str1;str1.size();//////////////////////////////////struct strM{ std::string str2;};strM strM1;strM1.str2="str"; 阅读全文
posted @ 2007-01-21 23:05 Edward Xie 阅读(86) 评论(0) 推荐(0) 编辑
摘要: clock_t // system typedef for clock() return (long in vc++6.0)clock() // get system timeCLOCKS_PER_SEC // system time / sectime(0);// include srand(time(0)); rand... 阅读全文
posted @ 2007-01-21 23:05 Edward Xie 阅读(299) 评论(0) 推荐(0) 编辑
摘要: int a;cout.put(char(a));////////////////////////////cout.put(asc)///////////////////////////////////cout.put('char');//////////////////////////////////////cout.setf(ios_base::fixed,ios_base::floatfiel... 阅读全文
posted @ 2007-01-21 23:04 Edward Xie 阅读(195) 评论(0) 推荐(0) 编辑
摘要: cin>>a;忽略 空格,换行符,tab/////////////////////////////////////////////////////////////cin.get(ArrName ,size);//对换行符,保留在输入流。到达行尾或读到size-1个字符为止 //可以接受第3个参数表示读取结束表记符 ep: char ... 阅读全文
posted @ 2007-01-21 23:04 Edward Xie 阅读(220) 评论(0) 推荐(0) 编辑
摘要: a[3][3] 址(1) 址(2)a[0]->a[0]+0 a[0]+1 a[0]+2 a+0->*(a+0)+0 *(a+0)+1 *(a+0)+2 a[1]->a[1]+0 a[1]+1 a[1]+2 a+1->*(a+1)+0 *(a+1)+1 *(a+1)+2 a... 阅读全文
posted @ 2007-01-21 23:03 Edward Xie 阅读(466) 评论(0) 推荐(0) 编辑