马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 胡鸣谦 于 2020-9-16 18:01 编辑
Clion(c++/c) 1.安装Clion clion是一个跨平台的c/c++ IDE。相比于vs2019,它是一个更轻量级的IDE,而且本人认为它的智能提示要比vs2019更好。所以可以用它来代替vs2019。 下载安装包https://download.jetbrains.com/cpp/CLion-2020.1.1.exe?_ga=2.267653006.1263040172.1598591347-1407970437.1598329969 因为clion不适用于打开文件,所以就这样选吧! 默认 漫长的等待。。。。。。 安装好之后会出现上图,点Finish即可,然后就可以使用啦! 先打开链接https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/sjlj/x86_64-8.1.0-release-posix-sjlj-rt_v6-rev0.7z/download下载mingw的压缩包,解压。把里面有一个叫mingw64的文件夹,把这个文件夹放到没有中文的文件夹里面。不然之后配置的时候会出错。
3.配置Clion
这一步可是至关重要的!不然你的Clion就是个空壳
运行Clion会出现下图
因为Clion是收费软件,所以要激活。
把
JMFL04QVQA-eyJsaWNlbnNlSWQiOiJKTUZMMDRRVlFBIiwibGljZW5zZWVOYW1lIjoi5rC45LmF5r+A5rS7IGlkZWEubWVkZW1pbmcuY29tIiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IiIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb2RlIjoiSUkiLCJwYWlkVXBUbyI6IjIwMjAtMTAtMDMifSx7ImNvZGUiOiJBQyIsInBhaWRVcFRvIjoiMjAyMC0xMC0wMyJ9LHsiY29kZSI6IkRQTiIsInBhaWRVcFRvIjoiMjAyMC0xMC0wMyJ9LHsiY29kZSI6IlJTQyIsInBhaWRVcFRvIjoiMjAyMC0xMC0wMyJ9LHsiY29kZSI6IlBTIiwicGFpZFVwVG8iOiIyMDIwLTE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L9IF5n3wJOgkPojMy6jetQA5Ogc8Sm7RG6vg1yow==
复制到Activation code里,点蓝色按钮就能激活啦!
这就是Clion的启动界面
新建一个项目,选项默认就行。 1.安装汉化插件
点击file>setting>Plugins>搜索Chinese>安装第一个插件>重启Clion 是不是发现变成中文啦!? 这就是汉化插件!2.配置mingw
mingw就是在Windows上的g++和gcc。这可是个好东西
前面已经下载了mingw,现在就只需要让Clion知道你安装了这个包。
第一步:打开设置
找到这个页面
点加号
选择第一个MinGW
在第一项里输入你的mingw路径
剩下的会自动检测
点确定
如果出现以下界面,说明一切正常
3.运行测试代码
Clion已经给出了测试代码,这个代码就是最简单的输出hello world的代码
点击右上角的加号,运行代码
出现以下界面为正常
4.尾声
就此Clion就安装就配置好了。谢谢大家!
|