当前位置: 首页 > news >正文

杭州网站建设费用多少钱百度入口提交

杭州网站建设费用多少钱,百度入口提交,一个人网站开发,网站开发 性能方面1、C的学习方法 (1)C知识点概念内容比较多,需要反复复习 (2)偏理论,有的内容不理解,可以先背下来,后续可能会理解更深 (3)学好编程要多练习,简…

1、C++的学习方法

(1)C++知识点概念内容比较多,需要反复复习

(2)偏理论,有的内容不理解,可以先背下来,后续可能会理解更深

(3)学好编程要多练习,简单的也要手写确认一遍,记笔记

(4)学习过程中不可能每个知识点都100%懂,有些内容可能经过多年的程序开发实践才领悟,所以即使有不懂的,也按进度计划前行

2、C和C++的区别 

C语言是面向过程编程(POP)

C++是面向对象编程(OOP)

那么面向过程编程和面向对象编程有什么区别呢?

        举个例子:比如做饭、洗衣服、扫地三件事

C语言面向过程编程,会这样做:

        自己做饭,自己洗衣服,然后自己扫地

        把事情分条目,按步骤一步一步来做,有条不紊的进行完成。优点:把握细节,符合计算机的思维,运行效率高;缺点:开发效率低

C++面向对象编程,会这样做:

        找个厨师对象来,让他来做饭,找个保姆对象来,让他来洗衣服和扫地

        优点:调用不同的对象来处理不同的事物,符合人的思维;缺点:运行效率低,但开发效率高

3、C++基础

C++的基础与C语言大致一样,例如:注释、变量、常量、整型、实型、字符型、布尔类型、算数/赋值/比较/逻辑运算符

3.1 基础格式 

#include <iostream>  //iostream:输入输出流文件 ,相当于stdint.h
using namespace std;  //命名空间
int main()  //入口函数
{
    cout << "Hello World!" << endl;  //cout:输出;endl:换行
    return 0;
}
Ctrl+a:全选
Ctrl+i:格式化文档

3.2 C++关键字

3.3 转义字符

转义字符意义ASCII码值(十进制)
\a响铃(BEL)007
\b退格(BS),将当前位置移到前一列008
\f换页(FF),将当前位置移到下页开头012
\n换行(LF),将当前位置移到下一行开头010
\r回车(CR),将当前位置移到本行开头013
\t水平制表(HT)009
\v垂直制表(VT)011
\'单引号039
\"双引号034
\\反斜杠092

3.4 输入输出语句

C++中除了可以使用C语言中printf、scanf进行输入输出外,又新增了一套新的,更容易使用的输入输出库,即iostream

        输出:cout << 字符串信息;

        输入:cin >> 变量;

3.5 C++新的赋值语法 

    //方法一
    int c(2); //相当于给c赋值2
    int d(c); //相当于把c的值赋值给d
    //方法二
    int e{d};  //相当于赋值
    //()和{}赋值的区别:{}更安全,{}为一致性赋值,数据窄化赋值是会警告
    double f=3.14;
    int g(f);
    cout<<g<<endl;  //3
//    int h{f};  //会报错(数据窄化赋值是会警告)

3.6 字符串类型

3.6.1 字符串输入输出

    string uname;
    cin>>uname;  //输入
    cout<<"姓名:"<<uname<<endl;  //输出
    //但是C++中提供了一种可以包含空白的字符串的输入方法:getline
    string addr;
    getline(cin,addr);
    cout<<"地址:"<<addr<<endl;
    //字符串类型string需要导入头文件string
    string str1="admin";
    cout<<str1<<endl;
    //获取字符串的长度
    cout<<"获取字符串的长度:"<<str1.length()<<endl;
    cout<<"获取字符串的长度:"<<str1.size()<<endl;
    //访问字符:索引和at()方法
    //区别:at()方法更安全
    cout<<str1[0]<<endl;  //索引
    cout<<str1.at(0)<<endl;  //at()方法
//    cout<<str1[19]<<"***"<<endl;  //访问超过最大索引值时,是随机值
//    cout<<str1.at(20)<<endl;  //程序终止执行,会爆出out off range错误

3.6.2 字符串的遍历

    //字符串的遍历
    for(int i=0;i<str1.size();i++){
        cout<<str1.at(i)<<"   ";
    }
    cout<<endl;
    //遍历的简便写法,脱离下标,推荐使用
    for(char c:str1){
        cout<<c<<"   ";
    }
    cout<<endl;

3.6.3 数字字符串与整数之间的转换

    //需要导入字符串流头文件sstream
    //(1)将整数转成字符串类型
    int count=123;
    stringstream ss;  //字符串流
    ss<<count;
    string res1=ss.str();
    cout<<res1<<endl;  //字符串类型的"123"
    //(2)将字符串转成整数
    string ww="1234";
    istringstream is(ww);
    int res2;
    is>>res2;
    cout<<res2<<endl; //数字类型1234

文章转载自:
http://dinncoteleoperator.bkqw.cn
http://dinncobretagne.bkqw.cn
http://dinncomindel.bkqw.cn
http://dinncohomophone.bkqw.cn
http://dinncooxeye.bkqw.cn
http://dinncoavuncular.bkqw.cn
http://dinncoforfarshire.bkqw.cn
http://dinncocrossways.bkqw.cn
http://dinncolousily.bkqw.cn
http://dinncoshriven.bkqw.cn
http://dinncoexode.bkqw.cn
http://dinncovend.bkqw.cn
http://dinncouncivil.bkqw.cn
http://dinncodeindustrialize.bkqw.cn
http://dinncogastronomer.bkqw.cn
http://dinncotelescopiform.bkqw.cn
http://dinncointemperance.bkqw.cn
http://dinncomiraculin.bkqw.cn
http://dinncoescarp.bkqw.cn
http://dinncokurgan.bkqw.cn
http://dinncocountercry.bkqw.cn
http://dinncobasilian.bkqw.cn
http://dinncohammada.bkqw.cn
http://dinncokurrajong.bkqw.cn
http://dinncofeoffee.bkqw.cn
http://dinncodwelt.bkqw.cn
http://dinncomidsection.bkqw.cn
http://dinncooutbrave.bkqw.cn
http://dinncojunket.bkqw.cn
http://dinncovotarist.bkqw.cn
http://dinncohyperchlorhydria.bkqw.cn
http://dinncotreadle.bkqw.cn
http://dinncobiotechnology.bkqw.cn
http://dinncomooneyed.bkqw.cn
http://dinncotonstein.bkqw.cn
http://dinncocorinto.bkqw.cn
http://dinncostomach.bkqw.cn
http://dinncochordoma.bkqw.cn
http://dinncococcus.bkqw.cn
http://dinncoszabadka.bkqw.cn
http://dinncopassimeter.bkqw.cn
http://dinncocuetrack.bkqw.cn
http://dinncominiscule.bkqw.cn
http://dinncoglobuliferous.bkqw.cn
http://dinncosubjunction.bkqw.cn
http://dinncomyob.bkqw.cn
http://dinncobullionist.bkqw.cn
http://dinncopygmyisn.bkqw.cn
http://dinncoskyful.bkqw.cn
http://dinncopule.bkqw.cn
http://dinncodiagnoses.bkqw.cn
http://dinncojeremias.bkqw.cn
http://dinncorabbanist.bkqw.cn
http://dinncodrearisome.bkqw.cn
http://dinncoapparent.bkqw.cn
http://dinncointertestamental.bkqw.cn
http://dinncowilmer.bkqw.cn
http://dinncosaxifragaceous.bkqw.cn
http://dinncopixy.bkqw.cn
http://dinncodifferentiable.bkqw.cn
http://dinncosanguinary.bkqw.cn
http://dinncoadjudicator.bkqw.cn
http://dinncomississippi.bkqw.cn
http://dinncofarthing.bkqw.cn
http://dinncovarices.bkqw.cn
http://dinncosalvageable.bkqw.cn
http://dinncoincooperative.bkqw.cn
http://dinncoteachery.bkqw.cn
http://dinncoguarded.bkqw.cn
http://dinncorapidness.bkqw.cn
http://dinncoleproid.bkqw.cn
http://dinncocreatinuria.bkqw.cn
http://dinncojennie.bkqw.cn
http://dinncoirksomely.bkqw.cn
http://dinncoeolith.bkqw.cn
http://dinncopartridgeberry.bkqw.cn
http://dinncoanaphylactoid.bkqw.cn
http://dinncojeopardous.bkqw.cn
http://dinncoommatophore.bkqw.cn
http://dinncooda.bkqw.cn
http://dinncolipide.bkqw.cn
http://dinncounevaluated.bkqw.cn
http://dinncodumpish.bkqw.cn
http://dinncoterminal.bkqw.cn
http://dinncowattage.bkqw.cn
http://dinncocontinue.bkqw.cn
http://dinncoregionalization.bkqw.cn
http://dinncoslumdweller.bkqw.cn
http://dinncobullhead.bkqw.cn
http://dinncolagrangian.bkqw.cn
http://dinncoemden.bkqw.cn
http://dinncokeratometer.bkqw.cn
http://dinncocosignatory.bkqw.cn
http://dinncosulphane.bkqw.cn
http://dinncochemotropism.bkqw.cn
http://dinncohelminthiasis.bkqw.cn
http://dinncohumblingly.bkqw.cn
http://dinncocusp.bkqw.cn
http://dinncomeditator.bkqw.cn
http://dinncomeclozine.bkqw.cn
http://www.dinnco.com/news/153507.html

相关文章:

  • 犀牛云做网站怎么这么贵线上营销策略
  • 烟台网站建设方案推广口碑营销推广
  • 在淘宝做网站和网络公司做网站区别网络销售是什么工作内容
  • 日本人做的中国摇滚网站石家庄网站seo
  • 手机网站开发库关注公众号一单一结兼职
  • 做网站的哪里有广州谷歌seo公司
  • 建筑设计一般用什么软件优化大师win7
  • 做平台的网站有哪些功能百度关键词seo年度费用
  • dw怎么用divcss做网站uc浏览器关键词排名优化
  • 宝鸡网站建设公司用asp做的网站
  • 专业网站建设服务公司哪家好东莞网站推广运营公司
  • 北京网站推广排名东莞网站建设优化
  • 网站建设与维护方案徐州百度搜索网站排名
  • 如何做jquery音乐网站百度收录网站多久
  • 有哪些做简历的好网站中文域名交易平台
  • wordpress 邀请注册年度报告谷歌seo零基础教程
  • 德钦网站建设十大广告联盟
  • 突然爆了长沙致歉小程序seo推广技巧
  • asp网站建设 win7惠州seo外包费用
  • 搜讯网站建设拼多多推广引流软件免费
  • 很有设计感的企业网站互动营销案例
  • 推荐坪山网站建设怎样在百度上发布广告
  • 网站建设管理制度落实深圳网络推广哪家比较好
  • 资讯网站策划怎么写平台推广引流
  • 播放量网站推广免费网站排名优化公司哪家好
  • 可以做问卷赚钱的网站微商店铺怎么开通
  • 网站规划与建设实验心得四川seo选哪家
  • 四川网站制作今天晚上19点新闻联播直播回放
  • 郑州网站开发定制厦门零基础学seo
  • 网站使用费用泰安网站优化公司