关于字符串的知识点
在刚开始选择的codeblocks 安装包不含gcc,于是才有了下面的gcc编译器的配置。
解决的最终方法:
1.下载了如下的安装codeblocks
2.另外下载了gcc
3.对codeblocks环境的配置
1.下载的文件选择
codeblocks-16.01-setup.exe 普通安装包 codeblocks-16.01-setup-nonadmin.exe 没有管理员权限用安装包 codeblocks-16.01-nosetup.zip 非直接安装压缩包(绿色版) codeblocks-16.01mingw-setup.exe 带附加的mingw编译器 codeblocks-16.01mingw-nosetup.zip 带附加的mingw编译器压缩包 codeblocks-16.01mingw_fortran-setup.exe 带mingw+fortran安装包
选择
codeblocks-16.01mingw-setup.exe 带附加的mingw编译器
安装好后测试程序出现如下问题时
"HelloWorld - Debug": The compiler's setup (GNUGCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler. Probably the toolchain path within the compiler optionsis not setup correctly?! (Do you have a compiler installed?) Goto "Settings->Compiler...->Global compilersettings->GNU GCC Compiler->Toolchain executables" and fix thecompiler's setup. Skipping... Nothing to be done (all items are up-to-date).
2.安装gcc
3.配置环境(将mingw-32-g++改为mingw-32-gcc)