- 博客(16)
- 资源 (1)
- 收藏
- 关注
转载 常量指针与指针常量的区别(转帖)
http://www.cnblogs.com/witty/archive/2012/04/06/2435311.html三个名词虽然非常绕嘴,不过说的非常准确。用中国话的语义分析就可以很方便地把三个概念区分开。一) 常量指针。常量是形容词,指针是名词,以指针为中心的一个偏正结构短语。这样看,常量指针本质是指针,常量修饰它,表示这个指针乃是一个指向常量的指针(
2017-09-29 16:38:14 254
转载 C++中引用&的相关知识
C++中引用(&)的用法和应用实例http://www.cnblogs.com/Mr-xu/archive/2012/08/07/2626973.html 对于习惯使用C进行开发的朋友们,在看到c++中出现的&符号,可能会犯迷糊,因为在C语言中这个符号表示了取地址符,但是在C++中它却有着不同的用途,掌握C++的&符号,是提高代码执行效率和增强代码质量的一个很好的办法。在
2017-09-22 09:10:36 310
转载 C/C++ %s %d %u 基本概念与用法
%d 十进制有符号整数 %u 十进制无符号整数 %f 浮点数 %s 字符串 %c 单个字符 %p 指针的值 %e 指数形式的浮点数 %x, %X
2017-08-28 12:55:57 47378 1
转载 2016 linux install flash player 教程
http://wenku.baidu.com/view/3975841bb14e852459fb5772
2016-05-21 16:14:28 474
原创 2016_ubuntu+windows硬盘安装教程
Ubuntu+ windows双系统easybcd安装教程(最新)2016-5-21 主要解决有些无法安装的问题1.在安装了windows的系统下用easybcd安装配置1)留出空闲的磁盘: 可以用DiskGenius,选择windows已经分区的磁盘,删除分区,然后可以看到这部分空间变成空闲的了,至于要多大空间,看你自己觉得了,建议30G以上。图1 diskgeniu
2016-05-21 13:14:13 485
转载 boost 正则表达式测试
#include #include #include #include #include using namespace std;using namespace boost;regex expression("^select ([a-zA-Z]*) from ([a-zA-Z]*)");//定义正则表达式expressionint main(int argc, char* ar
2016-04-02 20:44:03 426
原创 2015年C++第三周,任务二:输入几个学生的成绩,用空格隔开,利用容器vector输出成绩,并显示各个等级的数量。
任务二:输入几个学生的成绩,用空格隔开,利用容器vector输出成绩,并显示各个等级的数量。2-14#include "stdafx.h"#include #include #include #include #include #include using namespacestd;int main(){ //cou
2015-01-21 20:32:31 1719
原创 2015年C++第三周,任务一:打印个人信息,学生,老师,在职教师
任务一:打印个人信息,学生,老师,在职教师2-11#include "stdafx.h"#include#includeusing namespacestd;class person{public: person(char*n,char*s,inty,intm) { name =newchar[strlen(n)+ 1]
2015-01-19 19:39:52 497
原创 2015C++第二周,任务九:定义一个person类,派生student类,在派生teacher类,并派生当老师的学生。
任务九:定义一个person类,派生student类,在派生teacher类,并派生当老师的学生。#include "stdafx.h"#include #include#includeusing namespacestd;class person{public: person(char*n,char*s,inta) {
2015-01-17 22:37:44 9897
原创 2015C++第二周,任务七:以不同的形式输出日期,月份以英文显示,涉及类,构造函数等等,并限定月份只有12个月,日期与实际情况相同,如果输入错误则显示为0.
任务七:以不同的形式输出日期,月份以英文显示,涉及类,构造函数等等,并限定月份只有12个月,日期与实际情况相同,如果输入错误则显示为0.2-3#include "stdafx.h"#include #include#includeusing namespacestd;class time{ intx; inty; intz;
2015-01-17 22:36:04 591
原创 2015C++第二周,任务三:输出带字母的图形,A,AB,ABC,ABCD,ABCDE
任务三:输出带字母的图形,A,AB,ABC,ABCD,ABCDE1-57#include "stdafx.h"#include #include#includeusing namespacestd;int main(){ inti = 0,j=0,n=0; cout"请输入要输出的行数n:" cin>> n; cou
2015-01-17 22:34:54 9739
原创 2015C++第二周,任务二:输出9*9乘法表
任务二:输出9*9乘法表1-56#include "stdafx.h"#include #include#includeusing namespacestd;int main(){ inti = 0, j = 0, plus=0; for(i = 1; i { for(j = 1; j {
2015-01-17 22:33:41 398
原创 2015C++第二周,任务一:输入100-999之间的水仙花数,153=13+53+33。
任务一:输入100-999之间的水仙花数,153=13+53+33。1-55#include"stdafx.h"#include#include#includeusingnamespacestd;int main(){ ints=0, i=0, j=0, k=0,m=0; for(s = 100; s {
2015-01-17 22:31:42 1102
原创 2015C++第一周,任务七:输出年月的月份天数
任务七:输出年月的月份天数1-51#include "stdafx.h"#include #include#includeusing namespacestd;int main(){ int year, month, days, leap; cout "请输入年月:" cin>> year >> month; sw
2015-01-17 22:30:34 621
原创 2015C++第一周,任务六:输出1!+2!+...+n!
任务六:输出1!+2!+...+n!1-52#include "stdafx.h"#include #include#includeusing namespacestd;int main(){ double sum = 0, fac = 1; int n; cout"请输入要求阶的最高数n(偶数):" << endl;
2015-01-17 22:28:57 399
原创 2015C++第一周,任务一:求两个数的平方根
任务一求两个数的平方根1-25#include "stdafx.h"#include #includeusing namespacestd;class complex{private: double real; double imag;public: complex(double r,double i) {
2015-01-17 22:24:36 1196
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人