Chinaunix首页 | 论坛 | 博客
  • 博客访问: 142793
  • 博文数量: 61
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 590
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-03 15:26
文章分类

全部博文(61)

文章存档

2010年(9)

2009年(52)

我的朋友

分类:

2009-03-04 14:50:09

自己写的,其实是为了测试下cublog的blog对源代码能不能很好的支持


int testWeathcrNumber(char *sr) /**//*test string weather all num or not*/

{
    if(sr == NULL)
        return ERROR;
    else
    {
        while(*sr != ' 0')
        {
            if((*sr-'0' >=0)&&(*sr-'0' <= 9))
                sr++;
            else
                return ERROR;
        }
    }
    return OK;
}





#include<stdio.h>

int main()
{
    int *p;
    int a=3;
    printf("%d,%d,%d,%d ",sizeof(p),sizeof(*p),sizeof(a),a);
    getchar();
}


阅读(456) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~