新しいソフトウェア使用:codeblocks(プログラムのダウンロード、構成、変数の表示方法)
3352 ワード
実行するためにhttps://leetcode-cn.com/explore/interview/card/top-interview-questions-easy/1/array/21/上の手順です.
このためにコンパイラをダウンロードしました.
次のようになります.
公式サイトのダウンロード:http://www.codeblocks.org/downloads/26
インストールされていないバージョンをダウンロードします.
開いた画面は次のとおりです.
問題:
ERROR: You need to specify a debugger program in the debuggers's settings. (For MinGW compilers, it's 'gdb.exe' (without the quotes))
(For MSVC compilers, it's 'cdb.exe' (without the quotes))
Web検索の構成:
1:https://stackoverflow.com/questions/21083560/how-do-you-specify-a-debugger-program-in-codeblocks-12-11/33289596
整理しましたが、1回しか実行できません.
解決の参考:http://tieba.baidu.com/p/3491019377
インタフェースの設定:
A:
B:
注意:gdb.32
例:
2、公式参考のインストールチュートリアル:
http://wiki.codeblocks.org/index.php?title=MinGW_installation#TDM-GCC
上で実行したコード:
#include #include int array[10]={0,0,1,1,1,2,2,3,3,4}; int size=10; int j=0; int main() { for (int i=0;i { while (array[i] == array[i+1]) { i++; } array[j++] = array[i]; i--; } return j; printf("Hello world!"); return 0;
}
デバッグが完了したインタフェースを実行します.
リファレンスのデバッグ方法:http://www.docin.com/p-894823578.html
完了!
次のCコードを使用します.
このためにコンパイラをダウンロードしました.
次のようになります.
公式サイトのダウンロード:http://www.codeblocks.org/downloads/26
インストールされていないバージョンをダウンロードします.
![](https://s1.md5.ltd/image/60a3b87261de5b5f95e734efbf34d942.jpg)
開いた画面は次のとおりです.
![新的软件使用:codeblocks(下载、配置以及如何调试一个程序,查看变量)_第1张图片](https://s1.md5.ltd/image/cb58ea2371fad1a7df5276fca7c0e08f.jpg)
問題:
ERROR: You need to specify a debugger program in the debuggers's settings. (For MinGW compilers, it's 'gdb.exe' (without the quotes))
(For MSVC compilers, it's 'cdb.exe' (without the quotes))
Web検索の構成:
1:https://stackoverflow.com/questions/21083560/how-do-you-specify-a-debugger-program-in-codeblocks-12-11/33289596
整理しましたが、1回しか実行できません.
解決の参考:http://tieba.baidu.com/p/3491019377
インタフェースの設定:
A:
![新的软件使用:codeblocks(下载、配置以及如何调试一个程序,查看变量)_第2张图片](https://s1.md5.ltd/image/f3051436d4e1bc43aec8ef63cb68ec58.jpg)
B:
![新的软件使用:codeblocks(下载、配置以及如何调试一个程序,查看变量)_第3张图片](https://s1.md5.ltd/image/9d19f020898026ffda27573a8cced2a7.png)
注意:gdb.32
例:
![新的软件使用:codeblocks(下载、配置以及如何调试一个程序,查看变量)_第4张图片](https://s1.md5.ltd/image/edeb8f088238c83067eaa72dc8b401b2.png)
2、公式参考のインストールチュートリアル:
http://wiki.codeblocks.org/index.php?title=MinGW_installation#TDM-GCC
上で実行したコード:
#include #include int array[10]={0,0,1,1,1,2,2,3,3,4}; int size=10; int j=0; int main() { for (int i=0;i { while (array[i] == array[i+1]) { i++; } array[j++] = array[i]; i--; } return j; printf("Hello world!"); return 0;
}
デバッグが完了したインタフェースを実行します.
![新的软件使用:codeblocks(下载、配置以及如何调试一个程序,查看变量)_第5张图片](https://s1.md5.ltd/image/916c933b174c3662528f5227a4235f2b.jpg)
リファレンスのデバッグ方法:http://www.docin.com/p-894823578.html
完了!
次のCコードを使用します.
#include
#include
int array[10]={0,0,1,1,1,2,2,3,3,4};
int size=10;
int j=0;
int main()
{
for(int i=0;i