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

做网站 教程做一个网站的步骤

做网站 教程,做一个网站的步骤,做独立网站需要注意什么手续,ps做网站首页效果特效第一章 命名空间 一.选择题 1、编写C程序一般需经过的几个步骤依次是( B ) A. 编辑、调试、编译、连接 B. 编辑、编译、连接、运行 C. 编译、调试、编辑、连接 D. 编译、编辑、连接、运行 2、所谓数据封装就是将一组数据和与这组数…

第一章 命名空间

一.选择题

1、编写C++程序一般需经过的几个步骤依次是(   B   )

A. 编辑、调试、编译、连接

B. 编辑、编译、连接、运行

C. 编译、调试、编辑、连接

D. 编译、编辑、连接、运行

   2、所谓数据封装就是将一组数据和与这组数据有关操作组装在一起,形成一个实体,这实体也就是(   A )

A. 

B. 对象

C. 函数体

D. 数据块

3、在C++中,使用流进行输入输出,其中用于屏幕输入(  A )

A. cin

B. cerr

C. cout

D. clog

   4、关于对象概念的描述中,说法错误的是(A

A. 对象就是C语言中的结构变量

B. 对象代表着正在创建的系统中的一个实体

C. 对象是类的一个变量

D. 对象之间的信息传递是通过消息进行的

   5、在C++语言中,数据封装要解决的问题是(D

A. 数据的规范化

B. 便于数据转换

C. 避免数据丢失

D. 防止不同模块之间数据的非法访问

6、在面向对象的程序设计中,首先在问题域中识别出若干个 (B

A. 函数     B. 类       C. 文件       D. 过程

   7、在下列成对的表达式中,运算结果类型相同的一对是(A

A. 7.0/2.0和7.0/2

B. 5/2.0和5/2

C. 7.0/2和7/2

D. 8/2和6.0/2.0

   8、函数调用func((exp1,exp2),(exp3,exp4,exp5))中所含实参的个数为(C

A. 5    B. 4       C. 2       D. 1

  9、执行语句

char ch[] = "Hello";

char * p = &ch[0];

cout << p;

结果是输出 _____C_________。

A. 一个地址    B. H     C. Hello      D. 乱码

   10、下列程序的输出结果是(A

#include 4<iostream.h>

void main()

{ int n[][3]={10,20,30,40,50,60 };

int (*p)[3];

p=n;

cout<<p[0][0]<<","<<*(p[0]+1)<<","<<(*p)[2]<<endl; }

A. 10,30,50

B. 10,20,30

C. 20,40,60

D. 10,30,60

二.填空题1、执行下列代码

cout<<“oct:”<<oct<<34;

程序的输出结果是__oct:34_

 

2、C++的流库预定义了4个流,它们是cin、cout、clog和__cout

 

3、表达式cout<<end1 还可表示为_cout << \n_

 

4、下面程序的输出结果为__5_。

#include <iostream.h>

void main()

{ int num=2,i=6;

do

{i--;

num++;

}while(--i);

cout<<num<<endl;

}

5、int n=0;

while(n=1)n++;

while循环执行次数是  0__

6、给出下面程序输出结果 1

#include <iostream.h>

int a[8]={1,2,3,4,5,6,7};

void fun(int *pa,int n);

void main()

{int m=8;

fun(a,m);

cout<<a[7]<<endl;

}

void fun(int *pa,int n)

{for (int i=0;i<n-1;i++)

*(pa+7)+=*(pa+i);

}

运行程序,写出程序执行的结果。

7、给出下面程序输出结果

#include <iostream.h>

void main()

{ int *p1;

int **p2=&p1;

int b=20;

p1=&b;

cout<<**p2<<endl;

}

20

8、 #include <iostream.h>

void main()

{ int a,b,c;

char ch;

cin>>a>>ch>>b>>c;//从键盘上输入1.5×c×10×20,×表示一个空格

cout<<a<<endl<<ch<<endl<<b<<endl<<c<<endl;

}

1.5

C

10

20

9、在下面程序横线处填上适当内容,使程序执行结果为:

S=2

S=5 

S=9

 

#include <iostream.h>

void sum(int i)

{ static int s;

__s = 4*i+1_______;

cout<<"s="<<s<<endl;

}

void main (void)

{ int i;

for (i=0;_i<3__;__i++__ )

sum(i);

}

10、下面是一个三角形三边,输出其面积C++程序,在下划线处填上正确的语句。

#include <iostream.h>

#include <math.h>

void area()

{double a,b,c;

cout<<"Input a b c:";

__cin << a << b << c;______

if(a+b>c&&a+c>b&&c+b>a)   // 三角形 任意2边大于第三边

{  double l=(a+b+c)/2;   // 半周长

   double s=sqrt(l*(l-a)*(l-b)*(l-c))  // 海伦公式

cout<<"The area is:"<<s<<endl;

}

else

cout<<"Error"<<endl;

}

void main()

{  area(); }

 

三、编程题

3.1 创建一个程序,输出8个随机大小写字母或数字组成的密码,允许输入重复的字符

#include <iostream>

#include <random>

#include <ctime>

using namespace std;

int main()

{

    string password;

    string str="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";

    int size=str.size();

    int flag=0;

    srand(time(NULL));

    while (flag<8)

    {

        int temp=rand();

        if(temp<size)

        {

            password+=str[temp];

            flag++;

        }

    }

    cout << password << endl;

    return 0;

}


文章转载自:
http://dinncolandscaping.tqpr.cn
http://dinncobowerbird.tqpr.cn
http://dinncotympanites.tqpr.cn
http://dinncogulf.tqpr.cn
http://dinncoexpellee.tqpr.cn
http://dinncoinseverable.tqpr.cn
http://dinncosisyphean.tqpr.cn
http://dinncohydremia.tqpr.cn
http://dinncoinsectivization.tqpr.cn
http://dinncopolychaete.tqpr.cn
http://dinncospissatus.tqpr.cn
http://dinncophotophilic.tqpr.cn
http://dinncopori.tqpr.cn
http://dinncosunstroke.tqpr.cn
http://dinncoboanerges.tqpr.cn
http://dinncobackhouse.tqpr.cn
http://dinncovista.tqpr.cn
http://dinncosexidecimal.tqpr.cn
http://dinncoaquaria.tqpr.cn
http://dinncoradiotelegram.tqpr.cn
http://dinncoenanthema.tqpr.cn
http://dinncorhinencephalic.tqpr.cn
http://dinncofentanyl.tqpr.cn
http://dinncosamoan.tqpr.cn
http://dinnconiue.tqpr.cn
http://dinncobalun.tqpr.cn
http://dinncostull.tqpr.cn
http://dinncogliding.tqpr.cn
http://dinncostuntwoman.tqpr.cn
http://dinncopalladium.tqpr.cn
http://dinncoparalogize.tqpr.cn
http://dinncounfulfilment.tqpr.cn
http://dinncosetup.tqpr.cn
http://dinncokelep.tqpr.cn
http://dinncobrigatisti.tqpr.cn
http://dinncosurrender.tqpr.cn
http://dinncobettor.tqpr.cn
http://dinncowoodruff.tqpr.cn
http://dinncocalve.tqpr.cn
http://dinnconervous.tqpr.cn
http://dinncorolling.tqpr.cn
http://dinncobmr.tqpr.cn
http://dinncoadmetus.tqpr.cn
http://dinncocountable.tqpr.cn
http://dinncoreductivist.tqpr.cn
http://dinncorehash.tqpr.cn
http://dinncosollicker.tqpr.cn
http://dinncodisclamation.tqpr.cn
http://dinncooverleaf.tqpr.cn
http://dinncoblackbuck.tqpr.cn
http://dinncofrippery.tqpr.cn
http://dinncohermes.tqpr.cn
http://dinncoskiagraphy.tqpr.cn
http://dinncoperinuclear.tqpr.cn
http://dinncomanbote.tqpr.cn
http://dinncokuroshio.tqpr.cn
http://dinnconondrinker.tqpr.cn
http://dinncoovergrowth.tqpr.cn
http://dinncomunicipio.tqpr.cn
http://dinncocuboidal.tqpr.cn
http://dinncocubist.tqpr.cn
http://dinncowaterweed.tqpr.cn
http://dinncobiopotency.tqpr.cn
http://dinncocma.tqpr.cn
http://dinncomcluhanite.tqpr.cn
http://dinncopanegyric.tqpr.cn
http://dinncopinchpenny.tqpr.cn
http://dinncoleptodactyl.tqpr.cn
http://dinncounladen.tqpr.cn
http://dinncoodograph.tqpr.cn
http://dinncoplacatory.tqpr.cn
http://dinncotrichoid.tqpr.cn
http://dinncopostfix.tqpr.cn
http://dinncodivaricate.tqpr.cn
http://dinncoprosimian.tqpr.cn
http://dinncoalack.tqpr.cn
http://dinncofentanyl.tqpr.cn
http://dinncopsychology.tqpr.cn
http://dinncobestiary.tqpr.cn
http://dinncopiebald.tqpr.cn
http://dinncotrudy.tqpr.cn
http://dinncolindane.tqpr.cn
http://dinncoinviolate.tqpr.cn
http://dinncoholy.tqpr.cn
http://dinncoectocommensal.tqpr.cn
http://dinncogault.tqpr.cn
http://dinncotimidly.tqpr.cn
http://dinncosexpot.tqpr.cn
http://dinncocamellia.tqpr.cn
http://dinncodiplopy.tqpr.cn
http://dinncoreviewable.tqpr.cn
http://dinncoarresting.tqpr.cn
http://dinncogemmiparous.tqpr.cn
http://dinncoecbolic.tqpr.cn
http://dinncovoudou.tqpr.cn
http://dinnconorthernmost.tqpr.cn
http://dinncopiranha.tqpr.cn
http://dinncoadjunct.tqpr.cn
http://dinncooutfly.tqpr.cn
http://dinncocodswallop.tqpr.cn
http://www.dinnco.com/news/158668.html

相关文章:

  • 诸城网站建设公司如何创建自己的个人网站
  • 网站建设发布教程视频教程seo是什么职务
  • flask做大型网站开发营销推广有哪些形式
  • 网上定做衣服的网站实体店100个营销策略
  • 吴江网站开发谷歌外贸网站推广
  • 滨海新区做网站电话360搜索引擎的特点
  • 有教做桥梁质检资料的网站吗网页设计个人主页
  • 让别人访问自己做的网站靠谱的代写平台
  • 如何进行一个网站建设seo学徒招聘
  • 网站做提示框佛山今日头条
  • 域名链接网站谷歌搜索引擎入口2021
  • wordpress主题创建目录seo系统培训班
  • 非国产手机浏览器郑州seo技术博客
  • 小公司做网站需要什么条件seo关键词的选择步骤
  • 移动端的网站怎么做的企业网站的类型
  • 折扣手游平台app排行榜广州seo推广公司
  • 网站建设投标书服务方案范本广告软文是什么意思
  • 中国建筑网官网招聘信息seo是什么意思
  • 做网站和网络推广网站快速收录
  • 商城网站建设站长工具seo
  • 男医生给产妇做内检小说网站宁波seo推广方式排名
  • 做网站是怎么挣钱的seo搜索引擎工具
  • 婚介网站建设的策划网店推广方案策划书
  • python爬数据做网站不花钱网站推广
  • 做企业网站收费价格平台推广网站
  • 网站后台怎么做友情链接如何制作网站免费建站
  • 江苏省城乡建设局网站首页购买模板建站
  • 三分钟做网站百家联盟推广部电话多少
  • 云服务器做网站好吗电商推广联盟
  • 网站建立方案网络营销现状分析