文化旅游工作领导小组的职责是什么

尚莱雅旅游网 0 2024-12-13 00:25

一、文化旅游工作领导小组的职责是什么

文化和旅游工作领导小组的主要职举哗责是,贯彻落实国家和省、市关于文化旅游业发展的重大战略、改革部署、发展规划、政策措施和工作要求,统筹全市文化旅游业发展;统筹推进全租岁域旅游示范区创建工作,加快全市文化旅游深度融合发展;协调解决文化旅游发展中的重大问题;督促检查文化旅游业重大战正型行略、规划和政策的落实情况、年度目标任务完成及重大项目落实情况。

二、输入若干个正整数(输入-1为结束标志),要求按输入数据的逆序建立一个链表并输出。提示?

#include<bits/stdc++.h>

using namespace std;

typedef struct st{

int data;

struct st *next;

};

struct st *create()//前插法建表

{

struct st *head=NULL,*q,*p;

head=(struct st*)malloc(sizeof(struct st));

head->next=NULL;

int n,k=0,a[100]={0};

do

{

scanf(%d,&n);

if(n!=-1)

a[k++]=n;

}while(n!=-1);//输出若干个数,以-1结束

for(int i=0;i<k;i++)

{//前插建表 

q=(struct st*)malloc(sizeof(struct st));

q->data=a[i];

q->next=head->next;

head->next=q;

}

return head;//返回头结点地址 

}

void input(struct st *L)

{

struct st *head=L->next;//头结点没有储存值,从第2个结点开始遍历 

while(head)

{

printf(%d ,head->data);

head=head->next;

}

int main()

{

struct st *L=NULL;

L=create();//前插建表建表 

input(L);//遍历链表 

return 0;

}

三、设计要求:创建抽象类、定义虚函数,运用继承,实现多态 菜单列表选项:求下列实体的表面积和体积 1. 球

#include <iostream>

using namespace std;

#define PI 3.14

class Shape

{

public:

virtual double S(double) = 0;

virtual double V(double) = 0;

virtual double S(double, double) = 0;

virtual double V(double, double) = 0;

virtual double S(double, double, double) = 0;

virtual double V(double, double, double) = 0;

virtual ~Shape(){}

};

class Ball : public Shape

{

public:

virtual double S(double r)

{

return (4 * PI * r * r);

}

virtual double V(double r)

{

return (4 / (double)3 * PI * r * r * r);

}

virtual double S(double, double){return 0;}

virtual double V(double, double){return 0;}

virtual double S(double, double, double){return 0;}

virtual double V(double, double, double){return 0;}

};

class Cube : public Shape

{

public:

virtual double S(double a, double b, double c)

{

return 2 * (a * b + b * c + a * c);

}

virtual double V(double a, double b, double c)

{

return (a * b * c);

}

virtual double S(double){return 0;}

virtual double V(double){return 0;}

virtual double S(double, double){return 0;}

virtual double V(double, double){return 0;}

};

class Column : public Shape

{

public:

virtual double S(double r, double h)

{

return (2 * PI * r * r + 2 * PI * r * h);

}

virtual double V(double r, double h)

{

return (PI * r * r * h);

}

virtual double S(double){return 0;}

virtual double V(double){return 0;}

virtual double S(double, double, double){return 0;}

virtual double V(double, double, double){return 0;}

};

class Taper : public Shape

{

public:

virtual double S(double r, double R)

{

return (PI * r * r + PI * r * R);

}

virtual double V(double r, double h)

{

return (PI * r * r * h / (double)3);

}

virtual double S(double){return 0;}

virtual double V(double){return 0;}

virtual double S(double, double, double){return 0;}

virtual double V(double, double, double){return 0;}

};

void main()

{

Ball ball;

Cube cube;

Column column;

Taper taper;

double r, a, b, c, h, R;

int n = 0;

cout << 请选择: << endl;

cout << 1.球 << endl;

cout << 2.立方体 << endl;

cout << 3.圆柱 << endl;

cout << 4.圆锥 << endl;

cout << 5.退出 << endl;

cout << 请输入:;

while (n != 5)

{

cin >> n;

switch(n)

{

case 1:

cout << 球的半径:;

cin >> r;

cout << 球的表面积: << ball.S(r) << endl;

cout << 球的体积: << ball.V(r) << endl;

cout << 请输入你想计算的形状:;

break;

case 2:

cout << 立方体的长,宽,高:;

cin >> a >> b >> c;

cout << 立方体的表面积: << cube.S(a, b, c) << endl;

cout << 立方体的体积: << cube.V(a, b, c) << endl;

cout << 请输入你想计算的形状:;

break;

case 3:

cout << 圆柱的半径,高:;

cin >> r >> h;

cout << 圆柱的表面积: << column.S(r, h) << endl;

cout << 圆柱的体积: << column.V(r, h) << endl;

cout << 请输入你想计算的形状:;

break;

case 4:

cout << 圆锥的半径,侧面半径,高:;

cin >> r >> R >> h;

cout << 圆锥的表面积: << column.S(r, R) << endl;

cout << 圆锥的体积: << column.V(r, h) << endl;

cout << 请输入你想计算的形状:;

break;

case 5:

break;

default:

cout << 输入错误!请重新输入:;

}

}

}

上一篇:桂林兴安有什么好玩的景点
下一篇:北京莲花山滑雪场的雪场票价
相关文章