char str[] = "xxxx.dll"char*p;p=strrchr(str, '.');CString str="xxxx.dll";int n = str.ReverseFind('.')str = str.Left(str.GetLength()-n-1);
分类:
其他好文 时间:
2014-07-22 22:52:14
阅读次数:
254
初始化: std::pair p; //initialize p.first and p.second with zero std::pair p(42, "hello"); make_pair(42, "hello"); // no need for the var name, it's r...
分类:
其他好文 时间:
2014-07-22 22:47:13
阅读次数:
209
深入了解scanf()/getchar()和gets()等函数scanf与gets函数读取字符串的区别今天看到一段话,大致是说gets比scanf()快,有点吃惊,搜了一下,scanf()和gets的区别大致有着几条:1.scanf() 会忽略行开头的所有空格,并以空格、换行符结束输入; 使用get...
分类:
其他好文 时间:
2014-07-21 00:32:30
阅读次数:
283
#include
#include
#include
#define N 100
void GetDigits(int *a,char *s);
void multiply(int *a,int *b,int *c);
main()
{
char s1[N],s2[N];
int i,j,a[N],b[N],c[N*2];
printf("\n...
分类:
其他好文 时间:
2014-07-19 23:27:43
阅读次数:
223
抽象类为基类:abstract class Animal { string name; public string Name { get { return name; } set { name = value; } } char gender; public char Gender ...
分类:
其他好文 时间:
2014-07-19 21:30:18
阅读次数:
182
促使我们下决心真正支持多语言的驱动力是:中国的企业越做越大,我们的很多客户都在全球有业务,甚至并购了其他国家的公司,不支持多语言,就根本无法为客户提供服务,不支持多语言的门户产品功能再多也是个不能用的门户产品多语言的支持听起来简单,但在企业里面并不简单,因为企业里多语言有两个含义:一是系统界面的多语...
分类:
其他好文 时间:
2014-07-18 12:11:57
阅读次数:
215
只能对字符数组的元素赋值,而不能用赋值语句对整个数组赋值.char c[5];c={′C′,′h′,′i′,′n′,′a′}; //错误,不能对整个数组一次赋值c[0]=′C′; c[1]=′h′;c[2]=′i′;c[3]=′n′;c[4]=′a′; //对数组元素赋值,正确如果已定义了a和b是具...
分类:
编程语言 时间:
2014-07-18 12:11:40
阅读次数:
217
$ wc story.txt39 237 1901 story.txt● Use -l for only line count● Use -w for only word count● Use -c for only byte count● Use -m for character count (n...
分类:
系统相关 时间:
2014-07-18 00:22:31
阅读次数:
278
JDK1.5对for语句进行了改进,为更好遍历数组,改进后的for语句格式如下:for(声明循环变量:数组名){...}如:charb[]={'a','b','c','d'};for(charch:b){System.out.println(ch);//打印出数组b中的元素}可以方便的实现对list...
分类:
编程语言 时间:
2014-07-17 11:09:58
阅读次数:
220
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string;{ //string就是此时输入的那个字符text...
分类:
其他好文 时间:
2014-07-17 00:50:17
阅读次数:
354