What is wrong with this code ? its c++?
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 {
696961
It's hard to read your code, but it looks fairly correct, at least in the way it accesses the array.  I don't see a count() method, though. Also, you have = instead of == in your if() conditional. I don't think you want that.
440005
Pseudocode, I'm not up on my Java syntax:\n\nint sum=0;\nfor(int i=0;i<array.size;i++)\n  sum+=array[i];
869459
void main()\n{\nint n,rev=0,ro,n1;\ncout<<"enter the number";\ncin>>n;\nn1=n;\nwhile(n>0)\n{\nro=n%10;\nrev=rev*10+ro\nn=n/10;\n}\nif ( rev== n1)\n cout<<"the number is palindrom";\nelse\ncout<<"the number is not palindrom";\n}
12275
Follow this link:\n\nhttp://www.thefreecountry.com/compilers/cpp.shtml\n\n:)
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,
471250
Fairly straight forward. The code below is the skeletal C++ code (since I am not familiar with Java).\n\nclass Complex {\npublic:\nComplex () {a = 0; b = 0;}\nComplex (float x, float y) { a = x; b = y;}\nfloat real () {return a;}\nfloat imaginary () {return b;}\nvoid Add (Complex c, Complex d) { a = c.real() + d.real();\nb = c.imaginary() + d.imaginary();}\nvoid Subtract (Complex c, Complex d) {....}\nvoid Print() { cout << a << "+ i" << b; }\nprivate:\nfloat a;\nfloat b;\n};
369214
Its a pointer that has the value of 0 (NULL).
614947
#include <iostream.h>\n#include <conio.h>\n#include <process.h>\n\nmain()\n\n{\n\nchar c;\n\nclrscr();\ncout<<"Press 0 to exit&#92;n";\n\ndo\n{\n\n c=getch();\n\n switch(c)\n {\n   case '0': exit(0);\n   case '1': cout<<"I";break;\n   case '2': cout<<"L";break;\n   case '3': cout<<"o";break;\n   case '4': cout<<"v";break;\n   case '5': cout<<"e";break;\n   case '6': cout<<"U";break;\n }\n\n} while (1);\nreturn 0;\n}
374089
It has 2-bytes code, so you need to examine two consequent bytes. It is not C++ specific, it is PC-specific.
39247
It's a declaration.  You are not defining "int", you are only using an instance of it.  It's the same between C and C++.\n\nLocal variables are not necessarily initialized to any particular value, just globals (including namespaced and static globals)
464755
Do a search for 'C language tutorials' works for me. However if you have a choice go on to C++ even better
740430
You are you using a a pointer and an array while passing a variable to a function called Point. I'm not quite sure what you are trying to point to, but you are copying the heap.
604118
This is an identical java code for your C++ code,\n\n1. create a filename, say HelloWorld.java,\n\n2. Write in following codes,\n\npublic class HelloWorld\n{\n      public static void main (String args[])\n      {\n           System.out.println("Hello World");\n      }\n}\n\n3. Save it and compile it. Then open the class file using java.
345978
/* Here's the entire code [including the main() function]. I have written a generic reverse function which can be used anywhere. */\n\n#include <stdio.h>\n\nvoid reverse ( char str[] )\n{\n        char *ptr = str;\n        int arrLength = strlen( str );\n        int i;\n        char temp[arrLength];\n\n        for ( i = (arrLength-1); i >= 0; i-- )\n        {\n                temp[i] = *ptr++;\n        }\n\n        ptr = str;\n\n        for( i = 0; i < arrLength; i++ )\n        {\n                *ptr++ = temp[i];\n        }\n\n\n}\n\nint main()\n{\n        char str[] = "This will be reversed";\n        reverse( str );\n        printf( "%s", str);\n\n}
314789
How to work it? It's not very difficult. You just need to write your code and compile it.\n\nUnfortunately I can't send you anything, but you can check out my first source for more information.
670568
Try Planet Source Code:\n\nhttp://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=3270&lngWId=3\n\nThis one's in C++. You should be able to convert it back to C...