what is the concept of hard copy in C++?
612798
the print outs... easier to trace errors since our eyes like hard copies more than soft copies.
142433
you havn't closed "void determinecost (...)" function with curly braces " } "\n\nin c++, you have to close any block of code with } that has been opened with {
500301
You cannot get the source from the executable. This is because there are different ways of doing the same thing. Here is an example of that:\n\nint i;\nfor(i = 0; i < 5; i++) {\n    cout << i << endl;\n}\n\nis the same thing as\n\nint i = 0;\nwhile(i < 5) {\n    cout << i << endl;\n    i++;\n}\n\nand to\n\nint i = 0;\nlabel: cout << i << endl;\ni++;\nif(i < 5) goto label;\n\nThe only way you can do this by printing out the original source file, which can be done as follows:\n\nifstream fin;\nfin.open("program.cpp");\nchar s[80];\nwhile(!fin.eof()) {\n    fin.getline(s, 80);\n    cout << s << endl;\n}\nfin.close();
107090
In C++ the header file (.h) or "spec" should include the definition for all of the external interfaces (i.e. methods called by other files).  The actual implementation of these methods should be in the body (.c file).  If you do this, when you change the implementation of a method in the body you only have to recompile and relink the changed file.
127691
Carbon Copy & Blind Carbon Copy
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.
293879
You say don't use any operators, but that pretty much makes almost every program impossible.  I assume that you don't care about some of the "other" operators that include the stream insertion operators for inputting and outputting results, the function call operator, and the member operator, at the very least.  List of operators:\nhttp://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B\n\nIf you only want to restrict the use of +/-, here's someone that wrote an adder that sort of simulates how it's done in hardware, but he uses lots of bitshift and bitwise operators:\nhttp://www.devmaster.net/forums/showthread.php?t=1727\n\nHere's my little solution, which doesn't even utilize assignment or comparison operators, though it isn't very useful for adding large numbers since it allocates memory then just looks at how much is allocated.\n\n\n#include <iostream>\n#include <string>\nusing namespace std;\n\nint main(void)\n{\n   int a, b;\n   string sum;\n\n   cin >> a >> b;\n   sum.resize(a, 'z');\n   sum.append(b, 'z');\n   cout << sum.size() << endl;\n   return 0;\n}\n// it wouldn't let me indent when I pasted...
256646
I'll put a bit of more information than the previous two answers.. or it'll seem like I'm answering for 2 points ;-)\n\nA for loop in C++ basically has the syntax:\n\nfor([initializations];[condition check];[updates])\n{\n  //statement1;\n  //statement2;\n}\n\nInitializations: Initialize counters, iterators.. any data to be set or reset before the loop starts executing. Multiple initialization statements can be provided in a comma-separated-list.\n\nCondition Check: While the condition is true, keep iterating through the loop. Dont make this a list.\n\nUpdates: Update iterators, indices, counters etc. which need to be updated with every iteration of the loop. Again this can be a comma-separated-list.
7389
There are many, but if I had to pick one, it's the support for generics. That's much like C++ templates (classes or methods that you can customize what types they work with -and other parameters- the moment you need to use them), only they get compiled into intermediate language only once.
209710
C++ uses the same headers as C does. C++ has also some additional files for, e.g., streams and STL.
226617
go to a books store and buy ..herbert schildt the complete edition in c++...why? coz its the largest selling ever c++ and it also gives u a preview of c....just find a nice e-book why waste money on books(if you are new to programming)
602203
Huh, for me C++ screenshots of my programs worked fine... it probably depends on the display engine you program with. If the "Printscreen" -> "Paste" doesn't work, you can probably find a free screenshot snapper online.
1065405
For reference or to copy?
3692
GCC is a C compiler - if you're writing C++ code, you probably want to use G++, which is a C++ compiler.\n\nTo allocate an array of int's in C++, you can either use the traditional C syntax and malloc()/free() like:\n\nint* intArray = (int*) malloc(10*sizeof(int));\n...\nfree(intArray);\n\nor you can use the C++ new operator and new/delete like:\n\nint* intArray = new int[10];\n...\ndelete[] intArray;
264651
A copy constructor for a class is a constructor that has an object of the class as its only parameter. It makes a new object that is a duplicate of the original object.\n\nOperator overloading is defining new meaning for existing operators. For example, string classes usually overload the arithmetic "+" operation to mean string concatenation.\n\nA pointer is a variable that holds the address of another variable.\n\nA reference is another name for an existing object. If you have an object A, and you create an object B, which is a reference to A, when you modify B, you are actually modifying A.  \n\nWhen you have a subroutine, and you pass it a variable as a parameter, what the subroutine gets is a copy of the original value. If you changed the parameter in the subroutine, it does nothing to the original variables value.\nIf, however, you pass a reference to the variable, then any changes you make to the parameter in the subroutine are made to the original value.
423121
are you talking about c++? i have a nice header file that i can give you.. maybe thatll help
275282
If you're working with Excel, consider Visual Basic, which is the language Excel's macros are done in.  But you'll have to know it awfully awfully well.  Same if you used C++.\n\nAnd what makes you think copying that information from a site isn't illegal?