建议在Linux中使用c和c ++ [英] Suggestion using c and c++ in Linux
本文介绍了建议在Linux中使用c和c ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,我是一个Windows用户,我在Ubuntu中使用c和c ++时遇到问题我不知道应该使用什么编译器。所以请帮帮我.. :)
谢谢。
解决方案
看看: http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program。 html [ ^ ]
你可以使用g ++
通常它如果没有在终端中输入,则预先安装
sudo apt-get install g ++
然后在该类型之后
g ++< file_name>
然后运行程序使用
./ a.out
Hello, I am a windows user and I have a problem using c and c++ in Ubuntu I don''t know what compiler I should use. So please Help me..:)
Thank You.
解决方案
Take a look : http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html[^]
you can use g++
usually it''s pre installed if not type this in terminal
sudo apt-get install g++
then after that type
g++ <file_name>
then to run the program use
./a.out
这篇关于建议在Linux中使用c和c ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文