考试网 >> IT认证 >> 水平 >> 程序员 >> 面向对象及C++基础知识

面向对象及C++基础知识

发布时间:2006-06-28 02:42     点击:
分页:上一页  1 2 3 4 [5] 

       返回引用的函数:将函数用于赋值的左边

       void类型指针:可以指向任一类型的C++对象,避免设计指针类型匹配的错误。将void类型的指针置给其它类型的指针时,必须使用强制类型转换。

 指针和const关键字:

     const int *p;  int const *p

 类型定义:      typedef 类型名 新名(如:typedef int INTEGER)

 串:            以’\0’结尾的字符数组。

 可以声明为数组或者指针:

    char * str = “new string”;   char[] str = “new string”;

 字符串操作函数:string.h

   char *strcat( char *strDestination, const char *strSource );

   char *strcpy( char *strDestination, const char *strSource );

  int strcmp( const char *string1, const char *string2 );
分页:上一页  1 2 3 4 [5] 
版权申明:未经书面授权请勿转载本站信息!!作品版权归所属媒体与作者所有!!
发表评论: 匿名发表 用户名: 查看评论
您将承担一切因您的行为、言论而直接或间接导致的民事或刑事法律责任
留言板管理人员有权保留或删除其管辖留言中的任意内容
本站提醒:不要进行人身攻击。谢谢配合。
在本站搜索相关信息
2003-2005 Ksw123.com All Rights Reserved. - TOP
Copyright © 2006 Ksw123.com. All rights reserved.中国考题网 版权所有