5,226 Posted Topics

Member Avatar for Deepak.G
Member Avatar for hollywoood69
Member Avatar for student_x

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 …

Member Avatar for G._1
0
3K
Member Avatar for Rose Aashii

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.

Member Avatar for Ali_84
0
2K
Member Avatar for Good Bye

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.

Member Avatar for Nihat_1
0
3K
Member Avatar for Sudo Bash

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

Member Avatar for Yangang
0
4K
Member Avatar for pvbhargav

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

Member Avatar for Sun_5
-1
15K
Member Avatar for Alex Edwards

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 …

Member Avatar for KelvinG
0
1K
Member Avatar for ranjini.jayam

[URL="http://lmgtfy.com/?q=%22insert+name+of+thing+here+%22+source+code"]Sure is![/URL] Just edit to taste.

Member Avatar for wenbuyi
-1
667
Member Avatar for papuccino1

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 …

Member Avatar for corey_2
0
2K
Member Avatar for robotnixon

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?

Member Avatar for Edwin_6
0
1K
Member Avatar for jayfaj

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

Member Avatar for Nimric
0
961
Member Avatar for ladynjb22

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 …

Member Avatar for Neha_15
0
2K
Member Avatar for johnny80

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.

Member Avatar for y0f4n
0
3K
Member Avatar for vegaseat

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.

Member Avatar for vegaseat
11
9K
Member Avatar for ~s.o.s~

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

Member Avatar for mack1
29
5K
Member Avatar for ganesh_bala
Member Avatar for chandanraj
0
695
Member Avatar for cassie_sanford
Member Avatar for koleanu

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

Member Avatar for BenWard
0
407
Member Avatar for AJones

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

Member Avatar for Wajid sardar
0
2K
Member Avatar for Dex02

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

Member Avatar for senthil_5
0
1K
Member Avatar for Adnan S.

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

Member Avatar for sneekula
0
957
Member Avatar for Salem

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

Member Avatar for Dani
0
123
Member Avatar for jephthah

[URL="http://www.daniweb.com/forums/thread209180.html"]I've got ya all beat - for now ;)[/URL]

Member Avatar for diafol
2
2K
Member Avatar for devh

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.

Member Avatar for nithinkumar
0
1K
Member Avatar for Mr.UNOwen
Member Avatar for john_hasan

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

Member Avatar for aizam76
-1
3K
Member Avatar for olelink

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

Member Avatar for nittu sarathe
-2
572
Member Avatar for iAssistant

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

Member Avatar for Stuugie
0
4K
Member Avatar for Q8iEnG

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

Member Avatar for shayan_doust
0
739

The End.