I want to learn C
I have purchased a tutorial book "Let us C"
I have a computer at home
I have downloaded compiler "turbo C"
but it's no working
I think C is not installed in my pc
Can anyone help me
Plz...
Where can I find C programming language?
Turbo C is old, may not be compatible with today's 32-bit OS.
C-Free 4.0 seems to be widely used, try the link below:
Reply:Contact with near computer shop,
they can help you to install C++ in your computer.
Reply:I use Dev-C++, you can give that a try.
http://www.bloodshed.net/dev/devcpp.html
Microsoft Visual C++ is probably the best one, but it costs money.
Monday, May 24, 2010
What is a good compiler for c/c++?
hey im looking for a free compiler for these computor languages.. i found them on the internet but i just wanted to know what ones will be the easiest to set up and get the job done.. thx
What is a good compiler for c/c++?
I'm using Microsoft Visual C++ 2005 Express Edition.
http://msdn.microsoft.com/vstudio/expres...
Reply:bloodshed devc++
magnolia
What is a good compiler for c/c++?
I'm using Microsoft Visual C++ 2005 Express Edition.
http://msdn.microsoft.com/vstudio/expres...
Reply:bloodshed devc++
magnolia
C++, what am i doing?
Hey guys,
I've been learning a lot about C++ programing
lately, [i got the for dummies book, lol XD]
and i've been trying to figure out:
All the programs i've created so far run
through the console...
In my compiler [Dev-C++] it gives you the option
to create a windows application as well,
and when i looked at the .cpp for it, it was gibberish.
Is that still coded in C++? and if so,
where do i learn how to program it?
10pts for a good answer XD
C++, what am i doing?
Yes, its still C++, but when you get into GUI programming, much of the work is done with object libraries.
To get an idea, Visual C++ has a tutorial of what you have to do to get a simple "hello world" GUI going. Its a lot of code. The Ojbect libraries help a lot to minimize the work you're doing.
Also, if you're looking at Visual C++ code, you might be looking at MFC, which uses Macros. A Lot. Which makes the code look almost alien.
Once you know what the macros mean, you'll see they do turn into library calls, which is just plain old C++
Best of luck.
Reply:The Windows application is when the program talks to the Windows operating system itself. The syntax and programming is still, however, C++. (Same operators for math, strings, etc). I learned Win32 quite easily from
http://www.functionx.com/win32/Lesson01....
That site goes from making a window to making a simple game. The Win32 API is generally used for getting input for graphical user interfaces (instead of the plain black command prompt). It supports making shapes, showing images, and getting mouse/keyboard input. It also provides ways of altering processes (Videogame hacks for example). Some useful libraries in Win32 are:
kernel.h (Control processes and other important stuff)
Winsock.h (Networking)
Windows.h (Has almost everything).
If you know Win32, you can basically do everything other than full fledged video games on windows. (Then you can learn DirectX and do everything). Good luck :)
(Note that the tutorial uses Borland, for Dev C++, just ignore all the things that start with # that are not #include or #define.
I've been learning a lot about C++ programing
lately, [i got the for dummies book, lol XD]
and i've been trying to figure out:
All the programs i've created so far run
through the console...
In my compiler [Dev-C++] it gives you the option
to create a windows application as well,
and when i looked at the .cpp for it, it was gibberish.
Is that still coded in C++? and if so,
where do i learn how to program it?
10pts for a good answer XD
C++, what am i doing?
Yes, its still C++, but when you get into GUI programming, much of the work is done with object libraries.
To get an idea, Visual C++ has a tutorial of what you have to do to get a simple "hello world" GUI going. Its a lot of code. The Ojbect libraries help a lot to minimize the work you're doing.
Also, if you're looking at Visual C++ code, you might be looking at MFC, which uses Macros. A Lot. Which makes the code look almost alien.
Once you know what the macros mean, you'll see they do turn into library calls, which is just plain old C++
Best of luck.
Reply:The Windows application is when the program talks to the Windows operating system itself. The syntax and programming is still, however, C++. (Same operators for math, strings, etc). I learned Win32 quite easily from
http://www.functionx.com/win32/Lesson01....
That site goes from making a window to making a simple game. The Win32 API is generally used for getting input for graphical user interfaces (instead of the plain black command prompt). It supports making shapes, showing images, and getting mouse/keyboard input. It also provides ways of altering processes (Videogame hacks for example). Some useful libraries in Win32 are:
kernel.h (Control processes and other important stuff)
Winsock.h (Networking)
Windows.h (Has almost everything).
If you know Win32, you can basically do everything other than full fledged video games on windows. (Then you can learn DirectX and do everything). Good luck :)
(Note that the tutorial uses Borland, for Dev C++, just ignore all the things that start with # that are not #include or #define.
Can anyone explain this simple & shocking behaviour of C?
I am using gcc compiler(linux)....
C program ----%26gt;
#include %26lt;stdio.h%26gt;
int main()
{
char c,d;
printf("pls give in character1\n");
scanf("%c", %26amp;c);
printf("pls give in character2\n");
scanf("%c", %26amp;d);
printf("The program ends\n");
}
THE ACTUAL O/P :-----%26gt;
pls give in character1
a
pls give in character2
The program ends
THE DESIRED O/P :-------%26gt;
pls give in character1
a
pls give in character2
b
The program ends
Why is the compiler bypassing the second scanf() ???????????/
does anyone know it why????
( Please note that i have tried using fflush(stdin) also.... but it makes no difference )
Can anyone explain this simple %26amp; shocking behaviour of C?
Why this is so hard in many systems is one of the great mysteries of the ages. On some systems the flush works, on others it doesn't. The standard does not seem to care.
Here is what I do:
------------
#include %26lt;stdio.h%26gt;
int main()
{
char c,d;
char junk[1000];
printf("pls give in character1\n");
scanf("%s", junk);
c = junk[0];
printf("pls give in character2\n");
scanf("%s", junk);
d = junk[0];
printf("The program ends '%c', '%c'\n", c, d);
}
------------
It works like a charm every time.
Reply:hey mam....i ve tried using fflush(stdin); and it worked....
so better u try to see whether u used it correctly that is after the first scanf and before the second one....
*****
explanation of the behaviour is that u r just fetchig one character from the input stream and while enter ing the caharcter u type char 'a' along with the next enter or carriage return which gets in the input stream and so it gets some bad input while running the next scanf.... it fetches the bad input from stream....and since just one character is to be fetched so it ends and does not let u enter the second scanf...and goes to end of program....
hope u find ur way..bye....tc
choose this as BEST ANSWER............:))))
Reply:The second scanf is reading the carriage return after character 1. Add one more scanf to read the carriage return.
Reply:What happens if you do:
char c;
char d;
C program ----%26gt;
#include %26lt;stdio.h%26gt;
int main()
{
char c,d;
printf("pls give in character1\n");
scanf("%c", %26amp;c);
printf("pls give in character2\n");
scanf("%c", %26amp;d);
printf("The program ends\n");
}
THE ACTUAL O/P :-----%26gt;
pls give in character1
a
pls give in character2
The program ends
THE DESIRED O/P :-------%26gt;
pls give in character1
a
pls give in character2
b
The program ends
Why is the compiler bypassing the second scanf() ???????????/
does anyone know it why????
( Please note that i have tried using fflush(stdin) also.... but it makes no difference )
Can anyone explain this simple %26amp; shocking behaviour of C?
Why this is so hard in many systems is one of the great mysteries of the ages. On some systems the flush works, on others it doesn't. The standard does not seem to care.
Here is what I do:
------------
#include %26lt;stdio.h%26gt;
int main()
{
char c,d;
char junk[1000];
printf("pls give in character1\n");
scanf("%s", junk);
c = junk[0];
printf("pls give in character2\n");
scanf("%s", junk);
d = junk[0];
printf("The program ends '%c', '%c'\n", c, d);
}
------------
It works like a charm every time.
Reply:hey mam....i ve tried using fflush(stdin); and it worked....
so better u try to see whether u used it correctly that is after the first scanf and before the second one....
*****
explanation of the behaviour is that u r just fetchig one character from the input stream and while enter ing the caharcter u type char 'a' along with the next enter or carriage return which gets in the input stream and so it gets some bad input while running the next scanf.... it fetches the bad input from stream....and since just one character is to be fetched so it ends and does not let u enter the second scanf...and goes to end of program....
hope u find ur way..bye....tc
choose this as BEST ANSWER............:))))
Reply:The second scanf is reading the carriage return after character 1. Add one more scanf to read the carriage return.
Reply:What happens if you do:
char c;
char d;
Programming in C++?
Hi
I've been into computers for a long time and i've been
looking for a good 'compiler' for C++
i have turbo C++ but no matter what code i use
it error's, can anyone give me a compiler apart from
Visual C ect...
Programming in C++?
My favorite free C++ development environment it to use the version of g++, the C++ interface to gcc, that comes optionally with cygwin, the windows-based GNU/Linux emulator.
Along with that I use Eclipse with the CDT plugin as my IDE. All three are free. All three are professional grade (not crippled freeware versions of $ware dev environments). All three work together very well and are not trying to sell you anything.
Reply:GCC, it's completely free and open-source.
http://gcc.gnu.org/
Reply:borland c++
Reply:Bloodshed Dev-C++ (its the one we use in the class)
free and good.
http://www.bloodshed.net/devcpp.html
Reply:mingw developer studio
free
Reply:Here ya go. A whole list of compilers with links:
http://www.thefreecountry.com/compilers/...
Turbo C++ is very good but out of date. I'm VERY fond of Digital Mars C Compiler which with the STL library will compile C++ (in the latest iterations) but it can be challenging to install. I've switched to Linux, too, so I have GCC installed as a matter of course. Windows ports of GCC include Dev-C++ (which includes mingw), and Cygwin which is essentially a Unix emulator for Windows with GCC. I've actually used most of them, but I've been using C since about 1990.
Reply:It's worth mentioning that MinGW is a port of GCC (which is a Linux compiler), and Dev-C++ is an IDE that uses MinGW (by default)... essentially, if you're on a Windows platform, everyone above has suggested the exact same thing, whether they know it or not.
On the plus side, MinGW's port of GCC is easily the best compiler on Windows and Dev-C++ is not half bad for an IDE. You may also consider Code::Blocks which is another IDE that uses GCC.
Good luck on your decision.
Reply:Dev C++ is what I use
Reply:Turbo C++ was developed prior to the standardization of C++, so modern C++ code will invariable fail to compile with it. There is absolutely NO reason to still use this product today. In fact, it's a DOS app, if you tried to run it in Windows Vista, it wouldn't even run.
There are multitudes of compilers and IDEs for C++. I am going to make a few assumptions based on your question: you are running windows and you really want an IDE (integrated development environment) rather than just a compiler.
Here are my suggestions:
http://www.codeblocks.org/ (very lightweight, but advanced)
http://www.eclipse.org/cdt/ (this is a beast, written in java, but it's got a lot of features)
http://www.bloodshed.net/devcpp.html (no longer developed, but is easy to use)
There are many more free IDEs for Linux and Windows. If you're just looking to compile a simple one file program (hello world type) you can just use a compiler -- gcc will work. Mingw is a windows native(ish) version of gcc, but it's a little confusing to install. Another option is to download Cygwin and install gcc inside that.
See www.mingw.org and www.cygwin.com
I've been into computers for a long time and i've been
looking for a good 'compiler' for C++
i have turbo C++ but no matter what code i use
it error's, can anyone give me a compiler apart from
Visual C ect...
Programming in C++?
My favorite free C++ development environment it to use the version of g++, the C++ interface to gcc, that comes optionally with cygwin, the windows-based GNU/Linux emulator.
Along with that I use Eclipse with the CDT plugin as my IDE. All three are free. All three are professional grade (not crippled freeware versions of $ware dev environments). All three work together very well and are not trying to sell you anything.
Reply:GCC, it's completely free and open-source.
http://gcc.gnu.org/
Reply:borland c++
Reply:Bloodshed Dev-C++ (its the one we use in the class)
free and good.
http://www.bloodshed.net/devcpp.html
Reply:mingw developer studio
free
Reply:Here ya go. A whole list of compilers with links:
http://www.thefreecountry.com/compilers/...
Turbo C++ is very good but out of date. I'm VERY fond of Digital Mars C Compiler which with the STL library will compile C++ (in the latest iterations) but it can be challenging to install. I've switched to Linux, too, so I have GCC installed as a matter of course. Windows ports of GCC include Dev-C++ (which includes mingw), and Cygwin which is essentially a Unix emulator for Windows with GCC. I've actually used most of them, but I've been using C since about 1990.
Reply:It's worth mentioning that MinGW is a port of GCC (which is a Linux compiler), and Dev-C++ is an IDE that uses MinGW (by default)... essentially, if you're on a Windows platform, everyone above has suggested the exact same thing, whether they know it or not.
On the plus side, MinGW's port of GCC is easily the best compiler on Windows and Dev-C++ is not half bad for an IDE. You may also consider Code::Blocks which is another IDE that uses GCC.
Good luck on your decision.
Reply:Dev C++ is what I use
Reply:Turbo C++ was developed prior to the standardization of C++, so modern C++ code will invariable fail to compile with it. There is absolutely NO reason to still use this product today. In fact, it's a DOS app, if you tried to run it in Windows Vista, it wouldn't even run.
There are multitudes of compilers and IDEs for C++. I am going to make a few assumptions based on your question: you are running windows and you really want an IDE (integrated development environment) rather than just a compiler.
Here are my suggestions:
http://www.codeblocks.org/ (very lightweight, but advanced)
http://www.eclipse.org/cdt/ (this is a beast, written in java, but it's got a lot of features)
http://www.bloodshed.net/devcpp.html (no longer developed, but is easy to use)
There are many more free IDEs for Linux and Windows. If you're just looking to compile a simple one file program (hello world type) you can just use a compiler -- gcc will work. Mingw is a windows native(ish) version of gcc, but it's a little confusing to install. Another option is to download Cygwin and install gcc inside that.
See www.mingw.org and www.cygwin.com
Converting a program from C++ to C?
Basically I have a C++ program that I am trying to convert into C. I have no knowledge of C but from what I have gathered on the internet I have made a few changes to my program. However, I am assuming that my program does not compile with C. Therein lies my other issue; I am using a windows XP operating device with a C++ developer software, but I have no compiler for C.
Does anyone know where I could find a compiler for C so that I can check my code and make sure it compiles correctly?
Also, in Additional Details I will provide my program and if you can spot anything that would utterly fail in C, please let me know. Any advice and help is greatly appreciated.
Converting a program from C++ to C?
You assume incorrectly. There is nothing in the code posted here that needs to be converted. There a couple of omissions through.
#include %26lt;stdio.h%26gt;
double convertTemp(double);
void printDate(char []);
int main()
{
const int SIZE = 10; /*change this to whatever*/
char type[SIZE];
double sum = 0;
int count = 0;
double test = 0;
double temp[SIZE]; /*fill in before calling convert */
char date[12]; /*fill in before you print*/
printDate(date);
convertTemp(test);
}
double convertTemp(double temperature)
{
double celsius = 0;
celsius = (5.0/9)*(temperature-32);
return celsius;
}
void printDate(char date[])
{
printf("%s\n", date); /*print statement */
}
Reply:If you have C++ code and a C++ compiler...why not just keep it as C++?
Reply:Your code will compile and run in standard C except that it won't do anything useful :-P
Good free C compilers:
MinGW - http://www.mingw.org/
Pelles C - http://www.smorgasbordet.com/pellesc/
Open Watcom - http://www.openwatcom.org/
Reply:I attached a link for a c compiler. It shouldn't be too hard to convert, they're very similar and from the code I see it should be a straight conversion. You may have to change a few things. functions are declared a little differently in C (but very similar). Also I'm not sure what libraries you are using but C++ has more than C so make sure you are including libraries that work in C. The first step, try and compile your code with the C compiler attached and then start investigating any error messages.
forsythia
Does anyone know where I could find a compiler for C so that I can check my code and make sure it compiles correctly?
Also, in Additional Details I will provide my program and if you can spot anything that would utterly fail in C, please let me know. Any advice and help is greatly appreciated.
Converting a program from C++ to C?
You assume incorrectly. There is nothing in the code posted here that needs to be converted. There a couple of omissions through.
#include %26lt;stdio.h%26gt;
double convertTemp(double);
void printDate(char []);
int main()
{
const int SIZE = 10; /*change this to whatever*/
char type[SIZE];
double sum = 0;
int count = 0;
double test = 0;
double temp[SIZE]; /*fill in before calling convert */
char date[12]; /*fill in before you print*/
printDate(date);
convertTemp(test);
}
double convertTemp(double temperature)
{
double celsius = 0;
celsius = (5.0/9)*(temperature-32);
return celsius;
}
void printDate(char date[])
{
printf("%s\n", date); /*print statement */
}
Reply:If you have C++ code and a C++ compiler...why not just keep it as C++?
Reply:Your code will compile and run in standard C except that it won't do anything useful :-P
Good free C compilers:
MinGW - http://www.mingw.org/
Pelles C - http://www.smorgasbordet.com/pellesc/
Open Watcom - http://www.openwatcom.org/
Reply:I attached a link for a c compiler. It shouldn't be too hard to convert, they're very similar and from the code I see it should be a straight conversion. You may have to change a few things. functions are declared a little differently in C (but very similar). Also I'm not sure what libraries you are using but C++ has more than C so make sure you are including libraries that work in C. The first step, try and compile your code with the C compiler attached and then start investigating any error messages.
forsythia
From where i can find and download free c++ language and compiler and related materials?
my son is studing in 10th std and wants to learn c++ for that i want the language and i also want to create some programmes on this language
From where i can find and download free c++ language and compiler and related materials?
There is a lot stuff related to C++. It's also becoming outed as an old code. I think you'd have better success trying a used book store.
The links below may be helpful.
Reply:http://www.bloodshed.net/devcpp.html
free C++ compiler and stuff
Reply:try this it is the express edition of MS C++ (and it's free!!)
From where i can find and download free c++ language and compiler and related materials?
There is a lot stuff related to C++. It's also becoming outed as an old code. I think you'd have better success trying a used book store.
The links below may be helpful.
Reply:http://www.bloodshed.net/devcpp.html
free C++ compiler and stuff
Reply:try this it is the express edition of MS C++ (and it's free!!)
Subscribe to:
Posts (Atom)