2,867 Posted Topics

Member Avatar for iamthwee
Member Avatar for amt_muk

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.

Member Avatar for vijayan121
0
128
Member Avatar for sk8ndestroy14
Member Avatar for EnderX
0
277
Member Avatar for jamello

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

Member Avatar for jamello
1
280
Member Avatar for jhdobbins

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

Member Avatar for ndeniche
0
310
Member Avatar for Chaky

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

Member Avatar for Chaky
0
245
Member Avatar for EnderX

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

Member Avatar for ~s.o.s~
0
95
Member Avatar for dacs

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

Member Avatar for Madzts
0
142
Member Avatar for obear

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.

Member Avatar for janells
0
208
Member Avatar for ~s.o.s~
Member Avatar for ~s.o.s~
0
157
Member Avatar for John A

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 …

Member Avatar for hezekiahb
0
1K
Member Avatar for arh

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

Member Avatar for hezekiahb
0
312
Member Avatar for MuddBuddha
Member Avatar for dcc

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 …

Member Avatar for Dani
0
2K
Member Avatar for BarryKamp

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

Member Avatar for Aia
0
164
Member Avatar for squinx22

[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? ;)

Member Avatar for jwenting
0
118
Member Avatar for linux

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

Member Avatar for Nick Evan
0
105
Member Avatar for squinx22

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 …

Member Avatar for squinx22
0
83
Member Avatar for joshSCH

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

Member Avatar for John A
0
197
Member Avatar for bmgee13

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

Member Avatar for ~s.o.s~
0
142
Member Avatar for sukhmani

>what are the interesting features of game programming in C++??? It's fast. Not for the programmer, for the user. :p

Member Avatar for John A
0
30
Member Avatar for FireSBurnsmuP

And if you're reading in filenames, don't you think getline() would be a better alternative to cin?

Member Avatar for FireSBurnsmuP
0
1K
Member Avatar for B.Y

>Yeah using the .h is bad practice nowadays Is it? Only in the context of the STL...

Member Avatar for ~s.o.s~
0
144
Member Avatar for B.Y

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

Member Avatar for John A
0
107
Member Avatar for srinath.sec

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

Member Avatar for John A
0
88
Member Avatar for Tauren

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 …

Member Avatar for arthipesa
0
193
Member Avatar for Menuhin

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 …

Member Avatar for John A
0
84
Member Avatar for Mac.Z

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 …

Member Avatar for John A
0
107
Member Avatar for Munsoned

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

Member Avatar for ft3ssgeek
0
94
Member Avatar for matk
Member Avatar for vuthcam

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

Member Avatar for WaltP
0
150
Member Avatar for Devster

>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?

Member Avatar for iamthwee
0
287
Member Avatar for jimsplaz

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

Member Avatar for jimsplaz
0
169
Member Avatar for Lord Vespa

[URL="http://www.videolan.org/vlc/download-suse.html"]VLC[/URL] can play unprotected WMV and WMA files.

Member Avatar for John A
0
123
Member Avatar for John A

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

Member Avatar for ~s.o.s~
0
615
Member Avatar for MadsenAim3r
Re: Hi

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

Member Avatar for John A
0
98
Member Avatar for youngone

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]

Member Avatar for John A
0
135
Member Avatar for squinx22

What platform? What API? What kind of graphics exactly? Are you fairly experienced in C++ already?

Member Avatar for John A
0
76
Member Avatar for Reema_Hamed

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

Member Avatar for Reema_Hamed
0
189
Member Avatar for wabbit

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.

Member Avatar for John A
0
73
Member Avatar for addicted

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

Member Avatar for John A
0
100
Member Avatar for FireSBurnsmuP

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

Member Avatar for Junyah
0
150
Member Avatar for naya22

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

Member Avatar for naya22
0
174
Member Avatar for dcc

[url]http://www.daniweb.com/techtalkforums/thread9852.html[/url]

Member Avatar for happygeek
0
133
Member Avatar for saroonah
Member Avatar for Infarction
0
91
Member Avatar for anad90

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

Member Avatar for John A
0
111
Member Avatar for iamthwee

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

Member Avatar for John A
0
2K
Member Avatar for bcoe

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.

Member Avatar for John A
0
75
Member Avatar for Chicano0409

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]

Member Avatar for Aia
0
92
Member Avatar for realnsleo

[url]http://www.google.com/search?q=networking+features+linux[/url] [url]http://www.google.com/search?q=networking+features+windows[/url] Have fun.

Member Avatar for John A
0
30

The End.