Forum: OS X Aug 1st, 2009 |
| Replies: 1 Views: 550 Sorry, we don't support illegal activities on this forum. Either go to the store and buy a DVD of Leopard legally, or find your answer elsewhere. |
Forum: C Aug 1st, 2009 |
| Replies: 9 Views: 374 Your program "hangs" here:
scanf(" %.2f", &bal);
Actually, it's not really hanging. It's just waiting for input.
I'd say you're making this more complicated than it needs to be. Use one balance... |
Forum: C Aug 1st, 2009 |
| Replies: 9 Views: 374 If you have more than one statement within an if/else/else if, you need braces around the block.
if ( newBalance < 0)
{
printf("***I am sorry, you have bounced this check. $10 will be");
... |
Forum: C++ Jul 30th, 2009 |
| Replies: 4 Views: 212 Perhaps take a look at bitset (http://www.sgi.com/tech/stl/bitset.html)?
Or you can do it "manually":
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1074727388&id=1073086407
Keep in... |
Forum: C++ Jul 22nd, 2009 |
| Replies: 3 Views: 747 >Is this array initialization static or dynamic?
It's called a variable-length array (http://en.wikipedia.org/wiki/Variable-length_array), and as far as you're concerned, it's static. However, as... |
Forum: DaniWeb Community Feedback Jul 2nd, 2009 |
| Replies: 7 Views: 675 >we need it dont you see?
Show me ten "mobile development" threads created here within the last week and I'll believe you. |
Forum: DaniWeb Community Feedback Jul 2nd, 2009 |
| Replies: 7 Views: 675 New forums aren't created unless there's an observed demand for them in the other existing forums. Just because you have a new fetish with mobile programming doesn't mean we're going to modify our... |
Forum: Getting Started and Choosing a Distro Jun 18th, 2009 |
| Replies: 7 Views: 678 There are many providers which offer free shell accounts with a limited amount of disk space. A query of "free shell account" on any search engine should turn up what you're looking for. |
Forum: Getting Started and Choosing a Distro Jun 18th, 2009 |
| Replies: 7 Views: 678 Something like http://www.masswerk.at/jsuix/ will offer you a limited number of commands/software. If you want to learn actual Unix though, at the very least download the PuTTY client and get a shell... |
Forum: DaniWeb Community Feedback Jun 18th, 2009 |
| Replies: 12 Views: 1,609 |
Forum: Getting Started and Choosing a Distro Jun 12th, 2009 |
| Replies: 4 Views: 867 How about running VMWare server on Linux -- it's free, and it's significantly more powerful than VMWare Player:
http://pubs.vmware.com/server1/admin/install_server.3.13.html
Plus, it's designed... |
Forum: DaniWeb Community Feedback May 28th, 2009 |
| Replies: 17 Views: 1,421 I've said this already, and I'll say this again: I still think requiring X number of posts before a user can add a signature would work wonders to stopping this crap.
But for some reason... |
Forum: C++ May 18th, 2009 |
| Replies: 10 Views: 583 That's because you didn't read (or didn't understand) what was said in this link:
http://www.parashift.com/c++-faq-lite/templates.html#faq-35.12
The whole cause of the problem stems from the fact... |
Forum: Geeks' Lounge May 8th, 2009 |
| Replies: 33 Views: 2,614 >Dani had to tell me about it before I noticed.
Whatta load of bullshit (http://www.daniweb.com/forums/showthread.php?threadid=57019). :P |
Forum: Geeks' Lounge May 7th, 2009 |
| Replies: 33 Views: 2,614 >I won't say who gave me my infraction, but I wear it as a badge of honor.
Really? I thought you pouted and left. :p |
Forum: Java May 2nd, 2009 |
| Replies: 13 Views: 2,027 Threads merged. Hopefully I didn't cause more confusion. |
Forum: DaniWeb Community Feedback May 1st, 2009 |
| Replies: 10 Views: 1,299 For some reason the [code=language] tags aren't working today, at least initially. Regular [code] tags are fine though. |
Forum: Java Apr 30th, 2009 |
| Replies: 2 Views: 253 Closed.
http://www.daniweb.com/forums/thread189581.html |
Forum: C++ Apr 27th, 2009 |
| Replies: 6 Views: 528 The same way you would add characters to a static array. The only difference being that you're responsible for allocating and deallocating the memory that 'arr' is going to point to. |
Forum: C++ Apr 27th, 2009 |
| Replies: 2 Views: 405 >numarray = readFile(numarray[])
Remove the [] and it'll pass the address of the starting element of the array. You also don't need to bother returning the array, since you've passed the memory... |
Forum: C++ Apr 26th, 2009 |
| Replies: 8 Views: 464 >MyTemplate<SomeClass> var;
Most compilers will give you an error not only on the line that attempts to use a member that a derived template class doesn't possess, but also the line that the class... |
Forum: C++ Apr 26th, 2009 |
| Replies: 8 Views: 464 If you're only ever going to derive one class from your template, why are you making it a template?
Nevertheless, if for whatever reason you need it:... |
Forum: C++ Apr 26th, 2009 |
| Replies: 14 Views: 908 >im running Linux so i dont think i can view the XPS files.
1. Look directly below the XPS downloads, and you'll see PDF downloads.
2. FYI: http://www.artifex.com/downloads/ |
Forum: C++ Apr 26th, 2009 |
| Replies: 8 Views: 426 Why are you putting so much effort into shoehorning your code onto a dinosaur of a compiler? Yea, you may have "fixed" this issue but that's only one of hundreds of problems you'll encounter with a... |
Forum: C Apr 20th, 2009 |
| Replies: 3 Views: 371 |
Forum: C Apr 19th, 2009 |
| Replies: 8 Views: 358 The real reason you're having problems with your code is you're trying to modify a string literal:
>printf("ID: %d\n", getCommandId("move"));
You never allocated space for "move", so who knows... |
Forum: C Apr 15th, 2009 |
| Replies: 2 Views: 725 printf takes a formatting string as its first parameter. You probably meant:
printf( "%d\n", bytes_received ); |
Forum: DaniWeb Community Feedback Apr 13th, 2009 |
| Replies: 9 Views: 1,156 I look at the link location of the attachment:
9774
9773 produces
9773 |
Forum: DaniWeb Community Feedback Apr 13th, 2009 |
| Replies: 9 Views: 1,156 |
Forum: *nix Software Apr 13th, 2009 |
| Replies: 4 Views: 1,484 Try booting without a framebuffer. Does the problem go away? If so, try using video=intelfb:1280x800 as your framebuffer settings instead of vga= (assuming you enabled the intelfb driver when you... |
Forum: *nix Software Apr 12th, 2009 |
| Replies: 4 Views: 1,484 My guess would be a framebuffer issue. Are you using one right now (eg. is your console text smaller than, say, the text from your BIOS), and if so, what are the settings for it? You can check these... |
Forum: C Apr 10th, 2009 |
| Replies: 11 Views: 706 >In the interest of not entering a pissing contest I am going to leave it at that.
Just because you're wrong doesn't mean I hate you. :P |
Forum: C Apr 10th, 2009 |
| Replies: 11 Views: 706 >And your correction as the italicized exception, product of bad practice.
While you're entitled to your own opinion, that statement is just BS. There are perfectly acceptable reasons why you would... |
Forum: C Apr 10th, 2009 |
| Replies: 11 Views: 706 >Prototypes don't go inside other functions.
Wrong. Prototypes don't usually go inside other functions. |
Forum: Java Apr 9th, 2009 |
| Replies: 2 Views: 719 Try java HelloWorld. The .class file is the actual bytecode which java executes, but the java program requires you give the filename without the extension. |
Forum: C Apr 7th, 2009 |
| Replies: 14 Views: 715 >sure you can write a program with conio.h, but it will be broken on most every
>non-microsoft systems.
And you can write a termios.h solution that will be broken on every non-POSIX system.... |
Forum: C Apr 7th, 2009 |
| Replies: 57 Views: 2,436 You forgot to allocate memory for your structures. Yes, you're allocating memory for the pointers inside the objects, but before you can do that you need to allocate memory for the entire object.... |
Forum: Getting Started and Choosing a Distro Apr 7th, 2009 |
| Replies: 2 Views: 803 Use the -R flag for chmod to make the permissions recursive. |
Forum: C Apr 5th, 2009 |
| Replies: 57 Views: 2,436 No. The purpose of a struct is so that you can keep numerous sets of data organized. You can now do the following:
struct Object3D* box;
struct Object3D* table;
Change functions that modify... |
Forum: C++ Apr 4th, 2009 |
| Replies: 2 Views: 1,080 http://www.parashift.com/c++-faq-lite/templates.html#faq-35.18 |