AI开发C语言应用按步走,我的基础开发环境

AI开发C语言应用按步走,我的基础开发环境 我的开发环境介绍1、基本开发环境操作系统是Win11用VMware虚拟了一个Ubuntu26.4所有开发都在虚拟机上进行。songsong-VMware-Virtual-Platform:~$uname-aLinux song-VMware-Virtual-Platform7.0.0-22-generic#22-Ubuntu SMP PREEMPT_DYNAMIC Mon May 25 15:54:34 UTC 2026 x86_64 GNU/LinuxUbuntu桌面环境采用默认的GNOME中文环境Ubuntu安装后配置输入法选择了中文极点五笔86输入法浏览器是系统默认安装的Firefox终端是系统默认安装的GTerminal代码编辑器是Emacs30.2ongsong-VMware-Virtual-Platform:~$ emacs--versionGNU Emacs30.2Development version 67920fe8bccf on master branch;builddate2026-02-06. Copyright(C)2025Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GNU Emacs under the terms of the GNU General Public License. Formoreinformation about these matters, see thefilenamed COPYING.2、开发工具C语言编译器GCC15songsong-VMware-Virtual-Platform:~$ gcc--versiongcc(Ubuntu15.2.0-16ubuntu1)15.2.0 Copyright(C)2025Free Software Foundation, Inc. This isfreesoftware;see thesourceforcopying conditions. There is NO warranty;not evenforMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.C语言调试工具GDB17ongsong-VMware-Virtual-Platform:~$ gdb--versionGNU gdb(Ubuntu17.1-2ubuntu1)17.1Copyright(C)2025Free Software Foundation, Inc. License GPLv3: GNU GPL version3or laterhttp://gnu.org/licenses/gpl.htmlThis isfreesoftware: you arefreeto change and redistribute it. There is NO WARRANTY, to the extent permitted by law.构建工具makeongsong-VMware-Virtual-Platform:~$make--versionGNU Make4.4.1 为 x86_64-pc-linux-gnu 编译 Copyright(C)1988-2023 Free Software Foundation, Inc. License GPLv3: GNU GPL version3or laterhttps://gnu.org/licenses/gpl.htmlThis isfreesoftware: you arefreeto change and redistribute it. There is NO WARRANTY, to the extent permitted by law.内存检测工具valgrindsongsong-VMware-Virtual-Platform:~$ valgrind--versionvalgrind-3.26.0Javascript语言开发工具nodejs与npmsongsong-VMware-Virtual-Platform:~$node--versionv22.22.1 songsong-VMware-Virtual-Platform:~$npm--version9.2.0python语言与工具pipsongsong-VMware-Virtual-Platform:~$ python3--versionPython3.14.4 songsong-VMware-Virtual-Platform:~$ pip3--versionpip25.1.1 from /usr/lib/python3/dist-packages/pip(python3.14)版本控制工具gitsongsong-VMware-Virtual-Platform:~$git--versiongitversion2.53.0网络传输工具curlsongsong-VMware-Virtual-Platform:~$curl--versioncurl8.21.0(x86_64-pc-linux-gnu)libcurl/8.21.0 OpenSSL/4.0.1 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.7 libpsl/0.21.2 libssh2/1.11.0 nghttp2/1.69.0 ngtcp2/1.23.0 nghttp3/1.17.0 mit-krb5/1.20.1 OpenLDAP/2.6.10 Release-Date:2026-06-24 Protocols: dictfileftpftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt mqtts pop3 pop3s rtspscpsftpsmtp smtps telnet tftp ws wss Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTP3 HTTPS-proxy IDN IPv6 Kerberos Largefile libz PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd3、atomcodeatomcode选择linux版本直接下载复制到用户主目录下的atom目录在终端中运行每次运行都自动检测升级songsong-VMware-Virtual-Platform:~/atom$ ./atomcode--versionatomcode5.0.0(unknown)首次运行atomcode自动登录领取AtomCode CodingPlan免费权益运行/webui命令打开浏览器通过WebUI与atomcode沟通选择大模型我选用deepseek-v4-flashplan模式atomcode收集信息制订计划build模式如果计划无误确认执行4、检测系统开发环境注意在WebUI中输入检查一下目前这个系统准备做为开发环境对这就开始了根据你的需求与atomcode对话吧我就是用atomcode配置的emacs来开发C语言和python语言实现代码高亮显示关键字补全等功能5、我的目标用atomcode来构建一个简单的表达式计算器程序名叫calc达到输入表达式程序输出运算结果的功能目标简单便于实现通过这一过程提高理解、学习和使用AI工具的能力后续文章就是calc的构建步骤都是atomcode生成和总结的文字和代码都未改动只通过WebUI或TUI命令行来和atomcode沟通达到构建成型的目的。