Forum: C++ Sep 21st, 2008 |
| Replies: 6 Views: 2,814 With DEVCPP this works just fine:
// obtain square root
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
double s, a, b, c, area; |
Forum: C++ Jun 16th, 2007 |
| Replies: 16 Views: 2,305 I was forced to learn it in school. Kind of one unsightly language, and lots of things to trip over, but you get used to that! We used Dev-Cpp (GNU CPP) and I still use that. |
Forum: C++ Jun 16th, 2007 |
| Replies: 4 Views: 1,436 256 colors is 8 bits per pixel. Hope that helps. |
Forum: C++ Jun 16th, 2007 |
| Replies: 4 Views: 8,127 My advice, use the vector container. One of the advantages of using C++. |
Forum: C++ Feb 14th, 2007 |
| Replies: 3 Views: 8,155 |
Forum: C++ Feb 14th, 2007 |
| Replies: 7 Views: 7,355 There is Windows API function, see thread:
http://www.daniweb.com/code/snippet217.html |
Forum: C++ Dec 31st, 2006 |
| Replies: 49 Views: 8,467 If you had used assembly language you would now be 10% done! |
Forum: C++ Oct 13th, 2006 |
| Replies: 6 Views: 4,655 If you have Windoze machine you can use MSvfw32.lib for Dev_Cpp code example see:
"An AVI Media Player (Dev-C++)"
http://www.daniweb.com/code/snippet95.html |
Forum: C++ Oct 4th, 2006 |
| Replies: 7 Views: 1,404 Here are some corrections:
// blah blah blah code
cout << "Please enter initial balance: ";
cin >> acctbalance;
// add the do for the while!!!
do
{
cout << "What... |
Forum: C++ Oct 4th, 2006 |
| Replies: 10 Views: 3,750 Sorting your facevalues won't work, you are sorting strings that when sorted will in no way represent the proper sequence for a straight!
You can give them integer values from 2 to 13, and notice... |
Forum: C++ Oct 4th, 2006 |
| Replies: 2 Views: 1,042 Maybe it's something like this:
// simple to do with copy and paste
#include <iostream>
using namespace std;
void hour_glass()
{
cout << "*******" << endl; |
Forum: C++ Oct 2nd, 2006 |
| Replies: 10 Views: 3,750 Looks like whatever is item in hand[i] is not an integer. I also fail to see how hand[i] can be 1, 2, 3 , 4, ... all at the same time? |
Forum: C++ Oct 2nd, 2006 |
| Replies: 2 Views: 1,448 Thank you, makes sense! Had one of those days with a mental block! |
Forum: C++ Oct 2nd, 2006 |
| Replies: 2 Views: 1,448 I wrote this little code to test a 2 dimensional array. Given the array array[row][col] I can find total_columns, but I am at loss to figure out total_rows.
// 2 D array
#include <iostream>
... |
Forum: C++ May 18th, 2006 |
| Replies: 2 Views: 2,126 Pythagoras is the man's real name. |
Forum: C++ Apr 2nd, 2006 |
| Replies: 12 Views: 2,211 I and some of my friends left project ideas on
http://www.daniweb.com/techtalkforums/thread32007.html
They can appply to any computer language! |
Forum: C++ Mar 4th, 2006 |
| Replies: 6 Views: 3,252 If you exclude number 2, and start you for loop with 3, you need to check only odd numbers, increment you for loop by 2. |
Forum: C++ Oct 25th, 2005 |
| Replies: 2 Views: 1,923 I have played around with SDL that can do both sounds files and graphics things. It is used by gamers a lot and is free for DevC++. Much information availabel. |
Forum: C++ Oct 16th, 2005 |
| Replies: 7 Views: 4,354 Is file you want delete still on your editor? |
Forum: C++ Oct 16th, 2005 |
| Replies: 6 Views: 1,420 Looking at the last three digit only, guess would be number2 is random.
Fuzzy Logic? |
Forum: C++ Sep 25th, 2005 |
| Replies: 4 Views: 3,277 Is it wastefull to throw in an extra header file that may not be needed. Does it add much to the size of the final file, or does the compiler catch it? |
Forum: C++ Sep 25th, 2005 |
| Replies: 15 Views: 4,435 Address zero would not be an absolute address, or is it? Otherwise, what does it mean? I am confused now. |
Forum: C++ Sep 25th, 2005 |
| Replies: 7 Views: 2,889 I need to write about a half one page instruction string for one of my C++ programs. How do I do this best, so I can read it in the code and easly update it later. I have tried concatinating, but... |
Forum: C++ Sep 25th, 2005 |
| Replies: 13 Views: 2,700 |
Forum: C++ Sep 25th, 2005 |
| Replies: 4 Views: 1,983 A processor does run raw binary code! |
Forum: C++ Sep 25th, 2005 |
| Replies: 15 Views: 4,435 Is const void* p the same as a null pointer? Why would i use it? |
Forum: C++ Sep 24th, 2005 |
| Replies: 8 Views: 1,540 Don't forget to multiply your centimeters by 0.033 to get the height in feets! |
Forum: C++ Aug 31st, 2005 |
| Replies: 2 Views: 1,573 How to send email in Visual C++ ? What are you drinking? |
Forum: C++ Aug 8th, 2005 |
| Replies: 2 Views: 8,541 |
Forum: C++ Aug 8th, 2005 |
| Replies: 6 Views: 15,881 I think FunsterStil is Danish for WindowStyle. |
Forum: C++ Aug 1st, 2005 |
| Replies: 8 Views: 5,060 Do yous have a sample of your code? What have yous tried? |
Forum: C++ Aug 1st, 2005 |
| Replies: 5 Views: 7,428 These looks very much like the code VegaSeat wrote earlier? |