网站首页 站内搜索

搜索结果

查询Tags标签: cout,共有 1241条记录
  • 实验二 实验2 数组、指针与C++标准库

    实验任务5 "info.hpp"#ifndef INFO_HPP #define INFO_HPP#include <bits/stdc++.h> using namespace std;class info {private:string name;string contact;string city;int n;public:info(){}info(string a = "", string b = "", st…

    2021/10/27 17:39:30 人评论 次浏览
  • 实验二 实验2 数组、指针与C++标准库

    实验任务5 "info.hpp"#ifndef INFO_HPP #define INFO_HPP#include <bits/stdc++.h> using namespace std;class info {private:string name;string contact;string city;int n;public:info(){}info(string a = "", string b = "", st…

    2021/10/27 17:39:30 人评论 次浏览
  • C++学习笔记(Day17 关联容器分类和的基本功能 )

    关联容器的特点和接口 关联容器的特点 每个关联容器都有一个键(key)可以根据键高效地查找元素 接口 插入:insert删除:erase查找:find定界:lower_bound、upper_bound、equal_range计数:count 关联容器概念图四种关联容器 单重关联容器(set和map) 键值是唯一的,一个键…

    2021/10/27 17:12:07 人评论 次浏览
  • C++学习笔记(Day17 关联容器分类和的基本功能 )

    关联容器的特点和接口 关联容器的特点 每个关联容器都有一个键(key)可以根据键高效地查找元素 接口 插入:insert删除:erase查找:find定界:lower_bound、upper_bound、equal_range计数:count 关联容器概念图四种关联容器 单重关联容器(set和map) 键值是唯一的,一个键…

    2021/10/27 17:12:07 人评论 次浏览
  • 实验一 类与对象

    Complex.hpp:1 #ifndef COMPLEX_HPP2 #define EMPLOYEE_HPP3 #include<iostream>4 #include<math.h>5 using namespace std;6 7 class Complex8 {9 friend Complex add(const Complex & c1, const Complex & c2); 10 friend bool is_equal(co…

    2021/10/26 23:39:56 人评论 次浏览
  • 实验一 类与对象

    Complex.hpp:1 #ifndef COMPLEX_HPP2 #define EMPLOYEE_HPP3 #include<iostream>4 #include<math.h>5 using namespace std;6 7 class Complex8 {9 friend Complex add(const Complex & c1, const Complex & c2); 10 friend bool is_equal(co…

    2021/10/26 23:39:56 人评论 次浏览
  • C++ GDAL添加shpfile字段

    #include <iostream> #include <ogrsf_frmts.h> #include <ctime> using namespace std;int main() {//支持中文路径CPLSetConfigOption("GDAL_FILENAME_IS_UTF8", "NO");//支持属相表中文字符CPLGetConfigOption("SHAPE_ENCO…

    2021/10/26 20:40:11 人评论 次浏览
  • C++ GDAL添加shpfile字段

    #include <iostream> #include <ogrsf_frmts.h> #include <ctime> using namespace std;int main() {//支持中文路径CPLSetConfigOption("GDAL_FILENAME_IS_UTF8", "NO");//支持属相表中文字符CPLGetConfigOption("SHAPE_ENCO…

    2021/10/26 20:40:11 人评论 次浏览
  • 计算机二级C++试题

    一、选择题((1)~(35)每小题2分,共70分) 下列各题A)、B)、C)、D)四个选项中,只有一个选项是正确的,请将正确选项涂写在答题卡相应位置上,答在试卷上不得分。 (1)下列选项中不符合良好程序设计风格的是 A)源程序要文档化 B)数据说明的次序要规范化 C)避…

    2021/10/26 20:39:39 人评论 次浏览
  • 计算机二级C++试题

    一、选择题((1)~(35)每小题2分,共70分) 下列各题A)、B)、C)、D)四个选项中,只有一个选项是正确的,请将正确选项涂写在答题卡相应位置上,答在试卷上不得分。 (1)下列选项中不符合良好程序设计风格的是 A)源程序要文档化 B)数据说明的次序要规范化 C)避…

    2021/10/26 20:39:39 人评论 次浏览
  • C++求最大公约数,检查回文,输出素数

    #include <iostream> using namespace std;int main(int argc, const char * argv[]) {int number1;int number2;cout<<"第一个数"<<endl;cin>>number1;cout<<"第二个数"<<endl;cin>>number2;int k = 1;in…

    2021/10/26 12:40:35 人评论 次浏览
  • C++求最大公约数,检查回文,输出素数

    #include <iostream> using namespace std;int main(int argc, const char * argv[]) {int number1;int number2;cout<<"第一个数"<<endl;cin>>number1;cout<<"第二个数"<<endl;cin>>number2;int k = 1;in…

    2021/10/26 12:40:35 人评论 次浏览
  • c++ 类相互引用

    类A和类B相互引用 文件 A.h #ifndef HEAD_A#define HEAD_A​#include"B.h"class B;​class A{private: /* data */​public: A(/* args */); ~A();​ B* b; const char* sayYes();};​​#endif 文件 A.cpp ​#include"A.h"​A::A(/* args *…

    2021/10/26 11:10:20 人评论 次浏览
  • c++ 类相互引用

    类A和类B相互引用 文件 A.h #ifndef HEAD_A#define HEAD_A​#include"B.h"class B;​class A{private: /* data */​public: A(/* args */); ~A();​ B* b; const char* sayYes();};​​#endif 文件 A.cpp ​#include"A.h"​A::A(/* args *…

    2021/10/26 11:10:20 人评论 次浏览
  • C++多线程编程第九讲--future其他成员函数、shared_future、atomic

    //(1)std::future的其他成员函数#include<iostream> #include<mutex> #include<thread> #include<future>using namespace std;int my_thread() {cout << "my_thread start... " << "thread id = " << th…

    2021/10/26 9:10:21 人评论 次浏览
扫一扫关注最新编程教程