#include#include#includeusing namespace std;char num[10000];int get_sum(){ int ret=0; for(int i=0;i<strlen(num);i++) { ret+=(num[i]-'0...
分类:
其他好文 时间:
2015-08-13 23:35:24
阅读次数:
183
/// /// 删除指定位置的图片和文件 /// /// /// protected static bool FilePicDelete(string path) { bool ret ...
分类:
其他好文 时间:
2015-08-13 15:40:38
阅读次数:
109
#define ret_ok 0
#define ret_err 1
#define ARRAY_SIZE 10/*选择法排序*/
int Choice_Sort(int array[],int array_len)
{
int i = 0;
int j = 0;
int iMin = 0;
int iTemp = 0;
int iFlag = 0;...
分类:
编程语言 时间:
2015-08-13 07:46:29
阅读次数:
194
题目Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Update (2014-11-02):
The signature of the function had been updated to ret...
分类:
其他好文 时间:
2015-08-12 19:29:29
阅读次数:
108
version: 1.9.1Attr 1 attr: function( elem, name, value ) { 2 var hooks, notxml, ret, 3 nType = elem.nodeType; 4 5 // don't get/set at...
分类:
Web程序 时间:
2015-08-11 21:11:07
阅读次数:
177
- (BOOL)touchesShouldCancelInContentView:(UIView*)viewParametersviewThe view object in the content that is being touched.view 这个view对象已获取到touched事件Ret...
分类:
其他好文 时间:
2015-08-11 21:01:23
阅读次数:
79
QuestionlinkImplement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Callingnext()will ret...
分类:
其他好文 时间:
2015-08-11 07:10:50
阅读次数:
99
#define ret_ok 0
#define ret_err 1char week_day[8] = {"Monday","Tuesday","Wedsday","Thursday","Friday","Saturday","Sunday"};int Judge_day_of_the_week(int week_num,char *result_week_day)
{
if( w...
分类:
其他好文 时间:
2015-08-11 01:26:31
阅读次数:
121
在剖析该问题前请看如下代码public static String bytes2HexString(byte[] b) { String ret = ""; for (int i = 0; i < b.length; i++) { String hex = Integer.toHexString(b...
分类:
编程语言 时间:
2015-08-10 23:50:25
阅读次数:
207
#define ret_ok 1
#define ret_err 1int judge_score(int score,char *ch)
{
if(score > 100 || score < 0)
{
printf("The score you input should little than 100 and bigger than 0\n");...
分类:
其他好文 时间:
2015-08-08 09:13:39
阅读次数:
144