1、函数返回的参数引用
[cpp] view
plaincopy
- #include "stdafx.h"
- #include <iostream>
- #include <set>
- using namespace std;
- float f;
- const float pi=3.14f;
- float f1(float r)
- {
- f=r*r*pi;
- return f;
- }
- float& f2(float r)
- {
- f=r*r*pi;
- return f;
- }
- int main()
- {
- float f1(float=5);//相当于是函数执行了一遍,没有返回值,但是为什么形参可以这样写呢,还要加上float
- float& f2(float=5);
- float a=f1();//为什么不用参数也可以匹配到
- //float& b=f1();
- float c=f2();
- float& d=f2();
- d+=1.0f;
- cout<<a<<" "<<" "<<c<<" "<<d<<endl;
- return 0;
- }
这里不明白其用法,需要好好看下书。
2、指针与数组
[cpp] view
plaincopy
- int *a=new int[5]();//数组指针
- int *c[5];//指针数组,一般作为函数指针
- int (*b)[10]
- 以及二维动态数组的创建又忘了
3、华为题1
计算最大数字连串的问题
http://www.meilijia.com/collection/862163
http://www.meilijia.com/collection/862164
http://www.meilijia.com/collection/862165
http://www.meilijia.com/collection/862166
http://www.meilijia.com/collection/862167
http://www.meilijia.com/collection/862168
http://www.meilijia.com/collection/862169
http://www.meilijia.com/collection/862170
http://www.meilijia.com/collection/862171
http://www.meilijia.com/collection/862172
http://www.meilijia.com/collection/862173
http://www.meilijia.com/collection/862174
http://www.meilijia.com/collection/862175
http://www.meilijia.com/collection/862176
http://www.meilijia.com/collection/862177
http://www.meilijia.com/collection/862178
http://www.meilijia.com/collection/862179
http://www.meilijia.com/collection/862180
http://www.meilijia.com/collection/862181
http://www.meilijia.com/collection/862182
http://2703637.s.toocle.com/ http://2703638.s.toocle.com/ http://2703639.s.toocle.com/ http://2703640.s.toocle.com/ http://2703641.s.toocle.com/ http://2703642.s.toocle.com/ http://2703643.s.toocle.com/ http://2703644.s.toocle.com/ http://2703645.s.toocle.com/ http://2703646.s.toocle.com/ http://2703647.s.toocle.com/ http://2703648.s.toocle.com/ http://2703649.s.toocle.com/ http://2703650.s.toocle.com/ http://2703651.s.toocle.com/ http://2703652.s.toocle.com/ http://2703653.s.toocle.com/ http://2703654.s.toocle.com/ http://2703655.s.toocle.com/ http://2703656.s.toocle.com/ http://2703657.s.toocle.com/ http://2703658.s.toocle.com/ http://2703659.s.toocle.com/ http://2703660.s.toocle.com/ http://2703661.s.toocle.com/ http://2703662.s.toocle.com/ http://2703663.s.toocle.com/ http://2703664.s.toocle.com/ http://2703666.s.toocle.com/ http://2703668.s.toocle.com/ http://2703669.s.toocle.com/ http://2703670.s.toocle.com/ http://2703671.s.toocle.com/ http://2703672.s.toocle.com/ http://2703673.s.toocle.com/ http://2703677.s.toocle.com/ http://2703678.s.toocle.com/ http://2703679.s.toocle.com/ http://2703680.s.toocle.com/ http://2703681.s.toocle.com/ http://2703682.s.toocle.com/ http://2703683.s.toocle.com/ http://2703684.s.toocle.com/ http://2703685.s.toocle.com/ http://2703686.s.toocle.com/ http://2703687.s.toocle.com/ http://2703689.s.toocle.com/ http://2703690.s.toocle.com/ http://2703691.s.toocle.com/ http://2703692.s.toocle.com/ http://2703693.s.toocle.com/ http://2703694.s.toocle.com/ http://2703695.s.toocle.com/ http://2703696.s.toocle.com/ http://2703697.s.toocle.com/ http://2703698.s.toocle.com/ http://2703699.s.toocle.com/ http://2703700.s.toocle.com/ http://2703701.s.toocle.com/ http://2703702.s.toocle.com/ http://2703703.s.toocle.com/ http://2703704.s.toocle.com/ http://2703705.s.toocle.com/ http://2703706.s.toocle.com/ http://2703707.s.toocle.com/ http://2703708.s.toocle.com/ http://2703709.s.toocle.com/ http://2703710.s.toocle.com/ http://2703711.s.toocle.com/ http://2703712.s.toocle.com/ http://2703713.s.toocle.com/ http://2703714.s.toocle.com/ http://2703715.s.toocle.com/ http://2703716.s.toocle.com/ http://2703717.s.toocle.com/ http://2703718.s.toocle.com/ http://2703719.s.toocle.com/ http://2703720.s.toocle.com/ http://2703721.s.toocle.com/ http://2703722.s.toocle.com/ http://2703723.s.toocle.com/ http://2703724.s.toocle.com/ http://2703725.s.toocle.com/ http://2703726.s.toocle.com/ http://2703727.s.toocle.com/ http://2703728.s.toocle.com/ http://2703729.s.toocle.com/ http://2703730.s.toocle.com/ http://2703731.s.toocle.com/ http://2703732.s.toocle.com/ http://2703733.s.toocle.com/ http://2703734.s.toocle.com/ http://2703735.s.toocle.com/ http://2703736.s.toocle.com/ http://2703737.s.toocle.com/ http://2703738.s.toocle.com/ http://2703739.s.toocle.com/ http://2703740.s.toocle.com/ http://2703741.s.toocle.com/ http://2703742.s.toocle.com/ http://2703743.s.toocle.com/ http://2703744.s.toocle.com/ http://2703745.s.toocle.com/ http://2703746.s.toocle.com/ http://2703747.s.toocle.com/ http://2703748.s.toocle.com/ http://2703749.s.toocle.com/ http://2703750.s.toocle.com/ http://2703751.s.toocle.com/ http://2703752.s.toocle.com/ http://2703753.s.toocle.com/ http://2703754.s.toocle.com/ http://2703755.s.toocle.com/ http://2703756.s.toocle.com/ http://2703757.s.toocle.com/ http://2703758.s.toocle.com/ http://2703759.s.toocle.com/ http://2703760.s.toocle.com/ http://2703761.s.toocle.com/ http://2703762.s.toocle.com/ http://2703763.s.toocle.com/ http://2703764.s.toocle.com/ http://2703765.s.toocle.com/ http://2703766.s.toocle.com/ http://2703767.s.toocle.com/ http://2703768.s.toocle.com/ http://2703769.s.toocle.com/ http://2703770.s.toocle.com/ http://2703771.s.toocle.com/ http://2703773.s.toocle.com/ http://2703774.s.toocle.com/ http://2703775.s.toocle.com/ http://2703776.s.toocle.com/ http://2703777.s.toocle.com/ http://2703778.s.toocle.com/ http://2703779.s.toocle.com/ http://2703780.s.toocle.com/ http://2703781.s.toocle.com/ http://2703782.s.toocle.com/ http://2703783.s.toocle.com/ http://2703784.s.toocle.com/ http://2703785.s.toocle.com/ http://2703786.s.toocle.com/ http://2703787.s.toocle.com/ http://2703788.s.toocle.com/ http://2703789.s.toocle.com/ http://2703790.s.toocle.com/ http://2703791.s.toocle.com/ http://2703792.s.toocle.com/ http://2703793.s.toocle.com/ http://2703794.s.toocle.com/ http://2703795.s.toocle.com/ http://2703796.s.toocle.com/ http://2703797.s.toocle.com/ http://2703798.s.toocle.com/ http://2703799.s.toocle.com/ http://2703800.s.toocle.com/ http://2703801.s.toocle.com/ http://2703802.s.toocle.com/ http://2703803.s.toocle.com/ http://2703804.s.toocle.com/ http://2703805.s.toocle.com/ http://2703806.s.toocle.com/ http://2703807.s.toocle.com/ http://2703808.s.toocle.com/ http://2703809.s.toocle.com/ http://2703810.s.toocle.com/ http://2703811.s.toocle.com/ http://2703812.s.toocle.com/ http://2703813.s.toocle.com/ http://2703814.s.toocle.com/ http://2703815.s.toocle.com/ http://2703816.s.toocle.com/ http://2703817.s.toocle.com/ http://2703818.s.toocle.com/ http://2703819.s.toocle.com/ http://2703820.s.toocle.com/ http://2703821.s.toocle.com/ http://2703822.s.toocle.com/ http://2703823.s.toocle.com/ http://2703824.s.toocle.com/ http://2703825.s.toocle.com/ http://2703826.s.toocle.com/ http://2703827.s.toocle.com/ http://2703828.s.toocle.com/ http://2703829.s.toocle.com/ http://2703830.s.toocle.com/ http://2703831.s.toocle.com/ http://2703832.s.toocle.com/ http://2703833.s.toocle.com/ http://2703834.s.toocle.com/ http://2703835.s.toocle.com/ http://2703836.s.toocle.com/ http://2703837.s.toocle.com/ http://2703838.s.toocle.com/ http://2703839.s.toocle.com/ http://2703840.s.toocle.com/ http://2703841.s.toocle.com/ http://2703842.s.toocle.com/ http://2703843.s.toocle.com/ http://2703844.s.toocle.com/ http://2703845.s.toocle.com/ http://2703846.s.toocle.com/ http://2703847.s.toocle.com/ http://2703848.s.toocle.com/ http://2703849.s.toocle.com/ http://2703850.s.toocle.com/ http://2703851.s.toocle.com/ http://2703852.s.toocle.com/ http://2703853.s.toocle.com/ http://2703854.s.toocle.com/ http://2703855.s.toocle.com/ http://2703856.s.toocle.com/ http://2703857.s.toocle.com/ http://2703858.s.toocle.com/ http://2703859.s.toocle.com/ http://2703860.s.toocle.com/ http://2703861.s.toocle.com/ http://2703862.s.toocle.com/ http://2703863.s.toocle.com/ http://2703864.s.toocle.com/ http://2703865.s.toocle.com/ http://2703867.s.toocle.com/ http://2703868.s.toocle.com/ http://2703869.s.toocle.com/ http://2703870.s.toocle.com/ http://2703871.s.toocle.com/ http://2703872.s.toocle.com/ http://2703873.s.toocle.com/ http://2703874.s.toocle.com/ http://2703875.s.toocle.com/ http://2703876.s.toocle.com/ http://2703877.s.toocle.com/ http://2703878.s.toocle.com/ http://2703879.s.toocle.com/ http://2703880.s.toocle.com/ http://2703881.s.toocle.com/ http://2703882.s.toocle.com/ http://2703883.s.toocle.com/ http://2703884.s.toocle.com/ http://2703885.s.toocle.com/ http://2703886.s.toocle.com/ http://2703887.s.toocle.com/ http://2703888.s.toocle.com/ http://2703889.s.toocle.com/ http://2703890.s.toocle.com/ http://2703891.s.toocle.com/ http://2703892.s.toocle.com/ http://2703893.s.toocle.com/ http://2703894.s.toocle.com/ http://2703895.s.toocle.com/ http://2703896.s.toocle.com/ http://2703897.s.toocle.com/ http://2703898.s.toocle.com/ http://2703899.s.toocle.com/ http://2703900.s.toocle.com/ http://2703901.s.toocle.com/ http://2703902.s.toocle.com/ http://2703903.s.toocle.com/ http://2703904.s.toocle.com/ http://2703905.s.toocle.com/ http://2703906.s.toocle.com/ http://2703907.s.toocle.com/ http://2703908.s.toocle.com/ http://2703910.s.toocle.com/ http://2703911.s.toocle.com/ http://2703912.s.toocle.com/ http://2703913.s.toocle.com/ http://2703914.s.toocle.com/ http://2703915.s.toocle.com/ http://2703916.s.toocle.com/ http://2703917.s.toocle.com/ http://2703918.s.toocle.com/ http://2703919.s.toocle.com/ http://2703920.s.toocle.com/ http://2703921.s.toocle.com/ http://2703922.s.toocle.com/ http://2703923.s.toocle.com/ http://2703924.s.toocle.com/ http://2703925.s.toocle.com/ http://2703926.s.toocle.com/ http://2703927.s.toocle.com/ http://2703928.s.toocle.com/ http://2703929.s.toocle.com/ http://2703930.s.toocle.com/ http://2703931.s.toocle.com/ http://2703932.s.toocle.com/ http://2703933.s.toocle.com/ http://2703934.s.toocle.com/ http://2703935.s.toocle.com/ http://2703936.s.toocle.com/ http://2703937.s.toocle.com/ http://2703938.s.toocle.com/ http://2703939.s.toocle.com/ http://2703940.s.toocle.com/ http://2703941.s.toocle.com/ http://2703942.s.toocle.com/ http://2703943.s.toocle.com/ http://2703944.s.toocle.com/ http://2703945.s.toocle.com/ http://2703946.s.toocle.com/ http://2703947.s.toocle.com/ http://2703948.s.toocle.com/ http://2703949.s.toocle.com/ http://2703950.s.toocle.com/ http://2703951.s.toocle.com/ http://2703952.s.toocle.com/ http://2703953.s.toocle.com/ http://2703954.s.toocle.com/ http://2703955.s.toocle.com/ http://2703956.s.toocle.com/ http://2703957.s.toocle.com/ http://2703958.s.toocle.com/ http://2703959.s.toocle.com/ http://2703960.s.toocle.com/ http://2703961.s.toocle.com/ http://2703962.s.toocle.com/ http://2703963.s.toocle.com/ http://2703964.s.toocle.com/ http://2703965.s.toocle.com/ http://2703966.s.toocle.com/ http://2703967.s.toocle.com/ http://2703968.s.toocle.com/ http://2703969.s.toocle.com/ http://2703970.s.toocle.com/ http://2703971.s.toocle.com/ http://2703972.s.toocle.com/ http://2703973.s.toocle.com/ http://2703974.s.toocle.com/ http://2703975.s.toocle.com/ http://2703976.s.toocle.com/ http://2703977.s.toocle.com/ http://2703978.s.toocle.com/ http://2703979.s.toocle.com/ http://2703980.s.toocle.com/ http://2703981.s.toocle.com/ http://2703982.s.toocle.com/ http://2703983.s.toocle.com/ http://2703984.s.toocle.com/ http://2703985.s.toocle.com/ http://2703986.s.toocle.com/ http://2703987.s.toocle.com/ http://2703988.s.toocle.com/ http://2703989.s.toocle.com/ http://2703990.s.toocle.com/ http://2703991.s.toocle.com/ http://2703992.s.toocle.com/ http://2703993.s.toocle.com/ http://2703994.s.toocle.com/ http://2703995.s.toocle.com/ http://2703996.s.toocle.com/ http://2703997.s.toocle.com/ http://2703998.s.toocle.com/ http://2703999.s.toocle.com/ http://2704000.s.toocle.com/ http://2704001.s.toocle.com/ http://2704002.s.toocle.com/ http://2704003.s.toocle.com/ http://2704004.s.toocle.com/ http://2704005.s.toocle.com/ http://2704006.s.toocle.com/ http://2704007.s.toocle.com/ http://2704008.s.toocle.com/ http://2704009.s.toocle.com/ http://2704010.s.toocle.com/ http://2704011.s.toocle.com/ http://2704012.s.toocle.com/ http://2704013.s.toocle.com/ http://2704014.s.toocle.com/ http://2704015.s.toocle.com/ http://2704016.s.toocle.com/ http://2704017.s.toocle.com/ http://2704018.s.toocle.com/ http://2704019.s.toocle.com/ http://2704020.s.toocle.com/ http://2704021.s.toocle.com/ http://2704022.s.toocle.com/ http://2704023.s.toocle.com/ http://2704024.s.toocle.com/ http://2704025.s.toocle.com/ http://2704026.s.toocle.com/ http://2704027.s.toocle.com/ http://2704028.s.toocle.com/ http://2704029.s.toocle.com/ http://2704030.s.toocle.com/ http://2704031.s.toocle.com/ http://2704032.s.toocle.com/ http://2704033.s.toocle.com/ http://2704034.s.toocle.com/ http://2704035.s.toocle.com/ http://2704036.s.toocle.com/ http://2704037.s.toocle.com/ http://2704038.s.toocle.com/ http://2704039.s.toocle.com/ http://2704040.s.toocle.com/ http://2704041.s.toocle.com/ http://2704042.s.toocle.com/ http://2704043.s.toocle.com/ http://2704044.s.toocle.com/ http://2704045.s.toocle.com/ http://2704046.s.toocle.com/ http://2704047.s.toocle.com/ http://2704048.s.toocle.com/ http://2704049.s.toocle.com/ http://2704050.s.toocle.com/ http://2704051.s.toocle.com/ http://2704052.s.toocle.com/ http://2704053.s.toocle.com/ http://2704054.s.toocle.com/ http://2704055.s.toocle.com/ http://2704056.s.toocle.com/ http://2704057.s.toocle.com/ http://2704058.s.toocle.com/ http://2704059.s.toocle.com/ http://2704060.s.toocle.com/ http://2704061.s.toocle.com/ http://2704062.s.toocle.com/ http://2704063.s.toocle.com/ http://2704064.s.toocle.com/ http://2704065.s.toocle.com/ http://2704066.s.toocle.com/ http://2704067.s.toocle.com/ http://2704068.s.toocle.com/ http://2704069.s.toocle.com/ http://2704070.s.toocle.com/ http://2704071.s.toocle.com/ http://2704072.s.toocle.com/ http://2704073.s.toocle.com/ http://2704074.s.toocle.com/ http://2704075.s.toocle.com/ http://2704076.s.toocle.com/ http://2704077.s.toocle.com/ http://2704078.s.toocle.com/ http://2704079.s.toocle.com/ http://2704080.s.toocle.com/ http://2704081.s.toocle.com/ http://2704082.s.toocle.com/ http://2704083.s.toocle.com/ http://2704084.s.toocle.com/ http://2704085.s.toocle.com/ http://2704086.s.toocle.com/ http://2704087.s.toocle.com/ http://2704088.s.toocle.com/ http://2704089.s.toocle.com/ http://2704090.s.toocle.com/ http://2704091.s.toocle.com/ http://2704092.s.toocle.com/ http://2704093.s.toocle.com/ http://2704094.s.toocle.com/ http://2704095.s.toocle.com/ http://2704096.s.toocle.com/ http://2704097.s.toocle.com/ http://2704098.s.toocle.com/ http://2704099.s.toocle.com/ http://2704100.s.toocle.com/ http://2704101.s.toocle.com/ http://2704102.s.toocle.com/ http://2704103.s.toocle.com/ http://2704104.s.toocle.com/ http://2704105.s.toocle.com/ http://2704106.s.toocle.com/ http://2704107.s.toocle.com/ http://2704108.s.toocle.com/ http://2704109.s.toocle.com/ http://2704110.s.toocle.com/ http://2704111.s.toocle.com/ http://2704112.s.toocle.com/ http://2704113.s.toocle.com/ http://2704114.s.toocle.com/ http://2704115.s.toocle.com/ http://2704116.s.toocle.com/ http://2704117.s.toocle.com/ http://2704118.s.toocle.com/ http://2704119.s.toocle.com/ http://2704120.s.toocle.com/ http://2704121.s.toocle.com/ http://2704122.s.toocle.com/ http://2704123.s.toocle.com/ http://2704124.s.toocle.com/ http://2704125.s.toocle.com/ http://2704126.s.toocle.com/ http://2704127.s.toocle.com/ http://2704128.s.toocle.com/ http://2704129.s.toocle.com/ http://2704130.s.toocle.com/ http://2704131.s.toocle.com/ http://2704132.s.toocle.com/ http://2704133.s.toocle.com/
版权声明:本文为博主原创文章,未经博主允许不得转载。