Forum: C++ Nov 10th, 2009 |
| Replies: 8 Views: 418 If you have writtern the code , you would not need someone else to make you understand what is going on . |
Forum: C++ Nov 1st, 2009 |
| Replies: 4 Views: 391 Try g++ -Wall file.c , I guess some of the apis you are using does not work with g++ . |
Forum: C++ Sep 8th, 2009 |
| Replies: 19 Views: 647 You need to learn postfix notation and use a stack to evaluate an expression , kerninghan and rithie C book has got code for basic calculator. |
Forum: C++ Jun 8th, 2009 |
| Replies: 4 Views: 672 Check if heapalloc is failing. |
Forum: C++ May 4th, 2009 |
| Replies: 4 Views: 337 That is quite simple , give it a try , you can finish it in an hour. |
Forum: C++ Feb 28th, 2009 |
| Replies: 12 Views: 714 |
Forum: C++ Feb 6th, 2009 |
| Replies: 6 Views: 397 if(str1[i]==str2)
This line is error prone. |
Forum: C++ Jan 31st, 2009 |
| Replies: 4 Views: 375 There are programming lanuguages written specifically for AI , e.g. LISP, C++ is not that suitable for AI, better try some easier topic for your project assignment. |
Forum: C++ Dec 16th, 2008 |
| Replies: 6 Views: 1,314 If you initialize all objects in their constructors , those objects which got initialized, destructor will get called as well. |
Forum: C++ Nov 25th, 2008 |
| Replies: 7 Views: 2,590 Include path of what ? I guess you need to add it in your makefile. |
Forum: C++ Nov 6th, 2008 |
| Replies: 7 Views: 1,617 You can use minix and modify source code here and there , you will never be able to write a new OS code yourself. |
Forum: C++ Oct 24th, 2008 |
| Replies: 3 Views: 465 But why do you need vector of vectors ? |
Forum: C++ Oct 7th, 2008 |
| Replies: 3 Views: 673 Yes I guess , also you might need to change name of the executable in html file. |
Forum: C++ Sep 10th, 2008 |
| Replies: 4 Views: 442 Buying the C++ book by stroustrup and doing all the exercises will serve same purpose. |
Forum: C++ May 27th, 2008 |
| Replies: 4 Views: 480 Define all the constructors. |
Forum: C++ May 27th, 2008 |
| Replies: 3 Views: 2,549 No you cannot convert , are you looking for something like this ?
char *a="hellp";
char b = *a ; |
Forum: C++ Apr 4th, 2008 |
| Replies: 2 Views: 550 I guess you need to pass filename.c_str() . |
Forum: C++ Apr 2nd, 2008 |
| Replies: 7 Views: 1,423 You can also use template if it is allowed for your homework however. |
Forum: C++ Mar 26th, 2008 |
| Replies: 74 Views: 4,480 You cannot compare string like that use functions like compare ,etc. |
Forum: C++ Mar 7th, 2008 |
| Replies: 26 Views: 6,205 I could use netsnmp from sourceforge successfully for unix. |
Forum: C++ Mar 4th, 2008 |
| Replies: 4 Views: 2,279 term += 1/(x*(x+1));
or
term = 1/(x*(x+1));
? |
Forum: C++ Mar 3rd, 2008 |
| Replies: 18 Views: 1,687 I hope this is a C++ project assignment, you are not using c++ types like std::string which could simplify your coding. |
Forum: C++ Jan 17th, 2008 |
| Replies: 14 Views: 1,759 Except for the facts like C++ has more keywords, so int new; will not compile in C++, but it will work without any problem in C. |
Forum: C++ Jan 17th, 2008 |
| Replies: 73 Views: 8,675 In .txt , read the text file using fstream |
Forum: C++ Dec 19th, 2007 |
| Replies: 16 Views: 2,179 Try to implement some difficult algorithm, pick something like image processing, etc, also check sourceforge.net however do not copy and submit it as your project assignment. |
Forum: C++ Dec 13th, 2007 |
| Replies: 9 Views: 920 This is probably the shortest piece of C++ code ever written by someone :) |
Forum: C++ Dec 9th, 2007 |
| Replies: 2 Views: 906 You can keep the question and answer in afile and read from it. |
Forum: C++ Dec 5th, 2007 |
| Replies: 9 Views: 7,137 You can find such library at sourceforge.net |
Forum: C++ Nov 28th, 2007 |
| Replies: 13 Views: 1,345 |
Forum: C++ Nov 8th, 2007 |
| Replies: 5 Views: 1,018 3(3(3(3x+1)+1)+1)+1 < 500 |
Forum: C++ Nov 8th, 2007 |
| Replies: 9 Views: 2,833 Can you not use the string apis ? |
Forum: C++ Nov 7th, 2007 |
| Replies: 57 Views: 13,181 Download something from sourceforge, if you can understand the code, modify each lines of code and then submit it as your homework, if you cannot understand it, you might get caught. So it is better... |
Forum: C++ Nov 3rd, 2007 |
| Replies: 4 Views: 759 Rather posts the portion of the code which is giving you trouble, and also detail the problem that you are facing. |
Forum: C++ Oct 21st, 2007 |
| Replies: 10 Views: 5,749 You have to write it as a window service. |
Forum: C++ Oct 12th, 2007 |
| Replies: 3 Views: 525 I think the C++ book "Thinking in C++ " available online, just search it in google. |
Forum: C++ Oct 11th, 2007 |
| Replies: 37 Views: 3,752 Use >> in lieu of getline (it is not a C++ function) |
Forum: C++ Jun 13th, 2007 |
| Replies: 4 Views: 1,122 where have you defined delete? |
Forum: C++ May 16th, 2007 |
| Replies: 2 Views: 1,198 I think only book you will ever require is C++ by Bjarne Stroustrup. |
Forum: C++ May 16th, 2007 |
| Replies: 13 Views: 5,323 Yes use pow(abs(n) ) *abs(n)/n |