2,867 Posted Topics

Member Avatar for shadowfire36

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. …

Member Avatar for WaltP
0
128
Member Avatar for Mr.UNOwen

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 …

Member Avatar for Mr.UNOwen
0
108
Member Avatar for tb808kid

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 …

Member Avatar for tb808kid
0
163
Member Avatar for afg_91320

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] …

Member Avatar for vmanes
0
84
Member Avatar for kako13

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 …

Member Avatar for kako13
0
153
Member Avatar for Gopala Krishnan

If you have a 2D array, you're going to have to allocate 2 dimensions. I only see you allocating one dimension.

Member Avatar for VernonDozier
0
104
Member Avatar for wollacott

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 …

Member Avatar for Aia
0
114
Member Avatar for TheBeast32

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.

Member Avatar for TheBeast32
0
99
Member Avatar for linux

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 …

Member Avatar for linux
0
207
Member Avatar for Dale Miller

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 …

Member Avatar for Auch
0
203
Member Avatar for blcase
Member Avatar for maui_mallard

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]

Member Avatar for bobbyraw
0
107
Member Avatar for sgw
Member Avatar for sgw
0
656
Member Avatar for olams

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 …

Member Avatar for WolfPack
0
195
Member Avatar for SteveH66

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.

Member Avatar for Estella
0
201
Member Avatar for andyg55

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 …

Member Avatar for John A
0
151
Member Avatar for I-Alan

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.

Member Avatar for I-Alan
0
69
Member Avatar for silvestre
Member Avatar for infernojmd

[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 …

Member Avatar for infernojmd
0
124
Member Avatar for kahn1

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 …

Member Avatar for WaltP
0
523
Member Avatar for jer_stud56

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 …

Member Avatar for jer_stud56
0
458
Member Avatar for cayi

[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 …

Member Avatar for alda1234
0
193
Member Avatar for blcase

Have you remembered to put a semicolon after your class definitions? I.e. [code]class something { . . . }[B][COLOR="Red"];[/COLOR][/B][/code]

Member Avatar for John A
0
102
Member Avatar for mrjoli021

Don't know any offhand, but you may want to search the web for "C++ SMTP library".

Member Avatar for John A
0
74
Member Avatar for robotnixon

[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.

Member Avatar for John A
0
111
Member Avatar for kv79

[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).

Member Avatar for kv79
0
116
Member Avatar for testdrive

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 …

Member Avatar for John A
0
190
Member Avatar for shadowfire36

>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).

Member Avatar for John A
0
133
Member Avatar for hookshot
Member Avatar for vishalkhialani

[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 …

Member Avatar for vijayan121
1
199
Member Avatar for PDavid

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 …

Member Avatar for PDavid
0
37
Member Avatar for wordywordsmith

Hit the "Build & Run" button. It works on Leopard, too. (I think. I don't believe it's changed in version 3.)

Member Avatar for John A
0
55
Member Avatar for ricomann
Member Avatar for Heeyriss
Member Avatar for manbearpig

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 …

Member Avatar for manbearpig
0
108
Member Avatar for Run.[it]

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 …

Member Avatar for John A
0
117
Member Avatar for certem

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.

Member Avatar for John A
0
245
Member Avatar for abrou

[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]

Member Avatar for John A
0
114
Member Avatar for kapstav

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?

Member Avatar for kapstav
0
126
Member Avatar for nvnq

[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 …

Member Avatar for technogeek_42
-2
147
Member Avatar for wamuti

[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.

Member Avatar for John A
0
97
Member Avatar for lazyboy292

Take a look at [strcmp](http://www.cplusplus.com/reference/clibrary/cstring/strcmp.html)().

Member Avatar for John A
0
109
Member Avatar for zhixuan

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 …

Member Avatar for Rick150
0
128
Member Avatar for normanhilda

[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 …

Member Avatar for normanhilda
0
174
Member Avatar for werks
Member Avatar for Junyah

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 …

Member Avatar for Junyah
0
223
Member Avatar for linux

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 …

Member Avatar for linux
0
136
Member Avatar for chihonky

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 …

Member Avatar for mb523
0
147
Member Avatar for seung

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. …

Member Avatar for jbennet
0
160
Member Avatar for dach

[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 …

Member Avatar for jbennet
0
108

The End.