Friday, July 31, 2009

How do I make graphics in C++?

Hi ...


I just started learning C++ today, so I'm a complete n00b , but I got up to making while, do while, for loops and input/output statements/ variables/data classes / break statements








My question is I don't understand how you have graphics/games ...it looks like it's all text based ... I know this sounds retarded because I don't know anything yet, but


can somebody tell me how I could make a very basic graphic game or something





and I also wanted to make a chat room bot -





I know there must be some kind of link between the internet and c++ compiler, but where would I have to search to get this information / where should I start looking








thanks.

How do I make graphics in C++?
Your a long ways away from making a game in C++. If your using an SDK like VS2005 then you can easily make pre-fabbed forms using the form wizards. Otherwise you have to construct what you want from basically the ground up. If you want a window you have to create a window giving it the styles and depth that you want. That's just your main window. You then need to do the same for every button, edit control, and everything else that you want inside of the parrent control. If you just want to make graphics maybee C++ isn't what you are looking for. Although you could take a deeper look into Direct X and some game design books.
Reply:OpenGL for 3D junk.


For basic 2D use Qt, WxWindows etc.

imperial

Looking for a free windows C C++ compiler with IDE that supports DBT_DEVICEQUERYREMOVE?

I'm currently using lcc-win32, but it doesn't seem to support the ability to allow a device to be ejected such as an ipod. more details on DBT_DEVICEQUERYREMOVE here


http://msdn.microsoft.com/library/defaul...





thanks jc

Looking for a free windows C C++ compiler with IDE that supports DBT_DEVICEQUERYREMOVE?
You can't beat Visual Studio for an IDE and the Express version is free.
Reply:Visual C++ Express is just AWSOME. You may download it and register for FREE for a limited time, and the license DOES allow for creating commercial applications, etc.


Check out you don't actually have to use any of the .NET features, and use it just as a great compiler/IDE.


Those who use c++, from where can I download freely c++ tutorials and also a good c++ compiler?

This site is a great start with lots of support:


http://www.cplusplus.com/


And this is the best free compiler for starters:


http://www.bloodshed.net/devcpp.html


Best luck!

Those who use c++, from where can I download freely c++ tutorials and also a good c++ compiler?
vbobchoinfdhfd


I need a free C++ compiler which isn't huge?

I need to download it using a dial-up connection.

I need a free C++ compiler which isn't huge?
GCC





depending on what you mean by 'huge'
Reply:borland c++ 5.5 is avilable for download for free
Reply:google search for delphi c++ n c if it works ...dont know if its free tho...(plz help me bump my points up)
Reply:I have used visual studio for years. It works good. Try the free version, is just as good.





http://msdn.microsoft.com/vstudio/expres...





I guess is pretty big. If it doesnt work, try this one





http://www.bloodshed.net/dev/devcpp.html


Where can i download c compiler for free?

can any1 send me a link


some where u can easily download it

Where can i download c compiler for free?
www.sourceforge.net
Reply:hi please check this out :





http://www.thefreecountry.com/compilers/...
Reply:They are ten a penny, try any of the following places:


...bleepingcomputer.com


...codeitbetter.com


...sourceforge.com


or simply Google 'free C compilers'





So what you waitin' for, download one and get working on a Vista replacement ;-)
Reply:the best site is


gcc.gnu.org

elephant ear

Where can i download C compiler for mac?

Apple developer forums


http://www.apple.com/downloads/macosx/de...


What is GCC ( GNU C++ Compiler ) ? what does it do ?

I need full explanation of GNU .. i mean what it is acyually for ..

What is GCC ( GNU C++ Compiler ) ? what does it do ?
yes, gcc works on windoze. You can even cross-compile linux programs using gcc on windoze (i.e., run a gcc on windoze on a program source to generate a linux (or any other supported architecture for that matter) executable). So, yes, you can do all the same stuff with it you can on a normal OS.


Also, gcc is not just a "C/C++" compiler. The abbreviation "gcc" stands for "GNU compiler collection". It compiles C, C++, Fortran, Java, Ada, Objective-C, and some other languages.


Finally, linux and BSD aren't really "GNU operating systems", although, a large portion of their software (such as most shell file manipulation utilities and programming tools - awk,make,tar,gzip,grep,gdb etc) has indeed been developed by GNU project, but kernels (that actually define the "OS" for all practical purposes - that's what essetially makes, say, linux different from BSD, while both are running gnu software on top of their respective kernels. MAC OS btw, is a BSD too)are independent developments.


The X servers, used by various *nix flavours are also created by an project, separate from GNU, called "X concortium"
Reply:It all started in 1983, when the ideea of creating a Unix-like operating system came to life. GNU comes from "GNU's not UNIX".


All software that have been developed under GNU project were absolutely free, and this included not only entire operating systems (like Linux, BSD, ReactOS and so on) but other applications as well (X server, system kernels, boot managers, office applications...)


GCC is GNU C/C++ compiler, so a compiler for C language that will run on GNU compatible operating systems. Not only that it's absolutely free to use and modify, but it's also one of the best C compilers out there.


As I already said it works only on Linux, BSD and other compatible OS, but it was also ported to windows as well (of course it had to be adapted to windows structure so doesn't mean that everything you can do with gcc on Linux ofr example you can do in windows and vice vers).


For a list of compilers adapted after gcc look here:
Reply:You are not going to get it here for 2 points. Find google.





A compiler is a special program which takes a program which someone has written and converts it into a final executable program. All executable programs of any size are compiled, whether in Windows or Unix or Linux.


Change Icon Of Exe in Visual C Program.?

I am programming with Visua C++ compiler. But I am strictly writing a C Program. I want to change the icon of generated exe file. How do I do that?





If you answer is "right click on exe and in properties tab change icon.. please don't answer".. that is lame, not protable and not what I am looking for.





Thanks in advance.

Change Icon Of Exe in Visual C Program.?
From the IDE you should be able to edit or create a resources (.rc) file. This file controls what icons are available and used with Win32 API and MFC applications. If you are writing a C program in "DOS" mode, no resource file is used and so you have no direct icon control other than the lame answer you complained about. Please note, *IF* you aren't using Win32 API(available in C) or the MFC(not available in C!), then you *CAN'T* use a resource file and control the icon without setting it manually or through a program installation you've written for your program.


Sorry, if your program runs in a DOS box, you just can't do certain things that work with the GUI. That's progress!


What is the best C++ compiler?

dev c++ free


or


microsoft visual c++ 2005 express also free





how ever since the microsoft 1 relys so heavly on the .net framwork i perfer dev c++





its also i belive a lot easier to work with and works best since if your like me i never belive in starting a visual 32bit program like that start a console 1 and use window.h to write ur own 32bit window rather gettin ide to do it





with linux kde


use kde studio works best gnome iv never used c++ on it so ur on ur own there





are you trained in c++ if not have a few of these links to help u





http://www.cplusplus.com/doc/tutorial/





also check this i found it to be intreasting


http://www.uniqueness-template.com/devcp...





but i wouldnt sujest it as a first language

What is the best C++ compiler?
OK first question is what operating system are you using?


Not everybody still uses Windows.





If you are on Windows then I would have to say that Visual Studio is the best to work within.





If you are on Linux then there are a huge range of choices - all you need to do is download them and try them out. It's not like Windows where you need to pay for things.





And as for your question , do you mean the best as in producing optimised code , best to work within , best as in easiest to work with?

lady palm

Is there a site which allows me to run c++ programs on web?

I dont have permission to install c++ compiler on my office computer. But in free time I want to practice c++ programs. Is there a site which allows me to run c++ programs on some web server free of cost?

Is there a site which allows me to run c++ programs on web?
Use netmeeting to get to your computer


Go to Start%26gt; Run%26gt; conf And cofigure it right then Go to your other Comp, Then do that on there And type in your IP Address
Reply:i dont know about this but i give you a wab site link so please see this


http://www.joelonsoftware.com/





http://freshmeat.net/articles/view/138/
Reply:You could look for an independent ISP or hosting service that provides Windows Virtual Hosts, pay for a plan, and place your stuff there, using Remote Desktop to access the system.
Reply:why don't you invest in some remote computer software to access your own computer at home from the office. that way you're not running it on their computer but your computer. the other option is to run a live CD which doesn't write anything to their computer (no installing of anything) and you can access anything you place on the CD or internet. for further information see remote desktop computing.


Are there any free c++ compiler programs?

It depends on your platform, however usually there is a GCC/G++ implementation for most.





Linux: gcc/g++ usually come pre-installed





Dos: http://www.delorie.com/djgpp/





Windows: If you download the Cygwin distribution, it will include gcc/g++ you can use to compile.





http://www.cygwin.com/

Are there any free c++ compiler programs?
http://www.delorie.com/djgpp/
Reply:Bloodshed software's dev-C++.
Reply:Yes, Microsoft has a free edition of Visual Studio (Visual Studio Express) and has a C++ edition.





http://msdn.microsoft.com/vstudio/expres...





It includes both an IDE (Integrated development Environment) and the complier. It's a very large download though. If you are on dial-up you may want to see if you can download it from a friend or a library.


Can I download the Turbo C/C++ Compiler Free from internet.if yes from where and How.plz reply soon n detail?

You can download some or Borland's Turbo C and C++ compilers for free because they are creating a museum site for some of the older versions and releasing the compilers for free as a result.





This link has these downloads and heaps of other compilers you can download for free:





http://cc.uoregon.edu/cnews/spring2003/f...

Can I download the Turbo C/C++ Compiler Free from internet.if yes from where and How.plz reply soon n detail?
http://www.vetusware.com/download/Borlan...


What is the best C++ compiler for Ubuntu?

try


Dev C++


www.bloodshed.net

What is the best C++ compiler for Ubuntu?
I think the command is:-


gcc %26lt;filename%26gt; %26lt;options%26gt;





try looking at the man pages for it for the full usage its very robust





/home/$man gcc
Reply:the GNU c++ compiler, g++, is the standard compiler for *nix.





I suppose other companies market their own compilers, but for general use why not go with what's free (and probably already installed on your machine).

snow of june

Which is the best c compiler?

turbo

Which is the best c compiler?
I would say GCC the linux compiler
Reply:i liked microsoft's compiler
Reply:There is nothing which is exactly "BEST"...


The "Best" solution depends upon your requirement.





If you are learning c on windows platform, then turboc or borland compiler will serve that purpose.





If you want real life software development then Microsoft's VC++ compiler can be used. It is used for both c and c++.





If you are using linux or unix platform, then gcc compiler will help you..





I mean everything depends on your requirements MAN !!


Which is the best c++ compiler?

say if you are a professional in programming and know how to deal with the command line execution then you can down load Borland command line compiller for free. if you are a starter or at least have academic knowledge of c and c++ and you are using "namespace std " concept in c++, which is a standard c++(ANSI c++ 1998) then down load "Bloodshed Dev-c++" which uses IDE (integrated development enveronment) like you have the options to compile,run,open,save,project and lots more..this is for open source c and c++ syntex. if you want real computer gui programming, then ou have to go for visualstudio.net (2005) which requires master level knowledge in programming not like


#include%26lt;iostream%26gt; //.h is befor ANSI 1998 syntex


int main()


{


cout%26lt;%26lt;"Hello";


return 0;


}





both the compilers are free to download and visualstudio.net you have to purchase.

Which is the best c++ compiler?
it's your choice, you'll have to try different ones until you'll feel comfortable with it,


check www.thefreecountry.com for free compilers





If you want cmd line compilers, you can use borland c++5.5 version or gcc,


if you want compilers with and IDE try bloodshed dev c++ it's very good
Reply:In terms of likely to implement the standards most correctly: GCC (Gnu's C Compiler). It is the reference platform for all other compilers.





However, if you're looking for other features such as a wiz-bang graphical interface, then you answer will be operating system independent.
Reply:its BORLAND c++





its very easy to use, no complex ...


or u can also use visual c++ but the person requires skills commands





hope u can get it
Reply:i guess BORLAND C++...........
Reply:well in school we use DevC++ to make and compile our programs
Reply:most used and well known to all is borland c++. hence learning and programming through borland C++ will be usefull.
Reply:borland


What's the best C# compiler?

I'm new to programming and I can't afford Visual Studio. Any free/shareware out there. What do ya'll like? Thanks

What's the best C# compiler?
There are a few free C# compilers around, including those from Microsoft, Borland, etc.





Free C# Compilers and Interpreters


http://www.thefreecountry.com/compilers/...
Reply:Visual Studio Express is a free version. Doesn't come with all the bells and whistles... but it does what you need it to do. If you ever intend to get into the job market using C# you will want to be able to say you used Visual Studio so download it and get cracking!


Why does my Turbo C compiler produce a fatal error whenever I use a pointer?

Need help.

Why does my Turbo C compiler produce a fatal error whenever I use a pointer?
change the memory module to huge while compile ur code. try simple codes like





int main()


{


int *p;


p = (int *) malloc (sizeof(int));


scanf("%d", %26amp;p);


printf("%d",*p);


}





u can find differ, i think...
Reply:U might be using the pointer wrongly.... post a sample code here..

sweet pea

How to use turbo c compiler?

in Turbo C compiler use these short cuts


Alt+F9 for compilation


Ctrl+F9 to run


Alt+F5 to debug


F7 to debug





u can find more in 'Help' menu

How to use turbo c compiler?
Hay friend, using Turbo C compiler is very easy. To use Turbo C compiler, first write your C progame and then using mouse cursour click on compiler. And select compile option it will show you errors in your program and in which line it is present. So use it and for more question send your question to "www.sourabhmhaisekar1@yahoomail.com" So seaaa!
Reply:Hello,


First unzip the file and then you will find tc file with icon just double click and then set the path in lib and directories then write a program complie it.
Reply:Use Dev-C++. Its better than any other compilers.





Turbo C has many drawbacks.





Use it. Because it uses GCC 4.0. which is also used to compile BSD and MacOS X operating saystems.
Reply:Refer This site:





http://www.acms.arizona.edu/education/op...


I make programs in c++ on turbo c++ compiler , the same programs don't run in visual studio 2005?

What should i do?I am not able to run the simplest of all programs that is to print hello world , please help me

I make programs in c++ on turbo c++ compiler , the same programs don't run in visual studio 2005?
Copy you code into the Visual Studio IDE and recompile.





In .NET, as someone attempted to note earlier, the Common Language Runtime actually is the language used for the program, not Visual C++. Visual C++ is really just a scripting language in the .NET Framework.
Reply:How will it run ?





Visual studio 2005 is .net framework. and yes it supports c++.





But the code written in turbo c++ must support MSIL.
Reply:You create project and add your "Hello World" program.


it should run..


if u give exactly what is happening can help more


Problem in compilation or running?
Reply:turbo C++ use some header files llike %26lt;graphics.h%26gt; and a like while this header files won't work directly on visual c++ so if u are using such header files keep working on turbo


peace

bottle palm

What do i do when my dev-C++ says "cannot find specified file" ?

I compile a program on my dev-C++ compiler and it says "cannot find specified file". what do i do?!?!?!?

What do i do when my dev-C++ says "cannot find specified file" ?
Did you try looking for it? :-) If it's a file specified in a #include directive, it depends on whether the name is in %26lt;angle brackets%26gt; or "quotes".





If it's in %26lt;angle brackets%26gt; it's expected to be in one of the directories listed in the INCLUDE environment variable.





If it's in "quotes" its name is assumed to be relative to the location of the file that contains the #include directive, which means it can include a subdirectory name. Sometimes you'll see the psuedo-directory "..\" (which means the parent directory) in an #include directive. Example: assume the file containing the #include directive is named C:\projects\myprogram\main.cpp, and in that file is the line:





#include "..\inc\someheader.h"





The FQ path of the include file is C:\projects\inc\someheader.h.





Good Luck!


How much does a C++ and C# compiler cost?

Also, will it be compatible with my desktop computer that has Windows XP?

How much does a C++ and C# compiler cost?
Prices vary significantly, depending on version and edition. Professional (VS, Borland, etc.) will cost around $1,000. Enterprise price is several times higher.


To try, download limited Visual Studio Express 2005 for C#:


http://msdn.microsoft.com/vstudio/expres...





For C++, use (completely free) Gnu Compilers Collection (GCC) and MinGW IDE.


http://www.parinyasoft.com/download.html


http://www.mingw.org/download.shtml


There are lots of free compilers -- i just mentioned those (besides Visual Studio Express) i consider to be the best.
Reply:DevBloodshed C++ is a free, open source software.





http://www.bloodshed.net/devcpp.html





This compiler is much better than Microsoft's.
Reply:Nothing. Go to Microsoft's and Borland's web sites. They both offer free compilers. They offer programming languages like C++, C#, Delphi, Visual Basic, etc.
Reply:you can search the net for such compilers... one is this: http://gcc.gnu.org/ or http://www.bloodshed.net/devcpp.html


that's for c++ and yes... it is compatible to windows xp





these are free softwares... i think...
Reply:Nothing! Get gcc - then GNU C Compiler. Don't know about C# though.





Rawlyn.
Reply:It's all free -





First download and install the .Net SDK from Microsoft -


http://www.microsoft.com/downloads/detai...


Then the free IDE from here -


http://www.icsharpcode.net/OpenSource/SD...





This will produce Windows executables.


Please gimme link to c and c++ compiler, interpretter. free one plz. google was not real helpful......?

i think download.com may be helpful to you

Please gimme link to c and c++ compiler, interpretter. free one plz. google was not real helpful......?
i presume you wish to have a compiler for a windows system:


try GNU compiler, either MinGW


http://www.mingw.org


or an older alternative for DOS (but it works well on windows) http://www.delorie.com/djgpp/





i've used them both but currently i use intel C++ compiler which is unfortunately not free (except the windows noncommercial version)


In which language is C and C++ compiler written?

The C++ compiler by Microsoft was written in C, and the C compiler by Borland was written in... (drum suspense...), C itself!





BluEyes.

In which language is C and C++ compiler written?
The first assemble compiler in the world was written in machine code by a man.
Reply:Normally C and C++ now. A complier is nothing more then a program that converts the programming code in a text file into Assembly.

magnolia

Can anybody tell me about c programing?

anybody can help me to find an article about one of c programming below, please send it to my yahoo mail.%26lt;gigayus86@yahoo.com%26gt;.


1.Cluster and Grid programming


2.C - Compiler architecture


3.Data structure and algorithm


4.Programming for engineers





anybody who know all about topic above,please send to my email.or if anyone know where can i find it,you can just give me the website that contain all topic above.

Can anybody tell me about c programing?
Do a search for 'C language tutorials' works for me. However if you have a choice go on to C++ even better


How do i compile a C Programme?

Hi, i have written a program in C language and was just wondering where and how do i compile it. do i need a program that will compile the code for me??





i have written the program in Microsoft NotePad, and have no C compiler programs on my computer. Any idea how i can compile this??





many thanks

How do i compile a C Programme?
Depending on your level of expertise, I suggest downloading something from here:





http://www.thefreecountry.com/compilers/...





Also, instead of using notepad, I suggest downloading textpad (www.textpad.com). It does a great job for a text editor. If you read into it, you can also set it up to compile your C programs (or Java and more). Of course, you have to download the compiler first.





Most of the compilers from the list above will show or explain how to set up your computer for C compiling.





Good luck!!!
Reply:Let see, C compiler read only those files which is saved by .C or .Cpp extension. so create a file in Turbo c Or in TC. And compile. Ok Bye Have a nice time.
Reply:try these





http://ailab.hanyang.ac.kr/~ktkim/downlo...





or





http://www.tclite.fsnet.co.uk/


My turbo c graphics is not working in vista...b cuz vista doesnt suppport command prompt in full screen...?

is there an an turbo c compiler which doesnot require full screen mode for graphics

My turbo c graphics is not working in vista...b cuz vista doesnt suppport command prompt in full screen...?
yer i know command prompt don't support full screen in vista.. I dunno why, maybe theres an option u can switch in there, not go into it yet..





how about using crimson editor ? and just link the compiler options to that =)





www.crimsoneditor.com





I use it to make commodore 64 asm in, and it supports C and html also =)





or how about using linux instead.. using GCC etc.





just get a distro of linux maybe , they all include dev tools.





there are loads of c compilers about, some with IDE's in





http://www.thefreecountry.com/compilers/...


Dll help pls(error in c++ code)?

ok here is the dll





#include %26lt;windows.h%26gt;


#include %26lt;stdio.h%26gt;


#include %26lt;stdlib.h%26gt;


#include "stealth.h"





DWORD dwThreadID = 0;





void MainLoop()


{


while(1)


{








Sleep(10);


}





}








BOOL APIENTRY DllMain( HANDLE hModule,


DWORD ul_reason_for_call,


LPVOID lpReserved


)


{


if(ul_reason_for_call==DLL_PROCESS_AT...


{





loadDriver("\\0001.sys",true,"0001",... Driver");


CreateThread(NULL,0,(LPTHREAD_START_... %26lt;-------


if(unlinkThread((int)dwThreadID) != 1)


{


MessageBox(0,"Invalid Operating System Detected!","Error",MB_ICONERROR);


ExitProcess(0);


return FALSE;


}





return TRUE;


}


return TRUE;


}





im using dev-c++ compiler





and im getting an error on this line


so can someone help me fix this

Dll help pls(error in c++ code)?
The problem is the signature of MainLoop. If you write MainLoop properly, you won't need the (LPTHREAD_START_ROUTINE) cast.





The thread function needs to take a pointer to void and return a DWORD.





It should look like this:


DWORD MainLoop (void * pdata)





When using function pointers, having the correct signature is required. Anything else will cause crazy errors. Feel lucky you got a compiler error. If you got it to compile, the runtime errors would be very hard to diagnose.





The pdata parameter allows you to pass context data to the thread, this way you can start off different threads with different data.

forsythia

Where can I download a free C compiler for my Mac?

I have a Mac OSX operating system.

Where can I download a free C compiler for my Mac?
http://sdcc.sourceforge.net/


Which is the best & Not-Confusing C++ Compiler?

gcc+





or





Visual Studio


I am new to C++ please help?

I have made directories in borlands C compiler and wrote a program, saved it as hello.cpp:





1:# include %26lt;iostream.h%26gt;


2: int main()


3: {


4: cout %26lt;%26lt; "Hello\n";


5: return 0;


6: }


it is showing error -- unable to create output file 'C:\tc201\include\hello.obj'





what is wrong please help I am learning by myself but stuck here

I am new to C++ please help?
sorry dear but i m running the same prog. n it's running without any error .However it's not showing the output 4 that i have used getch();


and 4 using getch(); u have 2 include header file i.e. %26lt;conio.h%26gt;


good luck .


any more problems in c or c++ then plz contact.


byeeeeeeeeeeeee!!!!!!!!!!!!!!!!!!!!!
Reply:check whether the include directives are properly installed .


Does Visual Studio Compiles C Code?

aditionally whats the best C Compiler out there, BloodShed Dev C++?

Does Visual Studio Compiles C Code?
Yes. When you select to Build Solution (F6) or Debug (F5) the application is compiled. Look in your project folder/debug or project folder/release for the compiled program.
Reply:visual studio .net works fine on both c and c++.





visual studio 2005 express works fine on c, c++ and assembler





visual studio 2005 works fine on c#, j#, c and c++
Reply:i use miniGW developer to create build and compile and its pretty easy to me than visual bececause i can't fing the complie thing there.

jasmine

Miracle C error messages?

How can I fix this error in Mirace C Compiler?





line 13: Parse Error, expecting `')'' or `',''


'if (cResponse is == 'a' || 'A') printf ("\nYou are Correct\n")'


aborting compile

Miracle C error messages?
It should be:





if (cResponse == 'a' || cResponse == 'A' )


printf("\nYou are Correct\n");
Reply:There's 3 things wrong with that.


if (cResponse == 'a' || cResponse == 'A') printf ("\nYou are Correct\n");





1. Why'd you put the "is"?


2. You can't do x == a || b, you have to do x == a || x == b


3. You need a semicolon to end the statement.
Reply:"cResponse is" spaces are not allowed, remove that "is".


Can any one suggest me best c++ compiler for mac?

All Macs come with the free Xcode development suite from Apple. It comes on a second DVD with your Mac; from memory, it's also included with boxed retail versions of Mac OS X. So have a hunt around for your Xcode DVD.





Xcode comes with the gcc compiler, an IDE for writing and debugging code, various SDKs to write code to target different versions of Mac OS X, and other good things.





You can also get a free download of Xcode from Apple, but you need to register with the Apple developer site. Link below. Good luck!


What is a c++ compiler?

Your question is a little puzzling, but I'll give it a try.





A C++ compiler is a compiler for code written in C++ (a modified C). You can do so with VisualStudio from Microsoft or Borland.





C++ came from Bjourne Strousup (sorry for the spelling). He created it with OOP in mind.





If you program, then it's just another language to learn, and compile.

What is a c++ compiler?
Free Open Source C++ Compiler


http://gcc.gnu.org/





http://www.thefreecountry.com/compilers/...





A compiler is a computer program (or set of programs) that translates text written in a computer language (the source language) into another computer language (the target language). The original sequence is usually called the source code and the output called object code. Commonly the output has a form suitable for processing by other programs (e.g., a linker), but it may be a human-readable text file.
Reply:A compiler is a computer program that acts as a medium between a programming language's code [c++ in your case, also called the source code] and the machine's language [binary]. It's basically a translator.
Reply:A program on which you can type in C++ code, test it, run it, and finally change it to an executable program.





Like Microsoft Visual C++, Borland C++ etc
Reply:A compiler is a set of programs that takes your source program, code written in a high level programming language (English-like), and translates it into an object program, written in machine language. In order for your program to run it is then sent to the assembler which translates the machine language into assembly language (Binary 0's and 1's) this creates an executable file which can then run.
Reply:A compiler which understands the C++ coding symantics and produces an executable by converting this C++ code into corresponding assembly.
Reply:A C++ compiler compiles the source code down to pure (K%26amp;R) C code. This gets compiled into Assembler code which gets assembled into machine language.





Kerningham and Ritchie (K%26amp;R) wrote the abosolute definition of the C Language.





C++ was an extension of that language that provided an Object Oriented compiler developed by Bjarne Stroustrup at AT%26amp;T Bell Labs in the early 1980's.





That's where I received my C++ training.
Reply:It's a program to translate the computer language, C++ into something a computer can understand. Think about it like this when writing a computer code using C++.





1. You type it in a form you and others can understand it. ---%26gt; The compiler then translates it into a form a machine, in this case a pc, can understand. If it's written properly, it will give you the ok, if it thinks a computer may have problems understanding it, it will alert you.
Reply:A program that takes your C++ codes and turns it into a running program. I think...


How to run Turbo C++ 3.0 in full screen dos mode in Vista 32 bit?

I can't run my c programs in vista ultimate 32bit edition. also i can't view the results in actual dos mode though this turbo c++ compiler is running full screen mode in xp sp2. please help me out. its urgent. thanks in advance

How to run Turbo C++ 3.0 in full screen dos mode in Vista 32 bit?
use alt+enter key to run it in full screen mode...try it.

crab apple

Hi! im searching for an old Intel C Compiler for 80186 processor (iC86).i'll b grateful if anyone of u suggest

This is the old compiler.

Hi! im searching for an old Intel C Compiler for 80186 processor (iC86).i'll b grateful if anyone of u suggest
http://wolverine.caltech.edu/tools/ic86....





Click the Download button on the top-right corner of the page.
Reply:try this site www.bazee.com. it sells 2nd hand stuff
Reply:good luck there was a place in Toronto Canada that had them but i don`t know if they ere still open look under used PC parts that may help


I want a C compiler with a blue screen, plz help?

Do you mean like the old Turbo C compilers? That was my first compiler. I never spent so much on another one, frankly, or so gladly. The last Borland Compiler I got (I've switched to Linux which has GCC built in) had a Windows IDE like everybody else, but they make some of the older versions available for free at codegear.com and I've linked to their 2.01 Turbo C compiler.





If you want that IDE with C++, sorry, so far as I know they do not make it available for free. Maybe you can buy it somewhere. ;-)





If that is not the IDE you are talking about please tell us.


I'm looking for a free C compiler for windows and a nice editor like emacs, can you give me a link please?

Check out notepad++ (web site notepadplusplus.org) for editing. It's free, easy to use and will display your source code so it's easily readable. I use it for editing php files but it has templates for many other file types.





Search sourceforge for compilers. I can't recommend any as I haven't used them, but there's sure to be something that works for you.

I'm looking for a free C compiler for windows and a nice editor like emacs, can you give me a link please?
Here, its in my school website:


http://www.mediafire.com/?cmajljikjpt
Reply:go to www.desihackers.net


Where can I find a free C compiler for Mac OS X?

I can't seem to find any, except for Xcode which takes hours to download and never works properly for me anyway.

Where can I find a free C compiler for Mac OS X?
You can install xcode and the just compile via terminal using gcc.





You could also just install gcc.

strawberry

How do I PUSH and POP elements into a C++ stack?

Actually, I hurriedly need an example of how to PUSH elements into and POP them out of a STACK in C++. My C++ compiler version is 4.5 and it will do me much good if I get the program example in this particular version.





Thanks so much in anticipation.





...EPHRAIM...

How do I PUSH and POP elements into a C++ stack?
Dear Friend,


I have a program on stack operations. using arrarys on C. If u need please join in http://tech.groups.yahoo.com/group/progr...


There you can post this question and quickly get reply.


Regards,


Rengaraj.R


Help compiling in Visual C++ Studio 2005?

This may sound like a stupid question, but when I try to compile code, the compile option is greyed out. I've never written a program before, and I'm trying to learn C++. It turns out the program I'm trying to use to compile it is more complicated than the coding itself. I've tried with both a "New Project", and with a "New File" alone. I've tried reading the help files, but they give very little help, as with most Microsoft products. I'm about to give up, so if anyone knows of another/better C++ compiler that is free, please point me to it.

Help compiling in Visual C++ Studio 2005?
// here's what I did with the VC 6 "intro edition":





1.) Open Visual C++ and click "file" and "new" from the main menu.


2.) Click "Win32 Application"


3.) Fill in the project name and location in the appropriate dialog boxes.


4.) Click "OK" , "finish" and "OK" to set up an empty project.


5.) Click "file", "new", "C++ source file" .


6.) Name the file, click "OK" and cut N' paste the following:





#include %26lt;windows.h%26gt;


int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)


{MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK);return 0;}





7.) press the %26lt;F5%26gt; key and "OK" to compile and execute.





Hope this works for you. What you ought to get is a little popup window that can be dragged around, minimized and closed. DOS stuff is in the realm of "Console Application" projects. This is probably where one would want to start if they are just learning C.





Don't feel bad if Visual C++ seems frustrating - because it is. I spent six years studying Windows API and MFC classes and still can't program much more than "combo boxes". These are easy if one lets Microsoft manage everything but really hard to do if one wants to code everything from scratch - and Micro$ isn't going to be much help assisting you if you try and figure out how their little black boxes work..





There are quite a few "open source" compilers and the best appears to be the DevC compiler by bloodshed. It has its own nice User interface, so just type and compile and be happy. Open Watcom is another popular (READ: "free") compiler. Boorland is the other major player as far as expensive, commercial compilers go. Microsoft has "bundeled" it's latest development suite to include BASIC and a strange C/BASIC hybrid known as "C#", which is what their "NET" framework is all about. Finally, LINUX comes with its own compiler known as "GCC" and there are DOS versions of this if one likes a nice black %26amp; white, totally command line driven environment. Do be aware that if one goes this route, they will need to know a few things about "makefiles" and "compiler switches" if one desires to write anything sophisticated.





BTW: I learned the fundamentals of "C" from something I found on some hard drive I dug out of a bargain bin. Besides a narritive of some guy's divorse, it contained the "learn C" compiler written in 1986. This was so primitive it didn't even have the ability to save executable files, it mearly compiled code .





hope this helps %26amp; good luck!
Reply:I would reccomend dev c++ as a c++ compiler. As a first language, I would not reccomend c++ largely for this reason. I have always recommended ruby as a good first language because it is so standardized and you get the compiler from like ruby.com and tuts will teach directly for that compiler. It allows you to get over the learning curve of programming without the learning to use the compiler hassle.





I personally use dev c++ most of the time, but msvc++ when working with directx.
Reply:You can't "Compile" (Ctrl/F7) unless you've selected a .cpp source file. In general, though, you usually do a Build Solution to compile and link evertyhing in the program. Compile compiles only that one source module..
Reply:Try reinstalling it.
Reply:When it comes to professional developer tools (any profession's tools for that matter), the expectation is that either you are knowledgeable enough to know how to use it or are a capable individual who can learn quickly. I say this because you think jumping compilers will magically solve your problem. It won't, as you do not have the requisite knowledge (or the experience of a developer) to suddenly start working on any compiler you get.





In Visual Studio, projects are stored in solutions. So here's how it works.





Solution


- multiple projects


- each project contains multiple files pertaining to that project.





You need:


- a solution


- a C++ console project within that solution


- your code files within that c++ project.





You should be able to accomplish the above by starting a new project. Make sure you allow it to create a solution (there should be a checkbox to that effect).


Help!! c++?

is there any c++ compiler where i can download them for free.

Help!! c++?
Hi Jenny!





Yes - there are many, in fact Microsoft just released VC++ to the world for free.





http://msdn.microsoft.com/vstudio/expres...





Although I'm a Linux guy and I would recommend you use the GNU compiler instead I still recommend the MS compiler because the installation on Win systems is easier.





Also try DevC++ if you want an IDE.


http://www.bloodshed.net/devcpp.html
Reply:bordland. or try checking computer mags from time to time.
Reply:Dev C++


www.bloodshed.net
Reply:go to bloodshed.com they have a nice IDE with a g++ compiler for free.


How does the C++ compiler treat an inline function?

the compiler , instead of generating a call to this function will copy the code of the function , this will speed up the code of this fuction , but it tends to create bigger code.

kudzu

What is a C compiler that runs under linux windows and dos?

There isn't one. You can get a Windows version of GCC as well as the Linux version, but they are not the same compiler - they are different versions of the same compiler.





Rawlyn.

What is a C compiler that runs under linux windows and dos?
Google for gcc:


http://gcc.gnu.org/





Of course you'll have to get different binaries for different OSes.
Reply:I think ASCI C, is the only one.


Can u compile c pgm in c++ compiler?

Sometimes, but not always because C++ is not a complete super set of C language, all C language code is not valid in C++. There are lots of differences between C and C++, read:


http://david.tribble.com/text/cdiffs.htm





Here are some small examples which compiles in C and would fail to compile in C++:





int main()


{


int class;


class=10;


printf("%d",class);


}





This will not compile under C++ because class is a keyword, but will compile in C without any problems. Similarly any keywords which are specific to C++ such as public, private, virtual, friend etc can be used as identifiers in C, but not in C++.





int fun()


{


//some code


}


int main()


{


fun(10,20);


}





This will fail to compile in C++, because in C++, the declaration of a function with no parameter list is equivallent to declaring it as function with void parameter list. But in C language, it means a function with unspecified number of paramerters and we can pass any number of arguments to this function in C.











#include%26lt;stdlib.h%26gt;


int main()


{


int *array=malloc(sizeof(int)*100);


}





This is valid in C because a pointer of type void* can be assigned to any other pointer without cast, but this is not the case with C++ and we will have to give an explicit cast to it as:


int *array=(int*)malloc(sizeof(int)*100);

Can u compile c pgm in c++ compiler?
yes u can compile. C++ is based on c only know. So c++ compiler will very well know about ur c syntax.
Reply:Yes we can
Reply:yes . You can compile a c pgm in a c++ compiler assuming u have the std libraries..
Reply:Yes. you can do.


But it also depends on the C++ compiler you are using.


Turbo C++ compiler allows that.


Some C++ compilers dont allow that and the yrequire strict C++ syntax and libraries.


I downloaded Dev-C++ compiler now it compiles the codes but don't run..why?

So you build an executable successfully and execute the result but nothing happens?





Maybe the code compiles but is bad?

I downloaded Dev-C++ compiler now it compiles the codes but don't run..why?
I think it's probably best to have someone help you in person.





But you could determine where the problem lies first - Dev-C++ setup or your code. You could download some simple example code that is known to work with Dev-C++ and test it.





Did you write a console app or does it have GUI? Report It



Where can I find a free C compiler? I have no interest in C++, I just need to compile C code. Also if someone?

I myself use dev C++, which can do both C and C++, and has some pretty awesome tools, and isn't too complicated if all you want for is simple stuff. Great tool.

Where can I find a free C compiler? I have no interest in C++, I just need to compile C code. Also if someone?
I think Dev C++ does C but its more for C++
Reply:I believe Dev C++ can compile both C and C++.
Reply:LCC has been around for a long time.





if you have Windows, I recommend mingw. it has several necessary C build tools
Reply:Dev-C++ will do the job. Get it at bloodshed.net.

garland flower

Thursday, July 30, 2009

How did turbo c compiler get its name?

Borland released Turbo Pascal in 1983. The IDE was a big hit - It came a single executable .COM file and the whole code/build/run process was amazingly quick in comparison to other early IDEs, like for example Microsoft Pascal which was much slower. Hence the label "Turbo" that was typical for Borland products 20 years ago.


Turbo C is also a Borland IDE and compiler. It inherited the name from very successful Turbo Pascal product line (discontinued in 1992).


What did the C# compiler say to the diskette box?

Doesn't this belong in the Jokes area?





The only thing you'll get here are probably lame replies like "nothing -- diskettes died before C# was released".

What did the C# compiler say to the diskette box?
ow, C your sharp, and you know im very floppy


C++ and 8085 help?

From were can i download c++ compiler and 8085 programing simulator for free (no shareware)

C++ and 8085 help?
www.borland.com/bcppbuilder/freecompiler...


www.thefreecountry.com/compilers/cpp.s...


http://www.digitalmars.com/download/free...





http://www.softlookup.com/display.asp?id...


http://www.softplatz.com/software/progra...
Reply:try borland





they offer different compilers and many versions of them!


C++ programming?

The following program is working properly with no error.





//***


#include %26lt;iostream%26gt;


#include %26lt;iomanip%26gt;


#include %26lt;fstream%26gt;


using namespace std;





void GetAndWrite(ifstream inFile);





int main()


{


ifstream inFile;


int number;





inFile.open("input.txt");


inFile %26gt;%26gt; number;


cout %26lt;%26lt; "number" %26lt;%26lt; " is " %26lt;%26lt; number;


}


//***





But when i want to pass the input file to a function, some errors happen. i mean the following program doesn't work.





//************************************...


#include %26lt;iostream%26gt;


#include %26lt;iomanip%26gt;


#include %26lt;fstream%26gt;


using namespace std;





void GetAndWrite(ifstream inFile);





int main()


{


ifstream inFile;





inFile.open("input.txt");





GetAndWrite(inFile);


}





void GetAndWrite(ifstream inFile)


{


int number;


inFile %26gt;%26gt; number;


cout %26lt;%26lt; "number" %26lt;%26lt; " is " %26lt;%26lt; number;


}


//***





i used Dev-C++ compiler, but why the second program is not working?

C++ programming?
EDIT:


Make the argument to the function to be a POINTER not the ifstream object itself. Then it will compile and likely work.


In other words use:


void GetAndWrite(ifstream * inFile) // the argument is a pointer


{


int number;


*inFile %26gt;%26gt; number; //dereference the pointer


cout %26lt;%26lt; "number" %26lt;%26lt; " is " %26lt;%26lt; number;


}





int main()


{


ifstream inFile;





inFile.open("input.txt");





GetAndWrite(%26amp;inFile); //send a pointer into the function through the argument


}
Reply:It will be better if you pass olny the string to the function. Do not pass the file pointer. Then inside the function you can do same thing as you have done in first program.

blazing star

Drawing forms in C++?

How would you go about drawing a plain form in C++ without a Visual C++ Compiler? I realize it would be difficult to place everything correctly without seeing it visually, so, what is your opinion and how would you go about doing this?

Drawing forms in C++?
I think you answered your own question: Use an IDE, because otherwise, this is a major pain in the rear.
Reply:Borland gives away a C++ IDE for free. There's also Visual C++ Express from Microsoft, free for download from their Web site. Report It

Reply:I recommend you take a look at the QT library by Trolltech. I think you will be presently surprised how easy it is to do what you want.
Reply:visit my friend's site: http://www.dougv.com/blog/


Program in visual c++?

i want to make a program in visual c++ with use of dir.h header file but in visual c++ compiler their is no dir.h header file ...how i make this program?

Program in visual c++?
Visual c++ is a microsoft standard C++ which is advanced and can produce graphical user interfaces.





The syantax is same C++ but it has lots of libraries and routines


like MFC e.t.c.But general c++ does work in visual c++ environment (converse is not true).





Just go through any visual c++ book


From where can i down load c and c++ compiler on my computer for free?

You can get Visual Studio express for free.


Sleep(1) replacment in visual c++....?

our professor gave us a sample of recursion in c++ (in maze). since, this code is meant to be for PUTTY or Linux Redhat Terminal.....but when i try to run the code in Visual C++ compiler...it gives an error saying that sleep(1) is an undeclared identifier....i believe by having sleep(1) in the code means that Java predefined function is being called but i am not sure...is there any way that this code could run in Visual c++ too?

Sleep(1) replacment in visual c++....?
The sleep function is typically used to suspend the current thread for a given amount of time. There are two main reasons for doing this: 1) you're running a multithreading program and you want a thread to go idle for a while so that the other thread gets some CPU time to do its work, and 2) to introduce a fixed delay so that your program doesn't run too fast.





I'm guessing that your professor hasn't given you a multi-threaded program, so that line is probably in there for the second reason. If so then removing it altogether from the program will probably make it run fine, or you can add a dummy loop to burn off a few cycles. In both cases the program speed will depend on the speed of the machine you run it on.





If you really do want to add a proper sleep then it's going to depend on your target architecture, as sleep isn't standard C++ and it has a higher resolution that that provided by the standard C++ time functions. The easiest way to implement sleep is to include %26lt;windows.h%26gt; and used Sleep(1) instead. For this to work, you might need to change your Visual C++ project settings to use the multi-threaded runtime libraries instead of the single-threaded ones.





Doing it properly, i.e. for a commercial app, is usually a bit more involved. Typically you set up a loop during initialization to burn off some cycles and then count how long it took, this value is then used as the counter in the sleep function to generate a reasonably accurate sleep time. Doing it really accurately requires low-level assembly, but I'm sure that level of accuracy isn't needed in your case.
Reply:Try it like this:





Sleep(1);





...uppercase 1st letter.





Also, it's Win API(apparently)...not avail in console apps. MSVC would NOT compile with it (Sleep()) in the code of a win 32 console app, but a Win 32 GUI app did compile and run.





Here's from MSVC help:





The Sleep function suspends the execution of the current thread for a specified interval.





VOID Sleep(


DWORD dwMilliseconds // sleep time in milliseconds


);





Parameters -- dwMilliseconds


Specifies the time, in milliseconds, for which to suspend execution.





---- if that won't work for any reason, try this:





#include %26lt;time.h%26gt;


/*--------------------------------


sleep()





Works like old Borland TurboC Delay() but only if clock


granularity is millisecs (thousandths of sec)


look for CLOCKS_PER_SEC in time.h file





This function should work in millisecs in MSVC++


IE: a call like so:


sleep(1000); // yields a 1 second delay


*-------------------------------*/


void sleep(long d)


{


clock_t start=clock();





while(clock() - start %26lt; d);


}

imperial

What's wrong with my function in C?

void arrstrcpy(char *strdest, char *strsource, int index)


{


int i;


for (i = 0; i %26lt; strlen(strsource); i++)


{


strdest[index][i] = strsource[i];


}


}





I wanted to create a function that will copy a string to an index of an array of strings.. So i ended up in this piece of code.. My Dev-C compiler says it has an invalid argument passed on to the function.. By the way, the example I used is as follows:





char names[99][20], stemp[20];





strcpy(stemp, "Hello World");


arrstrcpy(names, stemp, i);





Please help me.. I didn't understand what my Compiler meant for the error... And if ever you know what's the better function for it, please tell me.. Thanks!! I really need it... (^^,)

What's wrong with my function in C?
Hi,





your function accepts pointers to strings, but you are passing with "names" an array of strings.





change your function declaration to





void arrstrcpy(char **strdest, char *strsource, int index)





which means with **strdest you pass a pointer to pointers (a pointer to an array of strings.








good luck


M.
Reply:"I wanted to create a function that will copy a string to an index of an array of strings"


There's a function that does it for you. It's in the string library. strcpy and strncopy





So you don't need a loop that copies character by character. Slow and inefficient. You're better off using the optimised strcopy that memory copies efficiently. We'll use strncopy because it's safer than strcopy.





I looked up the strncopy signature at http://cppreference.com/stdstring/strncp...





Hence, in your arrstrcopy, you want:





strncopy(strdest[index], strsource, sizeof strsource);





That's it. Actually, I don't know if this will work because I have no idea what your compiler is complaining about. I don't want paraphrasing. The compiler gives you a very specific error log. Post that and you get better help.





EDIT: And yes, what the guy above said. Your function signature is off.


C++ Programming help please?

Whenever I used scanf and printf in my Program, it compiles and runs successfully but during running when inputting data it doesnt respond and halts, but whenever I used cout%26lt;%26lt; and cin%26gt;%26gt; it responds and runs with no problem, Whats the most possible reason for that?


Im using DEV-C++ compiler

C++ Programming help please?
well... the printf, scanf function are C language instructions , not C ++ instructions .. that's why it doesn't work I think ... if you used another C compiler .. it may work
Reply:It doesn't matter if you use cout or printf in C++, you can do both if you include the right header files. Anyway, the reason for this could be many, you need to post the code to get a straight answer.
Reply:If you are using C++, you will want to use std::cin and std::cout


instead of scanf and printf.





As for your problem, Are you sure you are terminating your scanf program correctly? Please post the code so we can look.





Roland A, Please see the Design And Evolution of C++.
Reply:Actually, the answer above isn't, strictly speaking, correct.





C++ _is_ c, but with extensions.





scanf (and fscanf) are useful for reading data that you know is formatted (that's what the f stands for) in a precise way.





These statements:


int n1, n2;


scanf("%d %d\n", %26amp;n1, %26amp;n2);





will look for a couple of numbers separated by a space and terminated with a newline, and store the numbers into n1 and n2. Notice that the "enter" key does not generate a newline character.


Strange as it seems, to end this scanf call, you need to press ^N (control - n). Go figure.








If you're reading sequences of ASCII characters, I recommend using fgets:





char buffer[1024];


fgets(buffer, 1024, stdin);





stay away from gets() -- it's a dangerous input function.


Note that fgets stores the newline character in the string it reads. You can kill the newline (if you don't want it) with:





char *cp=strchr(buffer,'\n');


if (cp) *cp=0;





Those lines will replace the newline (if it exists) with a null, terminating the string.





To use fgets() you need to #include %26lt;stdio.h%26gt;


Note that stdin is the pre-defined name of the standard input stream.





To use strchr() you'll need to #include %26lt;string.h%26gt;





If you want to define your input buffer using a more "C++" style, you could do:


char *buffer=new char[1024];


This ensures that when the variable goes out of scope, the memory it points to will be automatically freed.











Hope this helps.


Free Live Linux with C/C++ compiler support !?

Does anyone know where to find such a Linux on the net ?

Free Live Linux with C/C++ compiler support !?
you can find several distrubitions on the internet for free, check this out http://dir.yahoo.com/Computers_and_Inter...





and most of them has an live cd options. i prefer ubuntu linux (http://www.ubuntu.com) that has an live and install cd mixed option. you can use


How can i print unicode characters in C?

im using dev c++ compiler and i cant print any unicode characters like ♠♠♠,evrytime i paste it in the compiler,? comes out.

How can i print unicode characters in C?
use putchar(int);
Reply:Good work, just to add, the 'int' is the unicode number for the character. Report It

Reply:http://www.basistech.com/unicode/

elephant ear

What's the best dev c++ compiler to download?

I'm a beginner

What's the best dev c++ compiler to download?
It's not a compiler, to be correct, it's an IDE (Integrated Development Environment)





I personally use the core version 5.1
Reply:http://www.bloodshed.net/devcpp.html
Reply:visual studio, 2005 is probally best for now and it is free.
Reply:Dev C++5.0 beta works good for me.


http://sourceforge.net/project/downloadi...


What is different between C and C++?

Can I use C++ compiler for programming C. whether its give wrong solution

What is different between C and C++?
C





A high-level programming language developed at Bell Labs that is able to manipulate the computer at a low level like assembly language. During the last half of the 1980s, C became the language of choice for developing commercial software. C, and its object-oriented successor C++, are used to write a huge variety of applications and almost all operating systems. There are C/C++ compilers for all major operating systems and hardware platforms. C was standardized by ANSI (X3J11 committee) and ISO in 1989.





C++





An object-oriented version of C that has been widely used to develop enterprise and commercial applications. Created by Bjarne Stroustrup, C++ became popular because it combined traditional C programming with object-oriented programming (OOP) features. Microsoft's Visual C++ is the most widely used C++ language.
Reply:C++ is object oriented. You can define classes.





You may mimmick object oriented programming with plain C, but is a little bit more complicated.
Reply:You can definitely use a C++ compiler to compile a C program. C++ is just an extension of the C language, that supports Object Oriented programming.
Reply:C++ is an increment over C (++ is an increment operator). The main difference is that C++ is a partial Object Oriendted programming Language. C++ compiler supports Basic C syntexes as well as OOPs features like Inheritance, Polymorphism, Data Abstraction etc etc. I suppose, C compiles may not support OOPs features.


U must add (include) proper header files. And remember to save it with a proper extention (.c for C programms and .cpp for C++ programms)


U can refer Kanitkar's Let US C %26amp; Let Us C++
Reply:You can certainly use C++ compiler to C programs. The difference is that C++ supports object oriented programming. Any wrong solutions you may be getting is because of a conflict in the program itself not the compiler.
Reply:two little plus signs. do i win the prize?
Reply:ok.. i am telling u


1. C with claasses hence C++


2. C++ provides data abstraction,encapsulation,inherentence and polymorphism concept.


3. C is top down programming approach.


C++ is bottom up programming approach.


4. In C Structure u can not declare function where as in C++ u can declare function(like classes)


5. C is faster then C++


C++ is generally slower at run time and much more slower at compile time.


6. In C does not have class/object concept.





that's all my dear hope u got it(onlykeshu@yahoo.co.in)
Reply:Hello. - Links Below.





Have a nice day. :)
Reply:You should be able to use a C++ compiler to program C and vice versa as most decent C++ compilers have a backwards compatibility in a sense.





There are certain things to watch out for and ways to do things in order to ensure the compatibility and correct syntax etc. Check this site http://developers.sun.com/prodtech/cc/ar... for an overview of this subject.





Good luck with your programming


Why we write a C++ compiler in C.?

Compilers are programs that take a source file and turn it into machine code. As such, they take a higher level language and create a lower-level program.


In the beginning, all that existed was machine language. Then, opcodes were writen as assembly code. These were translated into machine language with an assembler. The first compilers were written in assembler, and then we had a way to write programs in higher level languages such as C. It would be much more difficult to write the compiler in assembler (though portions of it may have been done so). So, we use a high level language to create another high level language.

Why we write a C++ compiler in C.?
as the name indicates that c++ is a successor of c. do u learn exactly to write essays in new language without learning alphabets? for java it is both compiler %26amp; interpreter.as the interprter debugs ur source in line by line.it is not incase of c or c++.c++ is a semi object oriented.its compiler may written in top-down or bottom-up manner for better performance.
Reply:Not only C++, almost all compilers are written in assembly level language and C. This is because C language supports some commands of assembly level language.
Reply:Let me ask you this - what other language do you suggest we write them in?





It's going to be C or asm, and personally, I think C is a lot friendly, don't you?!





Rawlyn.
Reply:Because C is a good low level language that is good for such a task. Writing a whole compiler in assembly would be tedious. Writing one with Visual Basic, Java, COBOL, Fortran, C#, etc. in that fashion would be futile, who knows if it would even be possible. And if you have a C++ compiler good enough to build another C++ compiler, why not use the original compiler and bypass the whole hair pulling thing.


Program for C programing?

I just bought a book to learn how to program in C, and I am looking for a free program (with a C compiler) to write the code... I am running Windows Xp...

Program for C programing?
GCC is a very good C/C++ compiler, and it's free! GCC is for Linux but it has been adapted to windows in many ways. A good example in this case is the mingw compiler. You can download only this compiler and edit the code with any text editor, or if you prefer "all included" a solution is dev-cpp. Download from here:
Reply:Get the GCC compiler and Eclipse. Eclipse is a quite nice development environment that includes a nice debugger.
Reply:How about notepad.
Reply:I second the gcc (gnu c compiler) suggestion.


avaliable at:


http://gcc.gnu.org/





Also for editing, the traditional unix editor is vi. There is a


pc version called gvim. It's free too.


http://www.vim.org/


vi is not a word processor type editor but for programming


I think it is much more useful. Might take some time to


learn though.
Reply:Um, do you want to learn to program XP in C/C++? Try downloading Microsoft Visual C++ 2005 Express from Microsoft's web site. It's free. You'll like the IDE which has many text editing features and a debugger - you will need the debugger.


Outside of that, Borland and Microsoft (again) have command-line Windows compilers and linkers free too. No IDE or debugger though.





If you get Express, you'll have to read about making Windows console programs in the on-line help file. It isn't exactly the same as programming under DOS. At least when you move up to Windows GUI programming, you won't need to get and learn another compiler.

lady palm

How to make a program in C++(turbo c++) that can do addition with the given of two integers?

how to make a program in C++(turbo c++) that can do addition with the given of two integers?





I know this is odd but i just want to know how?what if I want to compute 3 integers or 4? How do I do it?





by the way I'm a beginner. Plese don't tell me to find it in the internet because I've already did it. the syntax is different because were using a very old turbo c++ compiler (v1.01)





post the program here...thanks

How to make a program in C++(turbo c++) that can do addition with the given of two integers?
#include%26lt;iostream%26gt;


using namespace std;





int main(int argc, char **argv)


{


int a,b,c,i;


int g=2;


c=0;


for (i = 0; i%26lt;g; i++)


{


cout %26lt;%26lt; "get number";


cin %26gt;%26gt; a;


c = c+a;


}


cout %26lt;%26lt; "number is " %26lt;%26lt; c;


}





just change the number 2 with the number of integets you want to add


What is a good, free c++ compiler and IDE?

microsoft c++ express





http://www.microsoft.com/express/vc/


Which is the best c++ compiler except Turbo C++????

The GNU compiler is the in thing currently .. helps a lot in system programming etc.

Which is the best c++ compiler except Turbo C++????
http://answers.yahoo.com/search/search_r...
Reply:what about gcc compiler in Linux, it is wonderful
Reply:I like Visual C++. Because I am programming on Windows, using Microsoft’s compiler I think that is better because it’s friendly with the Microsoft’s operating system. Visual C++ 6 is the best for me, it is fast and don’t have many furniture.
Reply:try the Borland c++ compiler or the visual C++ compiler,both are equally good
Reply:Visual c++ is best for u if work on it a lot as it is user fgriendly with little funitures


by other, u can feel others as mess when u try this....
Reply:Try GNU C++ from http://gcc.gnu.org/





Open source and free.


Can c++ program be compiled on c compiler?

Well, sort of. You would have to alter some of the include file entries and recode most of the class calls. The very basics would be OK.





If you are going back and forth, this will drive you NUTS.

Can c++ program be compiled on c compiler?
no..


as far i as i know u can run ur c programs in c++, but


u cant run ur c++ programs in c.
Reply:You can't go backwards. C++ is an extension or superset of C, meaning that it has more key words and operators. Therefore, no, you can't compile a C++ program on a strictly C compiler. The one thing that you will have a possibility of doing is compiling a C program on a C++ compiler, and errors can creep in here depending on the code used. Fortunately, there are very few compilers left in the world that are incapable of doing both. That is to say, compatibility modules are shipped with most modern compilers or IDE's intended for C++. So, you can likely find a C++ compiler for free quit easily, maybe even the one you have now. Check your documentation, then if you need to get a free compiler try the URL below. They also have tutorials, articles, editors and compilers in other languages.
Reply:sometimes yes, c++ program can be compiled on c compiler.


for example if it has cin , cout, the answer will be no.
Reply:no
Reply:C++ is an upgraded version of C. And yes you can compile a C++ program using C compiler, provided you used biult-in function in C++ that is in C. Functions such as 'print', 'scan'.





For more free C++/C source codes, visit, http://smartcoder.awardspace.com/


Then go to the C++/C category.





KaBalweg


http://smartcoder.awardspace.com/

snow of june

What is a good, free c++ compiler and IDE?

If you're using Windows XP/Vista, check out the Visual Studio Express 2008 environment. Totally free download, and made for the hobbyist/student. There is a C++ compiler, Visual Basic, C# . . . Search for it on microsoft.com.

What is a good, free c++ compiler and IDE?
try bloodshed dev-c++





its lightweight compared to eclipse





Features are :





- Support GCC-based compilers


- Integrated debugging (using GDB)


- Project Manager


- Customizable syntax highlighting editor


- Class Browser


- Code Completion


- Function listing


- Profiling support


- Quickly create Windows, console, static libraries and DLLs


- Support of templates for creating your own project types


- Makefile creation


- Edit and compile Resource files


- Tool Manager


- Print support


- Find and replace facilities


- CVS support
Reply:Eclipse. It can also do java.





http://www.eclipse.org/


Trouble with graphics driver in Turbo c++!?

My Turbo c++ compiler gives an error message "Graphics driver not initialized please use initgraph".Even after using initgraph my compiler says the same problem?

Trouble with graphics driver in Turbo c++!?
Maybe you got the parameters wrong and initgraph failed to initialize, or maybe the BGI file is missing. The correct parameters are:





initgraph(int *driver, int* mode, char* path);





You would typically use DETECT as the driver, in which case the best possible drivers will be detected.





int gd=DETECT, gm;





You might want to specify the path to the graphics driver, which is EGAVGA.BGI for VGA modes (the typical mode). Make sure that it is in the computer. If TC is installed in C:\TC, do a search with the command (after CDing into C:\TC) with DIR EGAVGA.BGI /S


If it is there somewhere, you will see the path. If it is present in (say) C:\TC\BGI, you have to give the third parameter as


"C:\\TC\\BGI".


So, initgraph would typically be:





int gd=DETECT, gm;


initgraph(%26amp;gd, %26amp;gm, "C:\\TC\\BGI");


How Do I Compile C++ Source Code ?

I stumbled upon a c++ source code of a programm and it needs to be compiled by me. I am under win32 and i download the Dev-C++ compiler from sourceforge.


Tne source code i want to compile is http://www.shorturlsite.com/?r=8m


but i cant find how to do it. I tried opening the biggest file and compile that but it didnt work. Please help I really need to comile this programm...


Thanks in advance








PS: I have absolutely no knowledge of c++ or any other compilable language ( I can barely handle php)

How Do I Compile C++ Source Code ?
Well, to compile a C++ source, you shouldn't compile any random file, but the project file! I have looked over your source and it looks like a Visual Studio Project (one of the files has the .dsp extension). I am not sure if DevC can compile it, but you can give it a try. If it doesn't work, I recommend Visual C++ Express edition which is free and should do the trick (google for download ;).
Reply:Cute. An Rbot proggie


Can a borland 's C compiler compile a c++ program?

Yes it can compile

Can a borland 's C compiler compile a c++ program?
What happen to the compiler on which you wrote c++?. You can congratulate yourself for doing this but don't say this in an interview. The employer will be worried about his projects and contracts.
Reply:Sure, a C compiler can compile a C++ program as well.
Reply:.





Certainly NOT





C++ is a upgraded version of C language with some additional features and partly OOPS concept.





How could you expect a lower version software to support its higher version?





The higher version softwares could support any of the lower version, but vice versa is not applicable.





For eg. create a document in MSOffice 2000 and try to open it in the old MSOffice. It may open but could not support all the actual properties. But the vice versa is possible, i.e., the higher version can open the lower version file with all the properties being supported.





**********


Vasu M


*********

sweet pea

Help me download C or C++ compiler?

I have this site here...


http://www.delorie.com/djgpp/


I can't figure out what to do


I want to start learning the programming but I can't even download the dang thing

Help me download C or C++ compiler?
There are several, not DJGPP only. Here are just two of them; one (Borland) is a command line compiler. Second, MinGW Studio, has also IDE.
Reply:dowload after search it on the web


Can someone recommend me a good c/c++ compiler. Thanks.?

If you have linux then gcc is good enough.


Otherwise, you have turbo C, VC++ (comes with Visual Studio).

Can someone recommend me a good c/c++ compiler. Thanks.?
http://gcc.gnu.org/
Reply:I strongly recommend using GCC chain. The advantage you get is having a same build environment on both Windows and UNIX.





For UNIX: http://gcc.gnu.org/


For Windows: http://www.mingw.org/





I use it to build Emacs on Windows and never had any problems. Use something that is well ported unless you need some extra/specific features (I once needed to hook into all functions at compile time and it was supported by VC6 compiler)
Reply:non other than visual studio
Reply:visual c++ 6 or gcc/mingw... specifically dev-c++
Reply:I loved using this one a few years ago:


http://www.bloodshed.net/devcpp.html





And then I got this one ...


http://www.microsoft.com/express/vc/





Hope this helps!

bottle palm

In c++, what is the difference between single and double quotation marks?

i'm a c++ beginner and i think that the c++ compiler notices the difference between single and double quotation marks (unlike the other languages i know).


when i try something like





if(ch=="Q") { cout %26lt;%26lt; "true"; }





it tells me that there's an error so i replace the quotation marks around the Q to be





if(ch=='Q'){ cout %26lt;%26lt; "true"; }





and it works fine. why is that?

In c++, what is the difference between single and double quotation marks?
usually the ' is for type char and " is for type string. if ch is char in your example you get an error because "Q" is different in type from 'Q'. 'Q' is a char so if char(ch)==char is evaluated but "Q" is string and char(ch)==string returns an error (invalid type).


My turbo C++ compiler gives an error message as -unable to include iostream.h .?

what u have done is u have not copied the turbo C++ in C: drive or you have made a new folder and the past the turbo c++ there. plz copy your C++ folder to C:drive. and then run it.

My turbo C++ compiler gives an error message as -unable to include iostream.h .?
This is because the %26lt;header files%26gt; include files directories are not set properly. What u can do is click on the options menu of the Turbo c++ interface and then select the option directories. a dialog box will appear set the appropriate path for include, library %26amp; source. for eg. If you have installed tc in c drive and the folder is tc then the path u have to type for the include directory is : c:\tc\include


same way for lib.








Eroz Awari. (NAVSARI)


SGM Shiroiya School Navsari. India.
Reply:i suggest u to install turbo c++ compiler again at the same / different location.
Reply:Did you save the file with extension ".cpp"?


Bcoz the default is ".c".
Reply:change the option working directory path to c++ directory it willbe going to right
Reply:you re install the turbo c++


or change the directory path


from option-%26gt;directory


and save it in option it self


then it will work well
Reply:you should reinstall ur c++ compiler...................





becoz u got a compiler which is corrupted bu someone


Visual C++ problem?

I have just downloaded Visual C++ 2005 express edition. I am new to using the visual C++ compiler.





I see that there is a component called WebBrowser which allows you to view web pages on a form. I would like to be able to download a web page and save it to a file without displaying it.Is there a component you can use for just downloading or is there some way to use WebBrowser for this?

Visual C++ problem?
Hello,





The WebBrowser control is pretty limited in what it can do, and I don't believe that it by itself can download and save pages.





You might want to consider using the WebBrowser control for the display of pages but use the MFC class CHttpFile to download and save web pages. You should also investigate the "Internet Explorer control", which differs from the WebBrowser control in that the IE control allows you to programmatically control an instance of Internet Explorer.





Hope this helps.