2,867 Posted Topics
Re: [quote=happygeek;308464]I'm not sure why anyone would want to rush to buy Vista at launch, I'd much rather wait for SP1 to hit the streets at which time there should be less application software compatibility issues as well.[/quote] But Steve Ballmer said they wouldn't [I]need[/I] a service pack! ;) Well, actually … | |
Re: [quote=Aia;309156]I guess what I would like to know..., is there a way I could change the value in the string array using the pointer?. Or I will always need to initialize the array with the string?.[/quote] I'm not Dave, but I'll try to help ;) How I see it, the … | |
Re: Hey there [B]Maidomax[/B]. Glad to hear that you're liking the forums; and DaniWeb is not only a great place to help other people but to learn. Happy to have you here. :) | |
Re: As far as I know, there isn't a way of getting the enum's name directly from the number is represents. The best way to do this is to create a string array containing the names of the foods. Then reference it with the number, like this: [code]foodItem.name[i][/code] Or you could … | |
![]() | Re: It looks ugly. I was going to say something when it was first implemented, but then I thought better of it. Not that the idea is bad, but maybe there's a nicer way of doing it? |
Re: As far as I know, you have to be invisible mode, and there's limitations to what you can do with that. Perhaps use a [URL="http://www.adiumx.com/"]different[/URL] messenger? And really, what does it matter? | |
Re: Do you really think that the original poster really cares after 3 years? :cheesy: | |
Re: Sorry, Dani isn't just going to give you the forum template that she put money into to make DaniWeb a unique place. So forget it. | |
Re: [quote=iaaan]Hey everyone[/quote] Hello. [quote]I am not sure how to add these into an array.[/quote] If you want to add the data to a static array, you'll need a large chunk of memory declared beforehand, which works, although it takes up chunk of inflexible memory. Also, when you're in the file … | |
Re: Honestly Ancient Dragon, do you really have such a crappy monitor that you have to run your screen resolution at 800x600? :P The presence of unrelated ads actually don't bother me that much, as long as they're not intrusive, offensive, or misleading (such as FirefoxDownloadHq). | |
Re: [quote=Firestone;308782]The error is a windows error where it says the application encountered an error, and you can send a report or not. As for the cString, I've never neede to intialize it before.[/quote] Depends what you're trying to do with it. As you know, the pointer can't do anything legally … | |
Re: Mmm... not sure if we can help you, as this is the C/C++ forum. Perhaps you should get this thread moved to [url]http://www.daniweb.com/techtalkforums/forum42.html[/url] ? You might get people who know more about Matlab. Personally I've never programmed with Matlab so I can't really help you, sorry. | |
Re: Open up the router's configuration page. On Linksys, the address you enter into your browser is usually 192.168.1.1. You'll then login using default name and password (I can't quite remember what the defaults are for Linksys, but it should say in your manual). Then go to "Firewall", and make some … | |
| |
Re: You need to keep track of whether or not you've already told the user whether he/she needs to go higher or lower - perhaps store it in an int; 0 means no instruction yet, 1 means higher, and -1 means lower. Test this int value before you tell the user … | |
Re: Probably the best way to create a binary that can run on multiple systems is to use Java. It uses a virtual machine to interpret the bytecode, so it's platform-independant (for the most part; sometimes libraries are stupid). Another thing you can do is compile the DOS program, and then … | |
Re: ALL graphics are programmed in bits (except for some old vectors ganes, but they end up as bits eventually). Bits are either a 1 or a 0 - that's the only way computers can store information. An electrical charge indicates a 1, and lack of it results in a 0. … | |
Re: Basically the guy is telling you to use static IP addresses instead of dynamic (DHCP) addresses. The advantage of static IP addresses is that they never expire, which is probably why your network connection is being dropped. | |
Re: Hey there, welcome to DaniWeb. Glad to have you here. We'd love to help solve your computer problems. :) Just post in the appropriate forums, and you'll get help. Almost guaranteed. | |
Re: Depends what you plan to learn with it. If you learn true, standard C/C++, then yes, you can transfer this to any compiler and it should work, not just a Microsoft compiler. If you decide to learn .NET framework or MFC, you're going to be confined to Microsoft. Should you … | |
Re: There are hundreds of different types of RAM - even a name such as "DDR2" isn't going to sumarize everything. Make sure that when you buy RAM for a Mac Pro that it's `DDR2 667MHz ECC PC5300 240 Pin`. | |
Re: I'm not going to give the full solution to you - but here's some pseducode which may help you better understand what you need to do: [code] do ask for input store input increment times while (99 99 hasn't been entered) process data print out results[/code] The only thing I'm … | |
Re: I bought a spool of CDs, and their capacity is 750 MB. This images will fit on a disk like this. If yours don't work (the CD burning program complains about lack of space), then buy 2 750 MB CDs. | |
Re: My first Linux distro I ever used was Red Hat 8. It was pretty good, although kinda slow on my Pentium 2. Upgrading to Red Hat 9 didn't make things any better. :D Since then, I've used numerous distros, including Ubuntu, Kubuntu, Slackware, Debian, Gentoo and Vector. My favorites are … | |
Re: [quote] [root]#yum update yum,,,,,,,,,,,,,,,,,,I received this error : Loading "installation" Plugin Settingup Update Process Setting up repositories Can not find a valid baseurl for repo:case Error: Cannot find valid baseurl for repo:core[/quote] Sounds like you may want to try to cleaning yum prior to updating: [code]# yum clean all[/code] [quote] … | |
Re: And tell us what the program is supposed to do. Let us know what we're in for. :) Agreed, it's pretty hard to give a "quality check" if we can't see the quality of your code... | |
Re: Is this a new computer? If not, has this message always appeared, or did it only appear recently? If the computer is new, you may want to contact your computer manufacturer for tech support. Perhaps you entered something wrong as [URL="http://answers.yahoo.com/question/index?qid=20060914102530AAG6sqk"]described in this solution[/URL]. > Any help would be helpful … | |
Re: What makes you think that posting your question multiple times in the forums will give you a better response rate? If anything, it'll be less since people will be too ticked-off to answer. | |
Re: You'll first want to try a reboot to see if that fixes anything. Is your CD scratched up? It'll be unlikely to sucessfully install if you've got a damaged CD. You may also want to try [URL="http://docs.info.apple.com/article.html?artnum=2238"]flashing your Mac's PRAM[/URL]. | |
Re: He means creating a breakpoint in the debugger - you do have one don't you? They help immensly in tracking down bugs and memory leaks. If you don't have a debugger, I recommend you liberally sprinkle print statements so you can see the values of not only what the pointers … | |
Re: Mel, have you tried upgrading to the latest version of Firefox (2.0.0.1)? Perhaps it's just a Firefox bug that's gotten fixed in the next generation of Firefox. Personally, I've never experienced the problem you speak of even when I used the old version of Firefox. However, that is kind of … | |
Re: More specifically, to compile DirectX applications, or pretty well any program that relies on external libraries, you [I]must[/I] link the .libs or else you'll get linker errors. For DirectX (depending on which frameworks you're using) there's a whole list such as dinput10.lib, dsound10.lib, etc.. You must also have header and … | |
Re: [quote=~s.o.s~;306342]How about posting some code.. ? I mean the running code so that we can try it out.[/quote] Except that I doubt you can read German. :cheesy: | |
Re: You don't happen to have any GAMES do you? Those take up a lot of space, and when you "delete" them, there's often data files (which is what takes up so much space) left on your hard drive. [quote=jbennet;287907]i dont have a clue about macs but maybe you just deleted … | |
Re: I know this isn't quite what you're looking for: [url]http://pearpc.sourceforge.net[/url] Note that this is a "gray" area of the law. Apple forbids any product or machine running Mac OS software without Apple's authorization. >There were some kernel hacks that allowed 10.4.2 to be installed on a PC, but a "modern … | |
Re: Have you got [URL="http://www.gtk.org/download/"]GTK[/URL] installed? Giving us the exact error messages recieved would help; it's pretty hard to know why "it can't find X11". But my guess is that you're just missing a simple little library(s) which WxWidgets depends on. I don't know much about MEPIS, but isn't there some … | |
Re: All I can say is: go with Debian. I know you have experience with it, it's solid and not full of crap like some other distros I know. SuSE is too graphical, which is not needed when you've got a server, and CentOS is pretty similar, too. As for setup... … | |
Re: [code] binf.write(reinterpret_cast<char*>(&binf), sizeof(double));[/code] Why are you writing to binf the address of itself? I don't know how much good that's going to do you... ;) Which is probably where your problem lies. Also, you don't [I]have[/I] to write double as a string to your binary file. If you wanted to, … | |
Re: I see some [B]bad[/B] programming habits. [URL]http://www.cprogramming.com/tips/showTip.php?tip=3&count=30&page=1[/URL] (one thing that this tip doesn't mention: if you're using C++, you should be using [URL="http://www.cppreference.com/cppstring/getline.html"]getline()[/URL].) A clearer idea of what the program is trying to do would also be helpful. I'm only guessing, but it sort of looks like you're trying to … | |
Re: [quote=~s.o.s~;305857]Any reason you are hardcoding the value of [inlinecode]PI[/inlinecode] when there are better ways of achieving the same effect....[/quote] I don't get what you are saying. Are you saying it's better to calculate pi? I have never seen a program that calculates pi for formulas. Heck, even calculators store it … | |
Re: [quote=iamthwee;305851] Do I have to log on as the root or summat?[/quote] Probably, as most large programs require root access for installation. Eclipse requires oodles of RAM, so you may want Kdevelop instead if computer resources are in short supply on your system. Personally, I prefer Anjuta. :) Yes, and … | |
Re: Hmm, what I think you need to do is declare your functions and variables in another header file that uses the [B]extern[/B] keyword in front of them (this means that the function has already been declared). [B]#include[/B] this file with all source files that need it. (And you may want … | |
Re: Is it just me, or did this thread suddenly take a strange turn? We went from someone wanting programs to nitty-gritty details of the C89/C99 to reading input streams! Needless to say, the OP definitely should have been clearer when asking his/her question and then maybe this thread wouldn't have … | |
Re: [quote]I began to think no one cared at all about my trouble[/quote] Don't think that way; after all, this is DaniWeb! :D Well, you've obviously narrowed it down to the codecs (definitely not your code), thanks to ~s.o.s~. My guess is that you're missing some sort of DLL file. Could … | |
Re: [quote=Ravalon;298384]I don't mind being addressed as Mister, but eventually I'll see you as enough of a mate to be bothered by it. At that point I'll ask you to use a more familiar means of address. :)[/quote] Don't worry, he will eventually. Just look at me, now instead of calling … | |
Re: Make your program better by avoiding the use of scanf() to retrieve input. Although it's taught in many tutorials, and seems to be good, it has a problem with not removing newlines at the end of the stream, and although doesn't hurt you now, it will later. A better solution … | |
Re: I'm running an Apple, too, although it's a MacBook, not a MacBook Pro. Have to say I've been pretty happy with it so far, although the lack of games does limit you, and running Windows requires you to buy a seperate copy of Windows XP. But it's been pretty much … | |
Re: [quote=Infarction;305291] Oh, and for #3, you can use this: [code]#include<iostream> using namespace std; int main() { cout << "8.3 minutes" << endl; }[/code][/quote] I don't know about that... most teachers don't want a constant for that type of assignment, they want to see the program actually calculating the result. Even … | |
Re: I assume you mean transferring files over the internet. Read on. I've transferred large files before over the internet, and probably the best way is to use bittorent. Get yourself (and your friend) a bittorent client; my favorite is [URL="http://azureus.sourceforge.net/"]Azureus[/URL]. Next, create a torrent for the file you wish to … |
The End.