2,867 Posted Topics
Re: You're getting there. What you need to do now is add code for cases 'A' and 'B'. Start with case 'A' as it's a bit simpler. Ask the user how many numbers they want to input, then loop for that amount. Inside the loop, grab a number from the user. … | |
Re: Java isn't nearly as slow as you think. While it does have a slower start time due to the initialization of the Java Runtime Environment, code optimizations are performed on-the-fly, and in most cases Java performs similarly to equivalent C code (or better). The biggest issue with Java is that … | |
Re: Well, we have a [URL="http://www.daniweb.com/forums/thread63827.html"]forum sticky[/URL] over in the Game Development forum that outlines some resources to use getting started. That said, I'd say probably your best option would be to use something like SDL. It's relatively simple in that it abstracts actual details of communicating with a hardware API … | |
Re: Don't you mean [B]cout[/B]? :) However, after closer investigation, the error with pow() actually has to do with the fact that pow is only available in the following forms: [code] float std::pow(float, float) long double std::pow(long double, long double) double std::pow(double, int) float std::pow(float, int) long double std::pow(long double, int)[/code] … | |
Re: So what you're saying is that you have a function called [icode]ManiMatrix[/icode] which is supposed to call [icode]customMatrix.checkIfMagic()[/icode]? In that case, could you post the the line in which you call checkIfMagic() in a little bit of context? The compiler error mentions 'int', which I haven't seen yet. Please use … | |
Re: If you have a 2D array, you're going to have to allocate 2 dimensions. I only see you allocating one dimension. | |
Re: Sorry, but you seem to have missed several ReadMes in your rush to post. Firstly, [URL="http://www.daniweb.com/forums/announcement118-2.html"]we are not here to do your homework[/URL]. We're happy to help and answer any question you may have, though. Secondly, [URL="http://www.daniweb.com/forums/announcement118-3.html"]use CODE tags when posting code[/URL]! Without them code is very unreadable. I'd like … | |
Re: You might want to try something like [URL="http://www.dyndns.com/"]dyndns.com[/URL]. Register a free subdomain from a predefined list of domains, and then you can [URL="http://www.dyndns.com/support/clients/"] download a client[/URL] for your operating system, which will update the subdomain to your latest IP address. | |
Re: My memory's a bit rusty, but I think right-clicking does most of the magic. Right click within a category, and a contextual menu should appear that includes an option to add a launcher. I can't remember if you can rename menu categories by right-clicking on them, but I think there … | |
Re: I would suggest that it's either some of your data on your hard disk is corrupted, or, like you suggested, your video card is dead. To test the hard disk, run ScanDisk, and see if it comes up with any errors. You might also want to run Disk Defragmentor. If … | |
Re: What's the error message, and on which line does it occur? | |
Re: You want to make sure that you don't simply burn the .iso as a file to the disk. Use Nero's "Burn Image" feature to make sure that the iso is correctly extracted onto the disk. [url]http://www.wizardskeep.org/mainhall/tutor/neroiso.html[/url] | |
Re: It might help if you said what the error message was... | |
Re: I don't know the details of what this function is trying to do, nor do I have the energy to try to figure it out, but something looks wrong with your set() function here: [code=cplusplus] void LList::set(int c, int val) { int i = size; current = head; if(i=(c+1))[/code] I'm … | |
Re: Hi, and welcome to DaniWeb. I'm sure you'll find that there's lots of help available to any IT-related question you may have here. | |
Re: I'm not quite sure what you're having problems with. You can make a fourth variable that holds the previous value of [icode]x1[/icode]. Your while statement would then look something like this (I used the absolute value function [icode]abs[/icode] because I'm not sure which way the variables are changing): [code=cplusplus] while … | |
Re: Hi, and welcome to DaniWeb. I'm not exactly sure what you mean by 'iBook installation package'; if you mean where you can download the Macintosh operating system, I'm sorry, but it's a commercial operating system, so you will have to purchase it. | |
Re: [code=cplusplus]//process numberOfChildren * 2.00 = childrenCost; numberOfYouth * 8.50 = youthCost; numberOfAdult * 12.50 = adultCost; childrenCost + youthCost + adultCost = totalCost;[/code] You've got these statements backwards. They should be in the format [code][B]variable[/B] = value * value;[/code] Your output looks like it will need some tweaking and extra … | |
Re: That's not how you input and output numbers. Separate variables in a stream with [icode]<<[/icode] or [icode]>>[/icode] (not commas) depending on whether you're working with an input or output stream. You'll probably also want to separate them with spaces when outputting so that it doesn't all come out as one … | |
Re: I have no idea about how baseball works, so I guess I can't really help you there, but you might want to use parentheses to ensure that the order of the operations is happening as expected. And make sure that any decimal outputs aren't being put into integer variables, as … | |
Re: [quote=cayi;303882]if you're familiar with their site navigation, could you tell me exactly how to get to these rss feeds to subscribe to.[/quote] Depends what kind of browser you're using. Some browsers don't even have RSS capability, so then RSS is practically useless. Browsers like Firefox often have an icon on … | |
Re: Have you remembered to put a semicolon after your class definitions? I.e. [code]class something { . . . }[B][COLOR="Red"];[/COLOR][/B][/code] | |
Re: Don't know any offhand, but you may want to search the web for "C++ SMTP library". | |
Re: [code=cplusplus]bool Car::RaceCarStatus() { int i; if (i = 1) return true; else return false; }[/code] Why the heck is [icode]RaceCarStatus[/icode] a function? Just do something like [code=cplusplus]bool RaceCarStatus;[/code] in your class definition. | |
Re: [QUOTE=Serunson;526442]Ask one of the moderators very nicely, and they might change it for you.[/QUOTE] Moderators can't change usernames. If you want your username changed, speak to an administrator (either Dani or Davey). | |
Re: Don't try to put Mac OS X on a non-Apple laptop, which sounds like that's exactly what you're trying to do. Of course it isn't going to work because: [list] [*]Apple laptops have hardware differences which make running OS X difficult if not impossible on a regular PC [*]Apple says … | |
Re: >is there a similar function in C++ to excute a message box for input in a windows os ? As strange as it might sound, it does exist: [MessageBox()](http://msdn2.microsoft.com/en-us/library/ms645505(VS.85).aspx). | |
Re: What operating system are you using? | |
Re: [QUOTE=jbennet;526587].NET only works on windows and you need to use Visual Studio for it[/QUOTE] Well, that's the only official way of running it. .NET is actually just a runtime environment, similar to Java, and in theory you could run it on just about any platform (provided you had an implementation … | |
Re: Depends how you want create them. You can have statically-linked libraries (those end in .a, and are linked at compile time), or you can have dynamically-linked libraries (they usually end in .so, and they're similar to Windows DLLs). A static library is nothing more than an archived object file, a … | |
Re: Hit the "Build & Run" button. It works on Leopard, too. (I think. I don't believe it's changed in version 3.) | |
Re: Make sure you don't confuse your router's IP addresses. The one shown in the screenshot is actually your external IP address, the one it uses to connect to the internet. You should not change this one unless you are experiencing ISP difficulties and they tell you to change it. The … | |
Re: GUI programming is a pain, although it's not that difficult, it's just a matter of learning the API and writing interface code can be tedious work. If you're really serious about doing UI work for your programs, I highly recommend the .NET framework. Using Visual Studio, you can create drag+drop … | |
Re: There you go. [url]http://en.wikipedia.org/wiki/Variable[/url] [url]http://en.wikipedia.org/wiki/Constant[/url] Next time, please use Google or whatever other search engine suits you best. | |
Re: [code]Comm *listofcommands[COLOR="Red"][50][/COLOR] = RoboDOM::listCommands(directory, protocol1);[/code] You're almost there. Since this is already a pointer, you don't need to make it an array. And since this is a pointer, refer to it like it's a pointer: [code]QString Listy = listofcommands[0][COLOR="Green"]->[/COLOR]cLabel;[/code] | |
Re: I don't know that much about OpenSUSE, but it's not *that* uncommon for a distro to not include compiler tools with a base installation, particularly the more graphically-oriented ones. Is there something preventing you from installing gcc via YaST? | |
Re: [QUOTE=winrycool;524588]well i have the same problem too but i only asked for help and someone deleted it !!some fox guy and he acts kind shesh thats why ill be deleting my account here soon..orkut is 10 times better!!![/QUOTE] Well, sorry, but we will [B]not[/B] do your homework for you. If … | |
Re: [url]http://www.devarticles.com/c/a/Cplusplus/Multithreading-in-C/[/url] Very well-written tutorial. It uses the Windows library, but I assume that's what you want. | |
Re: Take a look at [strcmp](http://www.cplusplus.com/reference/clibrary/cstring/strcmp.html)(). | |
Re: Hi, The easiest way would probably be to start your Mac in Target Disk Mode. What this basically does is it allows your broken Mac to function as a hard drive for the other Mac, through a Firewire cable. Connect the two Macs, start the "good" one, and then hold … | |
Re: [QUOTE=bondo;522548]I'm not sure about OS 9, but there is a program available that runs as an extension to QuickTime called Flip4Mac. It's free (to download at least. It might be shareware?). I don't have any problems playing WMVs. I have OS X though, so I'm not sure if they make … | |
Re: Well, it's going to be very difficult to diagnose the problem if the only information we're given is "it won't connect". Can you elaborate on this a little? One of the first things to test in a network connection is pinging from a shell. In Windows, you can get a … | |
Re: It's because of one of the greatest and worst things about Linux: there is no one single UI library, and developers will tend to develop their user interface for whatever window manager they prefer best.. What I suspect you're seeing is a QT application running on Gnome. Because you aren't … | |
Re: It's a very bad idea to go looking for a motherboard when you haven't even determined that that's the problem. Usually you try to go through a testing checklist including memory, battery, hard drive, etc. If you don't have the technical ability to do that yourself, bring your computer to … | |
Re: If you still have your Fedora installation disk (or just about any Linux install disk, it doesn't really matter), boot off it and go into recovery console mode. Once there, run the following command to zero out the entire hard disk: [code]dd if=/dev/zero of=/dev/hda[/code] ...assuming [icode]hda[/icode] is your hard drive. … | |
Re: [QUOTE=plgriffith;523179]If you choose ubuntu (which would be a good choice for a first time user) it will ask you how you want to partition your HDD. Make sure you select "manual" otherwise it will erase vista completely. Make the linux partition at least 4gb and make the swap partition about … |
The End.