we can use main() in c++ why?
538658
Because C++ allows it.
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...
1158232
#include <iostream>\nusing namespace std;\n\nvoid main ()\n{\nint countDown= 0;\n\ncout <<"Enter the number you want to start from: ";\ncin >>countDown;\n\nfor ( countDown; countDown >= 0; countDown--)\n      cout <<countDown<<", ";\n}\n\nAny other question, just ask, eoroxter@gmail.com\nGood Luck,
561896
Hi,\n\nYou can start reading the basic section in C++, they teach you on what are variables, what are datatypes, and what are loops.\n\nThey will teach you how to use arrays and loops and conditionals.\n\nThat is your best bet...\n\nPick up any standard C++ book and read he intro to programming!
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.
751588
Sorry.... i guess ur question a lil tricky.... Well i am C++ prog and work on the VC++ platform...
654587
C++ is a popular language used to do alot of difficult stuff. You can use it to program for different operating systems.\n\nJava is more of an open language, which will allow you to program for different platformas but more for a web based enviroment. few desktop applications are written with Java.\n\nVisual basic is also a great langauge. It's not as powerful as c++, but it's easy to build application with. It is used for rapid application development. Visual basics IDE's were written using c++ as well as the core of the windows operating system. Some of the smaller programs in windows are written in Visual basic (VB). dont waste your time with VB unless you are a beginner it spoils you rotten its so basic. Start with VB.Net. programs written with visual basic only work on windows. \n\nif by basic you mean Basic and not visual basic, then all i can say is: Basic is basic , i don't know of anyone using basic. I think basic was succeeded by other better languages like C. basic stands for something but i can't remember . \n\nPascal, I think is like C but I am not familiar with it. I think it was succeeded by Delphi.\n\nAnd yes unix is a very powerful operating system used on some servers.
1146701
These tutorials explain the C++ language from its basics up to the newest features of ANSI-C++, including basic concepts such as arrays or classes and advanced concepts such as polymorphism or templates. The tutorial is oriented in a practical way, with working example programs in all sections to start practicing each lesson right away.\n\nhttp://www.cplusplus.com/doc/tutorial/
262740
C++ has classes, C does not. C++ is object-oriented, but it also contains all the functionality that C does.\n\nC requires you to declare all your variables at the top of a function, C++ allows you to declare them whenever you want.
762692
programming language use syntax as way to define instruction structure\n\nfor example, C++ language use ; as the end of an instruction. if u forget to type ; to end your instruction line, the compiler will generate that error.
484581
I am not sure what program you tried, but here is one that should work on borlands compiler.\n\n#include <iostream>\n\nint main() {\n\n    std::cout<<"Hello, world!&#92;n";\n}\n\nI have included the 'std::' namespace in front of the cout.\n\n<Edit>\nAre you running the program from the command line, or just clicking on the exe?\nIf clicking on the exe, a command line will pop up, then disappear after displaying hello world.\nYou need to run it from the command line.
1121450
No. C and C++ are two different languages with different compilers.\nHowever, C is (almost) a subset of C++ and therefore a C++ compiler might be used to compile C++.
448114
In C++ you should do this:
942772
first let me tell u wht is the difference between call by value and call by reference. In the function calling what ever we are the values changed in the function will not be effected in the main function because the function is just copying the values in the main function.This type is called as call by value\nTo eliminate this one if we pass the address of the values into the function the wht ever the chages to the value made by the function will be reflected into the main program this is callled as call by reference\nnow i am writing the call by value function\nmain()\n{\nint a,b;\nvoid swap(int,int);\ncout<<"enter two values";\ncin>>a>>b;\ncout<<"the values of a and b before function call"<<a<<b;\nswap(a,b);\ncout<<"the values of a and b after function call"<<a<<b;\n}\nvoid swap(int f1, int f2)\n{\nint temp;\ntemp= f1;\nf1=f2;\nf2=temp;\n}\nlet us take the value of a and b as 10,20 respectively.now the cout before the function call will display the value as 10 and 20\nafter the function is executed the value of a and b will be same though it has been changed in the function because the function has just copied the values . so what ever changes made in the function will not effect in the mian function.\ninstead if we send the adderess of the values instead of only values changes will be reflected in the main program and the program is like this\n\nmain()\n{\nint a,b;\nvoid swap(int *,int *);\ncout<<"enter two values";\ncin>>a>>b;\ncout<<"the values of a and b before function call"<<a<<b;\nswap(&a,&b);\ncout<<"the values of a and b after function call"<<a<<b;\n}\nvoid swap(int f1, int f2)\n{\nint temp;\ntemp= f1;\nf1=f2;\nf2=temp;\n}\n now the values will be changed in the below program . this is called as call by reference. if u closely observer the both program the change in the second program is tha i used & before the values which means that i am passing the address of the values to it
568732
What is C++ used for?\nC++ is a powerful general-purpose programming language. It can be used to create small programs or large applications. It can be used to make CGI scripts or console-only DOS programs. C++ allows you to create programs to do almost anything you need to do. The creator of C++, Bjarne Stroustrup, has put together a partial list of applications written in C++.
15961
C was the C++ predecessor. As it's name implies, alot of C remains in C++. Although not actually being more powerful than C, C++ allows the programmer to more easily manage and operate with Objects, using an OOP (Object Oriented Programming) concept.\n\nC++ allows the programmer to create classes, which are somewhat similar to C structures. However, to a class can be assigned methods, functions associated to it, of various prototypes, which can access and operate within the class, somewhat like C functions often operate on a supplied handler pointer.\n\nAlthough it is possible to implement anything  which C++ could implement in C, C++ aids to standarize a way in which objects are created and managed, whereas the C programmer who implements the same system has alot of liberty on how to actually implement the internals, and style among programmers will vary alot on the design choices made.\n\nIn C, some will prefer the handler-type, where a main function initializes a handler, and that handler can be supplied to other functions of the library as an object to operate on/through. Others will even want to have that handler link all the related function pointers within it which then must be called using a convention closer to C++.\n\nTo finish this discussion, C++ applications are generally slower at runtime, and are much slower to compile than C programs. The low-level infrastructure for C++ binary execution is also larger. For these reasons C is always commonly used even if C++ has alot of popularity, and will probably continue to be used in projects where size and speed are primary concerns, and portable code still required (assembly would be unsuitable then).
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