Describe header files in c++?
86917
header files (.h) describe the interfaces to functions and classes to source files (.cpp).  The purpose is for a different source file to access functions and classes in your source file -- they would include your header file.\n\nFor instance, if you had a function called Add() which adds two numbers and returns the sum to the caller, and this function was in a source file called math.cpp, then the associated interface (aka prototype) for the function would reside in the header file called math.h.  Get it? math.cpp is the source, and math.h is header file for that source.  Next, a different source file, say one called "client.cpp", could reference the math.h header file using the #include syntax.  This enables code in client.cpp to call the Add() function which resides in math.cpp.\n\nThe reason this is needed because client.cpp cannot reference math.cpp directly.  This is because a source file cannot reference another source file, but it *can* reference a header file.\n\nHope this helps.
345537
Some tutorials I found are:\nhttp://cplusplus.com/doc/tutorial/ , \nhttp://www.zeuscmd.com/tutorials/cplusplus/index.php -- also has source code written specifically for Dev-C++ , \nand http://www.cprogramming.com/tutorial.html#c++tutorial\n\n\nHere is a program that prints out "Hello World":\n\n#include <iostream>\nusing namespace std;\n\nint main()\n{\ncout << "Hello World" << endl;\n\nsystem("pause");\nreturn 0;\n}\n\n\nAlso, http://koders.com/ is a source code search engine that you can use.
346423
check out http://www.planet-source-code.com - I don't do C++, but I use that site all the time, and it has great examples in source code form.
114143
I think that you’ll find Visual C++ (6.0) files in there
588997
I use "C++ How to Program" by Deitel & Deitel.\nIt's really good
979648
C++ but its was used with api that the cmpany came up with so it pretty foreign to must people unless you have the source code and a book explaining the notation must companies now have a set of librays they use for this stuff
316428
For turbo C++ follow the first link.\nYou can also use GUI(Graphic User Interface) compilres like DEV C++ form (bloodshed.net) for free
2853
I always recommend Bjarne Stroustrup's "The C++ Programming Language", third edition.  It cuts straight to the meat of what is different between C and C++ instead of messing around with arrays of char like most tutorials do.
1122186
Thats the standard Input output header file.  it must be there . you just have to set the correct path
794946
cplusplus.com for C++ programming stuff
398955
Java and C++ are remarkably similar in terms of syntax.  Java has all of the same constructs that you are familiar with: for loops, while loops, pre- and post-increment, if-then-else, etc.  So you should be able to pick up the syntax pretty quickly.\n\nThe differences between Java and C++ have more to do with structure than syntax: the way that files are arranged, the way that code is compiled and run, the way that rules are enforced, and the things that come with the package.\n\nWith Java, there is just one file to describe a class, with the interface and the implementation together in the same file.  In C++ these parts are split into a header (.h) file and an implementation (.cpp) file.  This makes things simpler, in that with Java there are half as many files to manage.  It also makes it impossible to lose half of your class, as you can in C++ by losing either the .h or the .cpp file.  It also makes your code more open: if you want to show someone your interface (API) code, then they can also see your implementation.  There is a workaround for this, however, in that you can use the Java-Doc comments to automatically generate HTML-based documentation for your code that only describes your public API.  (Another nice difference –- automatic documentation!)\n\nJava source code is compiled to .class bytecode files.  These files are then run by the Java interpreter/JVM.  This adds an extra layer between your code and the OS, but surprisingly causes very little deterioration in performance, mostly due to really smart JVMs.  This buys you two things: portability and safety.  The portability comes from the fact that code is written to the JVM, which is an idealized stack-based virtual machine, and not to the quirks of the underlying OS.  This is what leads to the infamous “write once, run anywhere” claim.  The safety comes from the fact that all bytecode is checked at run time for any malicious or mal-formed code, and the JVM can restrict the access of any piece of code so that it can't get to sensitive stuff (like your personal files, or the microphone, for instance).\n\nSafety is the common heading for several other differences between Java and C++: there are no pointers in Java (at least not directly), so there are no dangling pointers, uninitialized pointers, or bizarre pointer math errors; arrays are dynamically checked for staying within the boundaries, so there are no out-of-bounds errors; you can't cast an variable to an incompatible type in Java, so data structures can't get corrupted in that way; exceptions must be caught (this check is done at compile time), so there are no uncaught exceptions to bring down your application; and the list goes on!\n\nThus far it might seem like Java is missing a lot of things that are found in C++.  So what would you probably miss if you made the move to Java?  Pointers, templates, operator overloading, multiple inheritance, and a preprocessor.  What wouldn't you miss?  Pointers, templates, operator overloading, multiple inheritance, and a preprocessor.  You might have noticed that these two lists are remarkably similar.  How can this be?  It is one of those things where you might miss some particular feature at first, and even wonder how in the world you will do without it, but once you are familiar with Java and the way that it works, you wonder why you ever bothered with that complicated stuff in the first place.  Java has elegant replacements for many of these missing items, or better yet, makes them completely unnecessary by design.  A good example is multiple inheritance – in Java there is only a single parent class for a given user-defined class, but a class can implement any number of interfaces, which are special classes that only specify methods and operations but have no implementation whatsoever.  A class that implements a given interface can be passed anywhere that the interface is expected, regardless of its size or the way that it is implemented.  It
837959
for understanding c++ from the basics try this site\n\nwww.geocities.com/sstutor\n\ntrust me its the best c++  tutorial site on the net\n\nfor source codes check out these links..\n\nhttp://www.planet-source-code.com/vb/default.asp?lngWId=3#categories\nhttp://www.vyomworld.com/source/LanguageHome.asp?LangId=2\n\nhappy learning
943372
u have to ponit it or use\n\nthese are the 2 way's:\n\n#include <iostream>\nusing namespcae std;\nint main()\n{\nint num[8];\nint index;\n\nnum[0] = 42;\nnum[1] = 2001;\nnum[2] = 7;\nnum[3] = 180;\nnum[4] = 99;\nnum[5] = 1993;\n\nfor(index = 0; index <= 5; index++)\n{\nstd::cout<< index[num] << endl;\n}\n system("pause");\nreturn 0;\n}\n\nor\n\n#include <iostream>\n#define MAX 20\nusing namespcae std;\n\nint main()\n{\n\nint a[MAX] = {23,43,4,5,34,343,12,14};\nint b;\n\ncout.setf(ios::right);\n\nfor(b = 0; b < MAX; b++){\n\ncout << endl << endl;\n\ncout << "The Elemnt in ";\n\ncout.width(2);\n\ncout << (b +1) << " is ";\n\ncout.width(2);\n\nstd::cout << b[a];\n}\nreturn 0;\n}
980273
1. name your source code with .c extension.\n2. type gcc <sourcefilename.c> or cc <sourcefilename.c> \n3. your source code will be compiled and the output file is named as a.out.\n4. type a.out at the prompt to execute your program.\n\nBy default all compiled files will be compiled to a.out output file as a executable. \nyou can change this with optional parameter \n-o<newoutputfilename>
236638
There are two types of libraries: static and dynamic.\nBoth may contain some procedures and data. UNIX uses dynamic libraries with extensions .a and .so. Windows uses .dll.\nI am not going to explain formats used - such as COFF, ELF, PE. \nTo create library, you just compile your code into object files (.obj or .o) and then "archive" them into single file, i.e. the very library.\nWith UNIX, you need to use "ld" librarian. For Windows, it depends on tools: each compiler package has its' own.
505160
its class in c++\n\nhttp://www.cppdoc.com/example/mfc/classdoc/MFC/AFX.H.html\n\nto see more click on the link
120558
Another answer suggested you could write your own\ncomplex functions, and while strictly possible, puts\na lot more burden on you than you might want.  There's\nvery little reason to reinvent the wheel.\n\nThe good news is that complex numbers are supported\nby both the current C ("C99) and C++ ANSI/ISO standards.\nSo if you have a recent compiler, you will just be\nable to use the complex type.\n\nIn the C++ standard, see chapter 26 (specifically 26.2).\nThe header is <complex>, and all of the expected operators\nare provided.\n\nIn the C standard, see section 7.3.  The header is\n<complex.h>, and it uses the new built-in type "complex"\nto provide all of the functions that used to only\nbe provided for float and double.