Forum: C++ Jul 3rd, 2008 |
| Replies: 4 Views: 554 Isn't your question vague? Avoid forcing people who want to help you to assume anything. |
Forum: C++ Jun 25th, 2008 |
| Replies: 7 Views: 1,088 Sorry, but I'm not able to understand the format of the output you want from the program. I'll be able to help if you describe in a bit detail. |
Forum: C++ Jun 25th, 2008 |
| Replies: 7 Views: 1,088 Do you mean a bar chart? Then scale those values by a suitable factor and then display the results. For e.g. for Celsius to Fahrenheit, take 0 to 100 on X-axis, and 32 to 212 on Y-axis. Scale the... |
Forum: C++ Jun 25th, 2008 |
| Replies: 7 Views: 1,088 Inside the if blocks that you've commented, wait for a character to be pressed by the user. That would print all the results on the console, and at the same time, the user will be able to view them... |
Forum: C++ Jun 24th, 2008 |
| Replies: 3 Views: 931 Which header file library are you using? |
Forum: C++ Jun 22nd, 2008 |
| Replies: 10 Views: 854 Insert the switch(userChoice) into a do-while loop and specify a break condition for the same. You'll have to increment the wins, loses and ties in the different cases of switch(computerChoice). Hope... |
Forum: C++ Jun 22nd, 2008 |
| Replies: 8 Views: 841 vijayan121 has just provided the functions, you'll have to adapt them according to your main code and use them. His functions will compile, but how do you expect them to run?! |
Forum: C++ Jan 9th, 2008 |
| Replies: 16 Views: 2,176 Then mark it as solved. Use the link that appears at the end of the last post in this thread. |
Forum: C++ Dec 23rd, 2007 |
| Replies: 16 Views: 2,176 I forgot to put this inside quotes.
If you are interested in game programming learn OpenGL. If you already know it, try making games like bingo, reversi/othello, go...
Apart from games, you... |
Forum: C++ Dec 23rd, 2007 |
| Replies: 16 Views: 2,176 the basics in c++ i did solitiare game and tic tac toe game so far
If you are interested in game programming learn OpenGL. If you already know it, try making games like bingo, reversi/othello,... |
Forum: C++ Dec 21st, 2007 |
| Replies: 6 Views: 1,805 Yes, I thought so. Now, as he has specified, changing the memory model is inapplicable to this case. |
Forum: C++ Dec 16th, 2007 |
| Replies: 6 Views: 1,805 I don't know about the best solution. But you can improve the existing program by using long int instead of int and also changing the memory model to large or huge. |
Forum: C++ Dec 16th, 2007 |
| Replies: 6 Views: 1,805 The problem is the same. Solutions are worked out in different manner.
Apart from this, I could not make out from your post what problem you are facing. Please mention if I've misunderstood... |
Forum: C++ Dec 12th, 2007 |
| Replies: 4 Views: 2,607 I didn't understand that.
Also, if you've no more problems, then mark the thread as solved. |
Forum: C++ Dec 12th, 2007 |
| Replies: 4 Views: 2,607 Maybe some problem with the access specifier keywords used for that particular function. Nothing else can explain such a behaviour. Atleast post your .h file so that it makes debugging easy. |
Forum: C++ Dec 11th, 2007 |
| Replies: 5 Views: 756 No, I can't think of a better way. danzona has given an excellent peice of advice. Stick to it.
In doing these logically simple tasks, so you won't get any logical errors. You might get syntax... |
Forum: C++ Nov 29th, 2007 |
| Replies: 8 Views: 889 Just state in the pseudocode that x=x+20 results in incrementing the value of x by 20. Nothing else would be required. |
Forum: C++ Nov 28th, 2007 |
| Replies: 8 Views: 889 I think you've not learnt the basics yet... First the value of LHS expression is evaluated and then it is assigned to the variable on RHS... So, first X+20 (50) is evaluated & then it (50) is... |
Forum: C++ Nov 27th, 2007 |
| Replies: 6 Views: 3,710 Use code tags :D
If you mean that you want to implement the same algorithm for a series of numbers, use arrays. If you want to pass them one at a time to the function, then put the function... |
Forum: C++ Nov 24th, 2007 |
| Replies: 7 Views: 748 Also, this thread contains nothing specific to C++ & so, it should be posted in the C forum. |
Forum: C++ Nov 24th, 2007 |
| Replies: 7 Views: 748 If you want to modify the original program minimally,
*ptr + 1 = 20; // set arr[1] to 20
should be rewritten as
*(ptr + 1) = 20; // set arr[1] to 20
This is because * has... |
Forum: C++ Nov 24th, 2007 |
| Replies: 7 Views: 748 while(ptr >= arr)
{
cout << *ptr << endl;
ptr--;
}
must be modified to
ptr=arr;
while(ptr <= arr+2) |