473,811 Members | 3,008 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Which compiler for a learner of C?

I own a legit copy of Visual C++ 6.0

Its nice but it is 10 years old and aimed at C++.

Downloaded Bloodshed Dev-C++

Very nice but the default auto-indent woupd break my heart as I depend
on indentation. This is how a loop is formatted by default.

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
int a = 0, b = 7;

for (a = 0; a <= b; ++a)
{
printf("Hello again\n");
}
system("PAUSE") ;
return 0;
}

That } that fails to align as it closes the "for" loop really puts me
off. If anyone knows how to fix this, this looks a fine compiler. Is
it good in the opinion of more experienced C programmers?

Is Visual C++ Express a good compiler?

Is there another for the Win32 platform that is recommended?

Sep 27 '06
46 2217
Rod Pemberton said:
>
"Richard Heathfield" <in*****@invali d.invalidwrote in message
news:Cd******** *************** *******@bt.com. ..
>That does not mean I am claiming it is not conforming. It means I lack
confidence that it is conforming.

Use a Microsoft compiler. They are notorious for non-conformance.
Microsoft's conformance to C90 is actually very good. I have seen a couple
of tiny nits raised here on comp.lang.c, in such dark corners of the
language that I need never fear encountering them in real life.
Just
read the comments by Michal Necasek (lead maintainer for OpenWatcom) on
openwatcom.cont ributors or openwatcom.user s.c_cpp.
Have you a more specific reference?
Or, look at GCC C99 compliance page
I have never claimed that gcc is C99-conforming. Indeed, I have claimed the
opposite many times. I'm not sure what this has to do with anything.
or GCC extensions page. The point that you lack
confidence is rather meaningless when most of the strong competitors to
lcc-win32 fail on conformance...
Show me.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Sep 28 '06 #41
http://www.wxwidgets.org/wiki/index....ET_Setup_Guide

Works perfectly now.

I understand that a compiler does not need replacment as often as a
car. But new cars have air conditioning which makes them very
comfortable.

Sep 29 '06 #42
[snip
These are C++ errors, generated because you're letting the GUI name
your files for you and by default it calls them .cpp.
Spot on Mark. It took me a good 20 minutes of puzzling to realise that
the reason some files were failing to compile was the .cpp extension
which I had lazily let MS use while I was experimenting.

Thanks.

Sep 29 '06 #43
On Thu, 28 Sep 2006 17:34:29 -0400, in comp.lang.c , "Rod Pemberton"
<do*********@bi tfoad.cmmwrote:
>
"Richard Heathfield" <in*****@invali d.invalidwrote in message
news:Cd******* *************** ********@bt.com ...
>That does not mean I am claiming it is not conforming. It means I lack
confidence that it is conforming.

Use a Microsoft compiler. They are notorious for non-conformance.
This isn't true. MS complies pretty well with C89/90 if you turn off
their extensions.

--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Sep 29 '06 #44
"pkirk25" <pa*****@kirks. netwrote in
>
Works perfectly now.

I understand that a compiler does not need replacment as often as a
car. But new cars have air conditioning which makes them very
comfortable.
The car analogy was just a joke.
Some women change clothes or hairstyles or whatever with a given frequency,
and get very self-righteous about maintaining standards. Of course most
people can't afford to do that with a car, though a few can.

Compilers work until the hardware or the software they are meant to work
with becomes obsolete.
--
www.personal.leeds.ac.uk/~bgy1mm
freeware games to download.
Sep 30 '06 #45
"Jack Klein" <ja*******@spam cop.netwrote in message
news:p4******** *************** *********@4ax.c om...
On Wed, 27 Sep 2006 23:00:49 +0000, Richard Heathfield
<in*****@invali d.invalidwrote in comp.lang.c:
Just what are your issues with Jacob and his compiler?
Ummm, his web site has a link that says "Click me". But it doesn't do
anything.

Why would it say click me and then not do anything...?

I mean, that's just mean...

--
Mabden
Oct 2 '06 #46
"pkirk25" <pa*****@kirks. netwrote:
Downloaded Bloodshed Dev-C++

Very nice but the default auto-indent woupd break my heart as I depend
on indentation.
You can turn that off, you know.

Richard
Oct 3 '06 #47

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
2180
by: larry | last post by:
I was just looking at a demo training that mindleaders has on .net training: http://www.mindleaders.com/products/democourse3.asp And I don't believe this is correct or at least is misleading to me: "The search for an easy, productive, and very powerful programming language led to the birth of Visual C#. Visual C# incorporates the best features of Visual C++ and Visual Basic. Visual C# enables you to
0
273
by: Simon | last post by:
I've had enough of C# Learner. I've had enough of his complaining about using parentheses for every 'if' statement. I've had enough of his complaining about having to mix assignment of return value of methods with flow control, making writing code that's both readable and consistent, impossible. C# Learner is hindered by his complainging about C# being hindered by its predecessors and the Microsoft marketing department. If C# Learner...
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10651
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10393
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10136
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9208
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7671
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6893
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3871
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3020
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.