How can I create header files in C++?
339058
If you are using Visual studio do a file create new and it will give you a list of files that you can create and it should have a header file.\n\nIf your not using it and want to use notepad make sure you are in the same folder as the rest of the project is and just create a text file with the extension .h\nfor example\ncars.h\n\nThis way in your cpp file you can use # include "cars.h"
971846
Use the Contractible Header script from Dynamic Drive to EASILY do this.  See source for URL.\n\nGood Luck!
109430
I use notepad++ its a free program that you can search for and download. once you have it you can put it in c++ mode and start writng. once your finished compile it
873482
Learn C++, and get back to me.
1135646
Your best bet is to google the topic. I have done this for C++ and found numerous sources that detail the language. Try C++ file extensions, and then search. This should bring up sources that will have the info you need.
1055975
WIthin c language you have can do functions as define within the header file.\n\nFor instance: \n\n#if defined(linux) || defined(__APPLE__)\n#  if !defined(TRUE)\n#     define TRUE 1\n#  endif\n#  if !defined(FALSE)\n#     define FALSE 0\n#  endif\n#  if !defined(max)\n#     define max(a,b) (((a) > (b)) ? (a) : (b))\n#  endif\n#  if !defined(min)\n#     define min(a,b) (((a) < (b)) ? (a) : (b))\n#  endif\n#  if !defined(MB_OK)\n#     define MB_OK 0\n#  endif\n#  if !defined(Sleep)\n#     define Sleep(x) usleep((x) * 1000)\n#  endif\n#endif /* linux || __APPLE__ */\n\nOr you could do something like this which is a macro.\n#define TEST_DEVICE(X) (((X).errorCode) != HD_SUCCESS)\n\nSo usually within header files we just include typedefs, defines, and functions.\n\nIF we include functions, then in the main class we implement those functions. Think of it as a interface.\n\nFor instance:\nindex.h\n=================================\nvoid hdBeginFrame(int hHD);\nvoid hdEndFrame(int hHD);\n\nindex.c\n=====================\nvoid hdBeginFrame(int hHD) {\n.....\n}\n\nSo instead of declaring the functions in your .c file at the beginning , you could do them within the header file.\n\nIT acts as a interface in other languages. The reason why we have .h files is simple portability.  When developers compile their code or module into dlls or so objects and they want their clients to use them, they can check the .h files to see which functions are included within that dll.\n\nThat is how we can do it. :)
153051
Exactly.  It is a non-standard header file for a non-standard library.  g++ may support things like curses or ncurses as non-standard graphics libraries.  You'll have to find documentation, since I've not had much to do with Macs or their compilers and libraries.  The C and C++ standards do not specify any functions for graphics, so all grahics interfaces are different per compiler/environment/platform.
967338
If you are fine with any c compiler, you can get visual c++ 2005 express from microsoft site.  It's very good and it's free.\n\nTurbo c++ is quite old and may not support many new c++ features.
38616
Did you want to just look at the header file itself?  If so, their location is dependent on the the operating system and the compiling system that you are working with.\n\nLike with GCC on a *nix system, you can usually find them here.\n\n/usr/local/include\n/usr/lib/gcc-lib/target/version/include\n/usr/target/include\n/usr/include
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}
502152
To compile and run C++ code you can either use Microsoft Visual C++, Microsoft Visual Studios, or Borland's C++ Compiler 5.5.  There are other compilers out there, but these are the 3 that I have personally used before.  The Borland Compiler is a free download from http://community.borland.com/article/0,1410,20633,00.html while the Microsoft programs are not free.  I'm not familiar with this AC-Tool program you're using though, or what it's being used for in this case.\n\nWhen I used an earlier version of the Borland Compiler in my college days about 4 or 5 years ago, you had to write your C++ program in a text editor, I recommend using Notepad, and saving it as a .CPP file, just change the extension from .txt to .cpp when you go to save it.\n\nUsing Borland was a little cumbersome as it was a command line compiler, so you have to use the windows DOS prompt.  It may have been changed to a GUI style of application, but I don't know and can't find out at the moment as I can't downloand and test this thing at work.\n\nHowever, if you explore the Borland forums a bit, you should find a wealth of knowledge on how to use the compiler.  Hope this helps you out a bit.
254178
With GCC compiler (used by Dev-++) you can write:\n\nsystem("cls");
67914
hey!! looking for ur c++ project.. source code online?? isnt a good idea!\n\nwell thetopic u've selected is idiotic.. \nu better submit an original work.. or else u'll loose marks!\n\nn if programming is ur problem.. n u're lookin for an easy way out.. try looking for tutorial sites for c++.. n search for samples .. but then be assured that ur teacher will come to know aboiut the authenticity just by the format.. \n\nwell if u're smart enough to edit the stuff n then submit it.. only then its of some use.\n\nn by the way.. i've heard of this project .. its common.. i mean even some of my batchmates did this project.. a very ordinary 1... so u may get some help from ur seniors as welll!!
751588
Sorry.... i guess ur question a lil tricky.... Well i am C++ prog and work on the VC++ platform...
270512
Would be something roughly like this:\n\n#include <cstdlib>\n#include <iostream>\n#include <fstream>\n#include <string>\n\nusing namespace std;\n\n\n\nint main(void)\n{\n    string  T;\n    ifstream inf;\n    ofstream outf;\n    inf.open("myfile.txt", ios::in);\n    outf.open("YourFile.txt", ios::out);\n    while(!inf.eof()){\n        getline(inf, T, '&#92;n');\n        outf << T << "&#92;n";\n        }\n    inf.close(); \n    outf.close();\n    system("PAUSE");\n    return EXIT_SUCCESS;\n}\n\nI think.
114143
I think that you’ll find Visual C++ (6.0) files in there
232738
C++ Compilers : \n\n1. Borland C++Builder Compiler and Command Line Tools \nhttp://www.borland.com/downloads/download_cbuilder.html\n\n2. DJGPP \nhttp://www.delorie.com/djgpp/\n\n3. Microsoft Visual C++ 2005 Express Edition \nhttp://msdn.microsoft.com/vstudio/express/visualC/default.aspx\n\n4. Bloodshed Dev C++\nwww.bloodshed.net/devcpp.html \n\n5. GCC \nhttp://gcc.gnu.org/\n\n6. TurboC++ IDE \nhttp://www.digitalmars.com/\n\n7. Cygwin \nhttp://www.cygwin.com/