只显示主题贴
Example:
char *strSrc[] = "abcdefghi";
char strDes[6];
memset(strDes,'\0',sizeof(strDes));
strncpy(strDes, strSrc+1, 2); //相当与subStr(strSrc,1,2)
或用 stdio.h 里的 sscanf 函数:
char *strSrc[] = "abcdefghi";
char *strDes[6];
sscanf(strSrc, "%2s", strDes);
- 进入论坛 综合技术 版
unix环境下标准C实现的遍历某个文件夹下面所有文件(转自CSDN)
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <dirent.h>
int testdir(char *path)
{
struct stat buf;
if(lstat(path,&buf)<0)
{
return 0;
}
...
- 进入论坛 综合技术 版
现在进入了WEB2.0时代,AJAX的应用也将无处不在,紧随其后的ajax ToolKit也相继出现DOJO、YahooUI...等非常强大的面向对象的JavaScript的工具箱,
对于你方便阅读Source,最好能够了解一下JavaScript下如何使用OO进行编程的, 这有很大的用处,以下偶提供的小例讲述了JS OO编程的简单应用
<html>
<head>
<title></title>
<script>
function ClassTest1(){
alert("Congratulation! thi ...
- 进入论坛 AJAX 版
- 浏览: 67447 次
- 性别:


- 详细资料
搜索本博客
最近加入圈子
链接
最新评论
-
Hibernate之deleted obje ...
不错,我也碰到这个问题了。
-- by winwnx -
Java 接口大全、面向接口 ...
厉害!学习了。谢谢!
-- by 31212 -
ET Limit方式的分页查询
不能排序怎么办办呢
-- by zhang20084 -
eXtreme Table 的基本用法 ...
为什么 我把的CSS不能调用?把TEST里面的<STYLE>去掉后,调用e ...
-- by fredweng -
分页标签:pager-taglib使 ...
发现LZ在没有声明的情况下引用了我大部分的文字。连“咳”都用过来了 :)http ...
-- by 我想我是海






评论排行榜