<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[forecho的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/forecho</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; forecho]]></copyright><item><title><![CDATA[指向数组的指针]]></title><link>https://blog.csdn.net/forecho/article/details/3173458</link><guid>https://blog.csdn.net/forecho/article/details/3173458</guid><author>forecho</author><pubDate>Wed, 29 Oct 2008 09:53:00 +0800</pubDate><description><![CDATA[#include int main(){ int array[3][5]={{11,2,2,4,4},{22,6,5,3,2},{33,5,7,3,5}}; //int (*pa)[5]=array; int (*pa)[5]; pa = array; printf("%d  %d/n", **pa, **(pa+1)); int *pb[3]; *pb=*pa; *(pb+1)=*(array+]]></description><category></category></item><item><title><![CDATA[【语法】C++拷贝构造函数的几个细节]]></title><link>https://blog.csdn.net/forecho/article/details/2761592</link><guid>https://blog.csdn.net/forecho/article/details/2761592</guid><author>forecho</author><pubDate>Sun, 03 Aug 2008 16:41:00 +0800</pubDate><description><![CDATA[http://www.cppblog.com/mzty/archive/2008/04/02/45998.htmlhttp://www.pconline.com.cn/pcedu/empolder/gj/c/0503/570112.html]]></description><category></category></item><item><title><![CDATA[【算法】编写strcpy函数]]></title><link>https://blog.csdn.net/forecho/article/details/2119191</link><guid>https://blog.csdn.net/forecho/article/details/2119191</guid><author>forecho</author><pubDate>Mon, 25 Feb 2008 15:20:00 +0800</pubDate><description><![CDATA[     已知strcpy函数的原型是char *strcpy(char *strDest, const char *strSrc);       其中strDest是目的字符串，strSrc是源字符串。不调用C++/C的字符串库函数，请编写函数 strcpychar *strcpy(char *strDest, const char *strSrc]]></description><category></category></item><item><title><![CDATA[【语法】虚函数笔记]]></title><link>https://blog.csdn.net/forecho/article/details/2119135</link><guid>https://blog.csdn.net/forecho/article/details/2119135</guid><author>forecho</author><pubDate>Mon, 25 Feb 2008 15:07:00 +0800</pubDate><description><![CDATA[  #include iostream>#include string>using namespace std;class A...{public: /**//*virtual */void print(void)    ...{            cout  " A "  endl;    }protected:private:};class B : public A...{pu]]></description><category></category></item><item><title><![CDATA[【语法】extern 用法笔记]]></title><link>https://blog.csdn.net/forecho/article/details/2110872</link><guid>https://blog.csdn.net/forecho/article/details/2110872</guid><author>forecho</author><pubDate>Thu, 21 Feb 2008 10:32:00 +0800</pubDate><description><![CDATA[  （1）在一个文件内声明外部变量。 如果外部变量不在文件开头定义，其有效的作用范围只限于定义处到文件终了。如果在定义之前的函数想引用该外部变量，在应该在引用之前用关键字extern对该变量作“外部变量声明”。#include iostream>using namespace std;int main(int argc; char* argv[])...{    extern a;]]></description><category></category></item><item><title><![CDATA[【语法】指针和引用的区别]]></title><link>https://blog.csdn.net/forecho/article/details/2110267</link><guid>https://blog.csdn.net/forecho/article/details/2110267</guid><author>forecho</author><pubDate>Wed, 20 Feb 2008 21:12:00 +0800</pubDate><description><![CDATA[  （1） 非空区别。在任何情况下都不能使用指向空值的引用。一个引用总是指向某些对象。而指针可以为空值。#include iostream>#include string>using namespace std;int main(int argc, char* argv[])...{    int a = 1;    int &b;    cout  a  endl;    cou]]></description><category></category></item><item><title><![CDATA[【语法】sizeof 笔记]]></title><link>https://blog.csdn.net/forecho/article/details/2109252</link><guid>https://blog.csdn.net/forecho/article/details/2109252</guid><author>forecho</author><pubDate>Wed, 20 Feb 2008 14:13:00 +0800</pubDate><description><![CDATA[   #include iostream>#include string>using namespace std;int main(int argc, char* argv[])...{    cout  "sizeof(string) = "  sizeof(string)  endl;    string str[] = ...{"sdf4", "123", "d"};    ]]></description><category></category></item><item><title><![CDATA[【语法】const 用法整理]]></title><link>https://blog.csdn.net/forecho/article/details/2104126</link><guid>https://blog.csdn.net/forecho/article/details/2104126</guid><author>forecho</author><pubDate>Mon, 18 Feb 2008 19:56:00 +0800</pubDate><description><![CDATA[  1 const放在*左侧修饰的是指针的内容,const放在*右侧修饰的是指针本身. 2 const更大的魅力是它可以修饰函数的参数、返回值，甚至函数的定义体。       如果参数作输出用，不论它是什么数据类型，也不论它采用“指针传递”还是“引用传递”，都不能加const修饰，否则该参数将失去输出功能。          const只能修饰输入参数：            如果]]></description><category></category></item><item><title><![CDATA[【算法】a b 最大值和交换问题]]></title><link>https://blog.csdn.net/forecho/article/details/2103574</link><guid>https://blog.csdn.net/forecho/article/details/2103574</guid><author>forecho</author><pubDate>Mon, 18 Feb 2008 16:58:00 +0800</pubDate><description><![CDATA[  【最大值】不用 if   、  ？ ： 、switch 或其它判读语句，找出a b中的最大者。【代码】int max = ((a + b) + abs(a - b))/2【交换值】【代码一】a = a + b;b = a - b;a = a - b;当a b 过大时， a + b 会越界。【代码二】a = a ^ b;b = a ^ b;a ]]></description><category></category></item><item><title><![CDATA[【算法】螺旋队列]]></title><link>https://blog.csdn.net/forecho/article/details/2102681</link><guid>https://blog.csdn.net/forecho/article/details/2102681</guid><author>forecho</author><pubDate>Mon, 18 Feb 2008 13:51:00 +0800</pubDate><description><![CDATA[  【题目】7 8 96 1 25 4 3 以上数字的排列规律，设1点的坐标是（0，0），x方向向右为正，y方向向下为正。例如，7的坐标为(-1,-1),2的坐标为（1，0），3的坐标为（1，1）。编程实现输入任意一点坐标（x,y），输出所对应的数字。【算法分析】观察队列 如把队列分成一圈一圈，如7 8 9                                ]]></description><category></category></item></channel></rss>