447 Posted Topics
Re: OK. Well for section one you should look into the division and remainder operators and loop ... Could be a long loop so think about it and see if there are any tricks you can use. Section 2 is very similar. Look at this code: [code]int main( void ) { … | |
Re: What you've gotta remember is that there you're going to have to delete the pointer to second in first's member destructer - unless I've misunderstood whenever you use new you must use delete. So because second is allocated in first (dynamically), you do indeed need to delete it in first. … | |
Re: I dunno, Dave, .... 60 questions is a lot ... I got bored after question 12 ... I'd do miserably though. I know nothing! | |
![]() | Re: Favourite album: Houses of the Holy - Led Zeppelin. That was selected randomly from a list with three others. I couldn't pick a song. That depends on my mood. But HOTH, above, generally suits all moods, for me anyhow. |
Re: Well you'll have to initialise all of the variables. >> if (userGuess == Black || black) That's not (or rather mightn't), work as you would expect: it'll do the || ing first and then the == (or the other way around, I can't remember), so what you want to do … | |
Re: I like the cut of your jib - giving yourself a birthday post! Good job & have a gud'n. | |
Re: Reading, Riting, Rithmitic. Recording, rogramming, ... bettering my knowledge on things I know nothing about which I will never have to know about ... like the liver fluke ... Music. I do a lot of playing recording and listening. | |
| |
Re: everybody knows that pterodactyls hate the screech of a guitar ... or something | |
Re: This amused me: [B]Similar Threads[/B] [LIST] [*] [URL="http://www.daniweb.com/forums/thread252.html"]Linux Bashing[/URL] [I](*nix Software)[/I][/LIST] | |
Re: HAHAHAHAHAHHAAAAAAAAAAAAAA. I didn't expect that. Even if it is fake it's pretty funny. | |
Re: >> then the mother should be executed. I don't know if they have the death penalty in Portugal or the UK. >> wtf is a .stm file anyway? Maybe synchronous transfer mode/module. I can't remember the last one. | |
Re: >> the prayer aught to be less effective [than the sacrifice]. Well that would make sense if both the religions were the same and the god to which you sacrifice ... it's like comparing apples and oranges. Sure they have similar properties (weight etc) ... (the apples and oranges that … | |
Re: >> Can you cry underwater? I always thought that question was stupid. It's not as though tears defines crying or anything. Does it? Google: "Crying is a record album released in 1962 by Roy Orbison." Guess not. | |
Re: >> the 2012 olympics is a waste of money That's only cause it's in London and they have to build everything for it. As far as I know most residents of olimpic sites aren't happy with it. | |
Re: It was interesting alright. I think those personality tests are cool, but I'm not sure what only four questions can tell ... I mean, and this may not be completely revavent here, some people do those tests with the intent to forge an answer according to what they want to … | |
Re: >> [URL]http://www.okcupid.com/politics[/URL] Online dating, eh? Heh :) | |
Re: >> WMP is a piece of junk.. iTunes is the best. Justify that! You can't just say something like that without giving any shred of proof to support your [I]view[/I]! >> AFAIK WMP doesn't have anything of that sort. I think you can. It's called "Auto Playlists", and you can … | |
Re: Doesn't the UK have some stupid laws about corporal punishment? >> If there's not a penalty for misbehaving But what's to say that hitting kids is the only penalty? Rather than hitting them and letting them go back to play or whatever why not take away their toys and make … | |
Re: I recently got that Motorola phone that I can't remember the name of ... That slim one ... Flips ... memory card ... I like it though. Can do nearly everything, plus I put iTunes on it (even though I hate it :)), so it's just as good as an … | |
Re: >> speed chess Anyone watch House MD? That kid was a brat last week. | |
Re: I think your argument assumes that there is no interaction with anything. That we are lone wolves in the snowy mountains of the concrete future is not the case. Suppose I punch you in the head - there is a chemical reaction that takes place (you get a headache, sorry). … | |
Re: Hmm. That's a toughie ... There should have been an "All of the above/nearly all of the above", option! I can't decide :| | |
Re: >> But people rarely have the right mindset, so most of the time. That goes for a lot more than politics :/ | |
Re: Nursing, eh? That's got the second highest failure rate in my university, apparently. Elec eng has the highest followed by CS I believe (in third place that is). | |
| |
Re: Nurses always seem to be hot over here for some reason. It's a phenomenon I've observed over my lifetime. | |
Re: Dude, I hate bebo, myspace and facebook ... I happen to have an account on them all though :/ and use the formerest somewhat. >> now, everyone must use facebook Not me. I don't know what language that is. Phfew. | |
Re: I got a Zen V+ the other day for free :) I like the look of the Zune though. Looks neat. | |
Re: I think it's to do with where you seed rand. I'm not absolutely certain, but I think (note, this wasn't compiled so it mightn't), this should work - [code=C++]int getCard(void) { int range; int card; static bool is_set; if ( !is_set ) { is_set = true; srand(time(NULL)); } else is_set … | |
Re: >> now can someone please lock this thread. Done. Now nobody can post on this without the passcode which I possess. | |
Re: SetPixel() perhaps :) [url]http://msdn2.microsoft.com/en-us/library/ms532304.aspx[/url] | |
Re: Sure you can - [code=c]int main( void ) { int thing_i; char thing_c; std::cout<< typeid( thing_i ).name() << '\n'; std::cout<< typeid( thing_c ).name() << '\n'; if ( typeid( thing_i ) == typeid( thing_c ) ) std::cout<< "Both types the same!"; else std::cout<< "Types are of different types. Phooey!"; return 0; … | |
Re: Ha. Finally someone with a higher post-per-day number than you, christina>you :) Yeah, I know I've only been here two days, but ... yeah | |
I've been hearing a lot of things (mainly good ... in fact mostly good), about Daniweb, so I finally decided to join ... I'd better not be disappointed now :) I'm 'twomers'. I'm a third year student studying elec eng. 21. A guy (it's always good to clear that one … | |
Re: I never needed braces. Just had a 'perfect' set of teeth, apparently. So mine also cost €0, which is probably less than £0, still more than $0, but certainly less than seven grand! :) I never liked the idea of braces anyways. Do you need to wear a retainer forever … | |
Re: Are you talking about the algorithms involved in, say, programming FFT's instead of DFT's and the efficiency increase? | |
Re: Why are you bothering making the radius a pointer? It adds unnecessary complications ... not complications really, but there's no need. [code]using namespace std; class Circle { private: int mRadius; public: Circle(); Circle(int n); Circle(const Circle &rhs); ~Circle(); Circle operator = (const Circle &rhs); Circle operator++(); Circle operator++(int); int getRadius() … | |
Re: [code=c] #include <stdio.h> int main() { char drinkchoice; float insert; float money; float totalinsert; /* ... */ if(insert < money) /* ... */ if(totalinsert < money) /* ... */ if(totalinsert < money) /* ... */ if(totalinsert < money) /* ... */ if(totalinsert == money) getchar(); return 0; } [/code] It's … | |
Re: I normally answer 'em. It depends on the content of the poll ... well it really doesn't now that I think about it. I think I just answer them regardless. It takes two extra clicks. No keyboard required. One finger. Though I suppose the precise positioning of the cursor to … | |
Re: That is true, but let us not forget that you can also do friend operator overloading with a rhs and lhs parameters - [code=c++]namespace twomers { class coord { private: int x, y; public: coord () {} coord( const int n_x, const int n_y ) : x( n_x ), y( … |
The End.