Forum: C++ Apr 15th, 2009 |
| Replies: 9 Views: 481 Where would a good place be to learn more about multithreading? I don't think there is much at www.cpluplus.com. Any suggestions on libraries/tutorials? Thanks! |
Forum: C++ Feb 18th, 2009 |
| Replies: 7 Views: 1,136 You need to put the return 0; at the end of your main() function. The padBlanks() function will return the string. |
Forum: C++ Nov 23rd, 2008 |
| Replies: 10 Views: 1,710 I believe what you're looking for would be the ASCII character codes (http://www.asciitable.com/). |
Forum: C++ Nov 12th, 2008 |
| Replies: 5 Views: 813 Ah yes I see! That would explain my confusion. Sorry i missed it! |
Forum: C++ Nov 12th, 2008 |
| Replies: 5 Views: 813 What kind of factorial is this? An input of 3 will result in an output of 6... it should be 3 * 1. If you enter 4 you will get something like 24. Factorials break numbers down like this: 12 factorial... |
Forum: C++ Oct 21st, 2008 |
| Replies: 3 Views: 360 Try posting an attempt. You may want to store the input in an array and then sum the elements of the array with a loop. counting the numbers will be the next step. Post the sumation code first. |
Forum: C++ Oct 7th, 2008 |
| Replies: 10 Views: 1,100 If you change the numbers[] array so the first element stored is the length of the array, then you can eliminate the second variable and simply keep passing the array to the function. |
Forum: C++ Oct 1st, 2008 |
| Replies: 10 Views: 1,985 You can loop through a string and find the '/0' though, correct? |
Forum: C++ Sep 25th, 2008 |
| Replies: 11 Views: 20,798 If you want to use modulo without floating points try (int)myFloat % (int)myOtherFloat |
Forum: C++ Sep 2nd, 2008 |
| Replies: 5 Views: 510 Perhaps opening and closing the string for the box causes a 'return' to be placed on it each time. Then, when you open the string again, the stream starts at the end of the string, which would cause... |
Forum: C++ Aug 28th, 2008 |
| Replies: 7 Views: 1,904 Your explanation is very thorough. If you want to read more about the concepts you could try http://en.wikipedia.org/wiki/Object-oriented_programming. |
Forum: C++ May 6th, 2008 |
| Replies: 9 Views: 3,397 Can't a literal constant also be defined as const float pi = 3.14159265358979323? |
Forum: C++ Apr 28th, 2008 |
| Replies: 4 Views: 562 The error makes it sound like you're trying to redefine the function in your main file. You need to declare an instance of a class to use the functions in it. |