什么是C语言初学者的好编译器? [英] What are good compilers for a beginner in C?

查看:108
本文介绍了什么是C语言初学者的好编译器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在尝试学习C编程,但我的编译器存在问题。我使用Dev ++但我无法编译。我收到此错误消息,说g ++不起作用。你能帮助我吗?或推荐我另一个IDE,免费或价格?请,我真的很担心这个。

Hello, I'm trying to learn C programming but I have an issues with my compiler. Im using Dev++ but I cant compile. I get this error message saying that g++ is not working. Can you help me? Or recommend me another IDE, free or with a price? Please, Im really worried about this.

推荐答案

Visual Studio Express?

https://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx [< a href =https://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx\"target =_ blanktitle =New Window> ^ ]



还有Quincy。

http://www.codecutter.net/tools/quincy/ [ ^ ]



我也使用你的Borland C / C ++免费工具和MinGW。





你不太可能找到一个C编译器也不做C ++。
Visual Studio Express?
https://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx[^]

There is also Quincy.
http://www.codecutter.net/tools/quincy/[^]

I also use ye olde Borland C/C++ Free tools and MinGW.


You're unlikely to find a C compiler that doesn't also do C++.


不,你的编译器没有问题。或者,更准确地说,这是不太可能的。 g ++是一个不错的编译器,但它适用于C ++,而不是C;对于C,你运行gcc。请参阅: http://en.wikipedia.org/wiki/GNU_Compiler_Collection [ ^ ]。



很有可能,你的问题不是编译器,而是你的代码,很可能是你对你正在做的事情的理解。



GNU,微软,英特尔编译器对你来说应该足够好了。你没有问过IDE,只提到了Dev +(Dev-C ++?),但这不是全部。这是一个完全不同的故事。







关于你的代码:



这是语法错误:

No, you don't have issues with your compiler. Or, more exactly, this is very unlikely. g++ is a decent compiler, but it's for C++, not C; for C, you run gcc. Please see: http://en.wikipedia.org/wiki/GNU_Compiler_Collection[^].

Chances are, your problem is not a compiler, but your code, and, very likely, your understanding of what you are doing.

GNU, Microsoft, Intel compilers should be good enough for you. And you did not ask about IDE, only mentioned Dev+ (Dev-C++?), but this is not all. This is a whole different story.



About your code:

This is the syntax error:
scanf(" %d". &year1);



应该是:


Should be:

scanf(" %d", &year1);



此外,声明


Besides, declaration

int year1, year2;

在函数之外是没有意义的。



-SA

outside the function is quite pointless.

—SA


要仅为普通C开发,最好的解决方案是 PellesC [ ^ ],一个用于32/64位开发的完整套件,包括用于创建/编辑源和资源的IDE。该套件包括编译器和汇编程序MASM兼容。资源编辑器能够处理几乎所有资源类型:对话框,图像,图标,清单,xtml等。一个非常小,高效且快速的编译套件。

还有一个论坛 [ ^ ]您可以在其中找到贡献部分中的源和ADDINS部分中的许多IDE扩展。
To develop only for plain C the best solution is PellesC[^], a full suite for 32/64bits development, including an IDE to create/edit sources and resources. The suite includes a compiler and an assembler MASM compatible. The resource editor is able to handle almost all resource types: dialogs, images, icons, manifest, xtml, etc. A really small, efficent and fast compiling suite.
There is also a forum[^] where you'll find sources in contributions section and many IDE extensions in ADDINS section.


这篇关于什么是C语言初学者的好编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆