2,867 Posted Topics
![]() | |
Re: That doesn't mean you should avoid exception handling; in fact the performance loss is so minimal, it's hardly worth taking that into account when trying to decide when and where to use exception handling. Option 2 is by far the most robust. | |
Re: [quote=joshSCH;352975]I agree.. If more people knew about 'REP power', then more people would give rep, and therefore the rep system would be more reliable and successful.. I think it would be a great idea to send new members Daniweb rules, including how the 'rep' and posting systems work (If that … | |
Re: [quote=Nichito;335760]so, all i have to do to use a c library is copy the *.c file into the directory where i have my .cpp and call it in the program with an #include "*.c" ?[/quote] You [U]never[/U] #include .c files. To use a library, the general steps are:[LIST=1] [*]Copy all … | |
Re: [quote=cscgal;340687]That's why the ads that you do see (generally) aren't really ads ... they're things like "Relax in our Geek's Lounge" [/quote] Question: since house ads that say things like "chat up a storm on our IRC network" and such don't really earn you revenue, why not just show whitespace … | |
Re: [quote=cscgal;352916]I'm not a fan of closing older threads because they are useful and helpful to much more than the thread starter. You just have to look at how many views each thread receives to see that thousands of people can be helped, and discussion can continue, even if the original … | |
Re: If you want to pay someone to code your program, head over to the [URL="http://www.daniweb.com/techtalkforums/forum72.html"]Job Offers[/URL] forum. If you want us to help with your homework (for free), [URL="http://www.daniweb.com/techtalkforums/announcement8-2.html"]read this[/URL]. | |
Re: These 2 links should provide all the information you'll need: [url]http://capmac.org/phpbb2/viewtopic.php?t=770[/url] [url]http://docs.info.apple.com/article.html?artnum=106352[/url] Have fun. | |
Re: It [B][I]is[/I][/B] larger. ~s.o.s~ isn't just seeing things. | |
Hey everyone, isn't Mac OS X great? The only problem is that a lot of open-source software is only for Linux. Well, there will never be an end-all solution, but there's many ways of making it better. Here are the solutions I recommend: - Dual-booting Mac OS X and Linux … | |
Re: Installing Gnome without the help of a third-party application designed to ease the installation will be difficult. Check out this thread for more information: [url]http://www.daniweb.com/techtalkforums/thread51798.html[/url] Hope this helps | |
Re: This debate reminds me of the silly "gun registry" up here in Canada. You're supposed to register every gun that you own, and if it's not registered, it's illegal. Great. And how is that supposed to stop the shooter? A few months ago there was a similar incident to this … | |
Re: [URL="http://www.daniweb.com/techtalkforums/announcement8-3.html"]Please start using code tags.[/URL] > scanf ( "%g", &fuel ); What about "%d"? And why are you storing the number of fuel units travelled in the same variable as the menu option? The menu choice is completely wiped out when the user enters the number of fuel units travelled. | |
Re: [quote] <irony mode off>[/quote] jwenting, I didn't see you turn on your irony mode. Does that mean all your posts before this were ironic? ;) | |
Re: >Is there a way to open, say, cout, and edit it to your own personal use? Yes, if you use a clone. Such as [URL="http://www.sgi.com/tech/stl/"]SGI's STL[/URL]. >Is there a portable ide/compiler that I can put on a flashdrive IDEs of course are going to be way too complex. If you're … | |
Re: If it were that easy, you'd be having A LOT less network glitches when playing online... :p Although you're right, network connections do work like files, in that you can use [inlinecode]read[/inlinecode] and [inlinecode]write[/inlinecode] to write over network sockets. Enough blab, if you want easy downloading of web pages, head … | |
Re: >Does any1 know if apache is compatible with 64-bit OS? Of course it is -- you just said yourself that you had successfully installed Apache 2, and that it was the circumventor that you were having difficulties with. >apache seems unwilling to cooperate with me You're very confusing. What's causing … | |
Re: >I am stuck with the while statement, I am not sure how to state when I want it to stop. Usually you tell the user to enter a negative number to quit when dealing with numbers (assuming of course, that you don't need negative numbers from the input). So the … | |
Re: >what are the interesting features of game programming in C++??? It's fast. Not for the programmer, for the user. :p | |
Re: And if you're reading in filenames, don't you think getline() would be a better alternative to cin? | |
Re: >Yeah using the .h is bad practice nowadays Is it? Only in the context of the STL... | |
Re: > How to pass a 2D array by reference? What's wrong with pointers? Just accept a [inlinecode]char **[/inlinecode] as the array, and then pass it the 2 array dimensions, so the function knows the boundaries. | |
Re: >May be this can help No, I don't think so. >void main() [URL]http://www.cprogramming.com/faq/cgi-bin/smartfaq.cgi?id=1043284376&answer=1044841143[/URL] >p=(int *)malloc(sizeof(int)); You're allocating exactly [B]1[/B] element in a 1-dimensional array. That is not what the original poster was asking for. >scanf("%d",&p[i]); Oh great, so now you're trying to fill up this array's elements which you never … | |
Re: You just grabbed some random code from a program and dumped it here so we can see what you want to do? Learn C/C++ first, then game APIs. Don't worry about little class handlers like the one you posted. That will come eventually. In the meantime, simply start with a … | |
Re: You could always make a loop that keeps going until [inlinecode]theFile >> grade[/inlinecode] fails. When this happens, clear the errors with [code] theFile.clear();[/code] and read in some more names, enter the grade loop again, etc. The more-robust method is to use [inlinecode]getline[/inlinecode] to read each line into a string, and … | |
Re: The problem you're experiencing is the result of cin leaving behind a trailing newline behind in the input buffer. This doesn't cause problems as long as you continue using cin, because it trashes the newline left behind from the previous call. As soon as you start using getline, however, you … | |
Re: >Whats the ideal way to go about this? Well, you're right -- you should make a separate function. But instead of focusing on just getting the input, perhaps you could do a bit more: call the functions which are actually going to execute what the user wants. The function would … | |
Re: > But in this circumstance, i nedd [B]wires.inp [/B]not [B]wires.txt. [/B]What do you think? :icon_rolleyes: Rename wires.txt to wires.inp and your program should work like a charm. | |
Re: >Here is my bug ridden code Bug-ridden? It won't even compile! There's way too many for me to fix now, how about posting the error messages you receive so other people can help you find what is making them occur? ![]() | |
Re: > I got hold of a legal copy of tiger (for an imac) Wait, so if this was for an iMac, then you're using it on more than one machine, right? That's not legal. Best to go out and buy another copy of Tiger. Not only will it be legal, … | |
Re: [URL="http://www.videolan.org/vlc/download-suse.html"]VLC[/URL] can play unprotected WMV and WMA files. | |
I don't like it one bit. If I had problems with my eyesight, I'd increase the font size on my browser. Please change it back... | |
Re: >I was hoping that you guys could supply me with the code We [I]can[/I], but that doesn't mean we will. >I know that you guys don't do homework, but this is an exception? Nope. >I can do this, but my book is totally out-dated [URL="http://www.daniweb.com/techtalkforums/thread70096.html"]Get a new one.[/URL] Or use … | |
Re: Perhaps you meant to declare [inlinecode]noise[/inlinecode] as a [inlinecode]noiseLevel[/inlinecode]? Then, the only thing wrong with this statement would be that you would need to use noise.noise, not noise.noiseFile: [code=cplusplus] myCarArray[row][col+1]=noise.noiseFile[col]; [/code] | |
Re: What platform? What API? What kind of graphics exactly? Are you fairly experienced in C++ already? | |
Re: [quote=Reema_Hamed;336865]u can help with that problem im facing..instead of giving silly instructions..;) thanx[/quote] You could help yourself by reading the link in Salem's post. It's not our problem that this is urgent, and saying so won't make us reply any faster. If you want the fastest replies possible, I suggest … | |
Re: Don't [URL="http://www.daniweb.com/techtalkforums/thread75870.html"]double post[/URL]. A quick Google search turned up [URL="http://www.astro.umd.edu/%7Eteuben/linux/comcast.html"]this[/URL], hopefully it will help you. | |
Re: [code=cplusplus] // header_file.h #ifndef header_file #define header_file void function1(); void function2(); #endif ////// // function_file.cpp #include "header_file.h" void function1() { // .... } ////// // main.cpp #include "header_file.h" int main() { function1(); return 0; } [/code] | |
Re: [quote=FireSBurnsmuP] How does one go about hooking up an antenna to a wireless card?[/quote] Is this what you're looking for? [url]http://www.oreillynet.com/cs/weblog/view/wlg/448[/url] | |
Re: Since 'a' is always true, the program never gets past this statement. [code=cplusplus]if (choice == 'A' || 'a')[/code] Have to expand it to: [code=cplusplus]if (choice == 'A' || choice == 'a')[/code] Same with all the other if statements. Some logic errors: [code=cplusplus] else if (choice == 'B' || choice == … | |
| |
Re: [URL]http://www.daniweb.com/techtalkforums/announcement8-2.html[/URL] | |
Re: [quote=anad90;348178]I had a 4.2 GB video (made in iMovie) that I was trying to send to iDVD, however, because of all the weird complications with Macs assuming you want to copy a file rather than move it, I decided to put it in the trash folder, so I could move … | |
![]() | Re: [quote=cscgal;348008]Let's say you want to post C code: [noparse][code=c]Here is C code[/code][/noparse] Here is C++ code: [noparse][code=cplusplus]Here is C++ code[/code][/noparse][/quote] As long as that person is hanging out in the C/C++ forums. You can do it for perl with [noparse][code=perl] and [/code][/noparse]. |
Re: How about a repair disk permissions?[LIST=1] [*]Locate Disk Utility, which is in /Applications/Utilities [*]Select your main hard disk, and click on the "Repair Disk Permissions" button[/LIST]If that doesn't work, your hard disk is probably too cluttered and needs a reformat. | |
Re: Like[LIST] [*]Where does it occur[/LIST][LIST] [*]What was the program's output[/LIST][LIST] [*]How about reading the annoucements, especially [URL="http://www.daniweb.com/techtalkforums/announcement8-3.html"]this one[/URL][/LIST] | |
Re: [url]http://www.google.com/search?q=networking+features+linux[/url] [url]http://www.google.com/search?q=networking+features+windows[/url] Have fun. |
The End.