# clion_cpp **Repository Path**: hsjjsh123/clion_cpp ## Basic Information - **Project Name**: clion_cpp - **Description**: 我的c++学习 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-21 - **Last Updated**: 2024-07-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # clion_cpp #### 介绍 我的c++学习 - 使用的编译器:Windows下minGW,linux(centos7)gcc++ - 流行的编译工具cmake - IDEA clion #### class 复制构造函数 重载赋值运算符 - (每个类编写时候值得三思需不需要重写这两个) #### 中文输出 ```shell vim /etc/locale.conf #LANG=en_US.UTF-8 LANG="zh_CN.UTF-8" source /etc/locale.conf ``` #### 安装cmake ```shell #下载Cmake wget https://cmake.org/files/v3.22/cmake-3.22.1.tar.gz #解压Cmake tar xvf cmake-3.22.1.tar.gz && cd cmake-3.22.1/ #编译安装cmake #yum install -y openssl openssl-devel ./bootstrap gmake gmake install #查看编译后的cmake版本 /usr/local/bin/cmake --version #移除原来的cmake版本 yum remove cmake -y #新建软连接 ln -s /usr/local/bin/cmake /usr/bin/ #终端查看版本 cmake --version #出现版本表示成功!cmake编译完成 [root@wpuj3zui5est1ifj-0002 cmake-3.22.1]# cmake --version cmake version 3.22.1 CMake suite maintained and supported by Kitware (kitware.com/cmake). ``` #### 编译 ```shell mkdir build && cd build cmake .. make ``` #### 运行 ```shell ./clion_cpp ```