5,226 Posted Topics
| |
Re: But there is only "one" strategy, and that's to keep the other player with multiple of 3 to choose from. If the other player ends up looking at a total of 3, then you win. Eg. Total is 6 (for them) They pick 4, you pick 2 and win They … | |
Re: A loop which loops N times is considered to be O(N) even though as you know it would take N+1 comparisons to run the loop. | |
Re: In other words - you want to cheat. The good news (for everyone else) is that the required knowledge is probably 6 months to a year away, so the fact that you think you can get this "matrix style" in a short time period means you'll probably give up. | |
Re: [url]http://linux.die.net/man/3/clock[/url] clock() determines (to some approximation) the amount of CPU time used by a program. Waiting around for I/O typically does not count. If you want to measure the amount of elapsed time, as by your watch for example, then use the time() functions. | |
Re: A wild stab in the dark suggests that you need to double up the second \ in your pathname, so C:\\TC\[COLOR="Red"][B]\[/B][/COLOR]BGI But since you've only paraphrased the problem, who knows whether that typo exists in your actual code, or whether there is some other problem you haven't bothered to mention. … | |
Re: 6000 pages @ 1 page per day ~= 16.5 years. Planning anything else afterwards, say the world's longest beard perhaps? Now if you're doing some proper old-time research (and coming up with genuine new ideas, which is what a PhD ought to be), it might take weeks to come up … | |
Re: [URL="http://lmgtfy.com/?q=%22insert+name+of+thing+here+%22+source+code"]Sure is![/URL] Just edit to taste. | |
Re: codeblocks-8.02-setup.exe 28 Feb 2008 10.8 MB codeblocks-8.02mingw-setup.exe 28 Feb 2008 19.3 MB The first one is the IDE only The second (larger one) includes the compiler. You need the second one only once (unless you manually install compiler(s) of your choice). Then if you want to keep up to date … | |
Re: You also need to consider that 900 say is written as "CM" (ie 100 before 1000), not as 9 C's in a row. But according to your input, 'X' is not a valid operation? | |
Re: > Thank you for the idea but could you explain a little further Yes, and I bet your tutors will ask you exactly the same question as well. The only difference being is that your explanation will be even more vague than whatever is posted here. That's what you get … | |
Re: How about trying it for yourself rather than hijacking a thread which is over 2 YEARS old. You're not going to learn to cook from reading cookery books, and I can tell you that all great cooks didn't get where they are today without setting fire to something at least … | |
Re: Maybe this linux based tool? [url]http://home.eunet.no/pnordahl/ntpasswd/bootdisk.html[/url] > the administrator won't let me use illegal software. So hand the machine over to them, and let them earn their keep for a day or two while you get on with something else. | |
Re: People repost the same old urban legends, and no one knows why. [url]http://www.snopes.com/critters/wild/duckecho.asp[/url] Actually, they'll believe anything printed shoved in front of their noses and never bother to conduct even the slightest bit of independent research. | |
Re: > please teach me how to be a programmer Sure, how about beginning with learning how to read, lets say all of the wonderful resources posted in this thread. As opposed to merely bumping a dead thread with your content-free "me too" post. | |
| |
Re: Also asked here - [url]http://www.daniweb.com/forums/thread170944.html[/url] | |
Re: [url]http://msdn.microsoft.com/en-us/library/aa379166%28v=vs.85%29.aspx[/url] If you're calling it the first time to retrieve the length of the name, then you should pass NULL for the name, and make sure the length is initialised to zero. Otherwise, you're passing a pointer to a string in read-only memory, and it attempts to write 1 byte … | |
Re: > I get a lot of error related to iostream.h file not being found iostream.h is old C++. The new way is [code] #include <iostream> using namespace std; int main ( ) { cout << "hello world"; } [/code] Or [code] #include <iostream> int main ( ) { std::cout << … | |
Re: [url]http://www.cplusplus.com/reference/iostream/ifstream/[/url] Maybe it's something to do with your obsolete compiler, with its obsolete headers. Compilers which accept "#include <iostream.h>" and void main are really not good anymore. | |
Re: > sorry buddy just try this out... > #include<stdio.h> > #include<conio.h> > void main() Great, just what we want around here, another void main, conio.h riddled post without code tags. | |
I regret that I have to inform you that [Adak](http://www.daniweb.com/members/346000/Adak) passed away suddenly after an illness (thanks to the_cultie from the OC forum for the notice). For folding details, please see here. http://www.overclockers.com/forums/showthread.php?t=744019 | |
Re: [URL="http://www.daniweb.com/forums/thread209180.html"]I've got ya all beat - for now ;)[/URL] ![]() | |
Re: My guess is the host OS isn't DOS at all, but probably something like XP. The answer is to get one of the many free compilers which are actually compatible with your host OS. | |
Re: For ports (serial, parallel, usb etc), try [url]http://www.lvr.com/[/url] | |
Re: > I make this program but with while loop then i was told to make it using for loop, which i tried but failed. So turn [code] i = 0; while ( i < 500 ) { // do stuff i++; } [/code] To [code] for ( i = 0 … | |
Re: [URL="http://forums.devshed.com/c-programming-42/program-that-fills-in-information-on-the-internet-823498.html"]Ohh look, cross posting[/URL] You're already comfortable with manual spamming, I see no reason to help you automate the process. | |
Re: > This is frowned upon by the DW-community. But sadly not by "da management". Too many 1-line pith posting dweebs are allowed to stay for far too long. I'd like to invite the regulars to join me in [URL="http://www.daniweb.com/internet-marketing/25"]the land of the -1's[/URL]; it's just like shooting fish in a … | |
Re: > It is true that I have finished my C++ course two years ago. And it looks like you forgot everything since. > gets(s1); This is just [URL="http://sourceforge.net/apps/mediawiki/cpwiki/index.php?title=Gets"]AWFUL[/URL] > sprintf(s2,"START %s",s1); So what happened to using [ICODE]std::string[/ICODE] (since this is C++ - right?) > const char* prgm=s2; And this does … |
The End.