5,237 Posted Topics
Re: [url]http://c-faq.com/malloc/calloc.html[/url] | |
Re: Why don't you try your own solution? Rather than looking at someone else's code, and trying to do basically the same thing over again. Snake: - snake moves every 'tick' (ticks get quicker as the game progresses) - snake hits wall - dead - snake hits snake - dead - … | |
| |
Re: Meh, I got my best score just by randomly clicking answers as quickly as possible. If you actually stop to think about it, you lose. Besides, what sort of moron site can't even spell "Congradulations"(sic) properly. | |
Re: > How might I began to program a text adventure/IF in Lua? The same way you would in any other programming language. There is [B][U]so[/U][/B] much more to writing a program than just figuring out the syntax of your current implementation language. [url]http://en.wikipedia.org/wiki/Software_development_process[/url] There is no more a "how to … | |
Re: > I got 3.13! I got 3.1415926535897932384626433832795 I found the test as easy as pie ;) | |
Re: What kind of arrays are you passing to the function to begin with? I'm pretty sure your A and B parameters will need to be modified. | |
Re: [URL="http://www.imdb.com/title/tt0073486/"]One Flew Over the Cuckoo's Nest[/URL] [URL="http://www.imdb.com/title/tt0080455/"]The Blues Brothers[/URL] [URL="http://www.imdb.com/title/tt0089767/"]Pale Rider[/URL] [URL="http://www.imdb.com/title/tt0103064/"]Terminator 2: Judgement Day[/URL] - make sure you watch the longer "Directors cut" [URL="http://www.imdb.com/title/tt0434409/"]V for Vendetta[/URL] - I find this rather too prophetic for the way the UK is heading :( For a more surreal experience, try these [URL="http://www.imdb.com/title/tt0084503/"]The … | |
Re: @echo GrimJack You don't want to spend a lot on your first car. The more you spend now, the more it will cost you in insurance and depreciation. Plus, it is likely that you'll end up denting it at some point. If you'd spent $3K say, you might be tempted … | |
Re: > But when I try to compile the bishop piece I get this error > FATAL : Out of Memory in function set. Just so that we're all clear on this, this happens when you're compiling the code right? Or does it mean the code has compiled OK, and this … | |
Re: Welcome to the transient nature of the internet. | |
Re: Given your restrictions on what you can do, nothing can be done to fix your code. | |
Re: > are those console or 2D codes?? mind sending em my way?? Did you read the dates of those posts? Reading their profile, it says "Last Activity: 10th Apr 2004". I've got a new game, it's called "thread bumper 2007" :icon_rolleyes: | |
| |
Re: You've trashed your allocated memory pool. Unfortunately, the code you've posted is probably OK (if you've been staring at it for that long without solving the problem). The thing of it is, where the fault occurred (the real code you need to fix) is seldom the same as the code … | |
Re: [url]http://www.topcoder.com/[/url] [url]http://icpcres.ecs.baylor.edu/onlinejudge/[/url] [url]http://sourceforge.net/index.php[/url] | |
Re: This would have been much better as a reply to one of your previous threads. If it's still the same basic question, then reply to the thread, don't start a new one. > for(int i = 0; i < count ; i++); That last ; at the end means this … | |
Re: > from INDUSTRIAL POINT OF VIEW.. with Problem Description You have two lifts in a office building and 5 floors to service. Design a control system which responds to the button presses on each floor and button presses within each lift to achieve optimum performance (least delay for each user). … | |
Re: Call your single key routine in a loop until - the buffer where you're storing the string becomes full - some previously determined character (say newline) is received. | |
Re: > Can anyone share concept I assume you know how to add say 16 and 18 together to get 34 I mean, once you've figured out the concept of 'carry', whether you're storing each element of your overall number in a character, or byte, or long really doesn't make a … | |
Re: The check is fine. The code is broke, if all the elements of the array are negative though. | |
Re: > #include <iostream.h> These are old-style headers. New C++ compilers should support #include <iostream> using namespace std; // so we can do cout rather than std::cout > #include <math.h> The way to include a 'C' header in new C++ is to prefix the name of the header with a 'c', … ![]() | |
Re: Optimise how? Make it faster - not likely, since it's I/O bound to begin with with all those output statements. Make it shorter - probably, but sooner or later it becomes excessively harder to read / write / debug. I can optimise the readability like so. [code] main() { int … | |
Re: [URL="http://en.wikipedia.org/wiki/Shakespeare_%28programming_language%29"]Structured Programming Language (SPL)[/URL] | |
Re: It's a linker error, not a compile error. It's complaining about not being able to find the library, mostly because you didn't name it. Eg. [ICODE]LIBS = odbx[/ICODE] You've told the compiler where to look, but you didn't say what to look for. | |
Re: Look at the "branch" bit coming out of the control bubble, and how that affects the MUX in the top right corner of the diagram. | |
Re: Use the conversion macros (for ASCII/UNICODE compatibility), not indiscriminate casting to make the compiler STFU. [inlinecode] ::LoadLibrary( TEXT("Component1.dll") );[/inlinecode] Just because you managed to silence your compiler is in no way a measure of run-time success. | |
Re: First, this is HIGHLY dependent on your current implementation. Change anything at all, and it might break. It also means you need to tell us exactly what you have if you ever hope of a useful answer. Second, why do you need to know, and what are you going to … | |
Re: Flamed? Man, I'm gonna need a major deciduous forest just to get enough wood to start the fire for the flaming that post deserves! | |
Re: My elevator program has it's ups and downs ;) > Can you help me. Are we talking about "capability" or "desire"? Sure, there's a whole bunch of people who are capable of helping you, but so far I doubt many of them have a desire to. Maybe you should read … | |
Re: The nightmare scenario (for us at least) is that if we help you get the job, you'll be right back here posting your job assignments to help you keep the job. The only difference being is that you'll be the only one pocketing the $$$ for the effort. Having worked … | |
Re: > But i am not able to access the device. Please reply. So talk to their - product support - tech support Asking us is just pure dumb luck finding someone who might know that particular device. But going to the manufacturer direct is a slam dunk. | |
Re: > And i cannot be persuaded to move to a different language to accomplish my goal. Why not? Being good at s/w is being able to recognise the best tool for the job. There's probably a dozen [URL="http://en.wikipedia.org/wiki/Request_for_Comments"]RFCs[/URL] you have to wade through if you insist on doing it all … | |
Re: > how am i suppose to get the 9th bit?? There are only 8 bits. Also, you only need ONE carry bit, not 8 separate ones. | |
Re: Sure, when you've read this [url]http://www.daniweb.com/forums/announcement14-2.html[/url] and made some effort. Rather than barking orders at everyone! "discipulus eunt domus" | |
Re: > You're basically done. Seems unlikely. More like someone else was done; then it was "found" and reposted here for us to tinker with. As you say, anyone who could write that off their own bat would have no trouble finishing it. | |
Re: Tax payers shell out lots of cash for s/w licenses from Microsoft. Govt spots an opportunity to save cash, stops buying expensive licenses and goes open-source. Profits at former multi-billion dollar companies plunge. Former multi-billion dollar companies with a now broken business model for the new world go cap-in-hand for … | |
Re: This forum is nothing if not a compendium of all the different reasons why college students can no longer think for themselves. Or even for that matter, ones which can be bothered to say read past threads or read the forums rules. Has nothing you've learnt in the last couple … | |
Re: > so pls help and tell me that how can i run mu torrent on my computer in this condition Talk to your admin. Actually telling you how (assuming it would even be possible) amounts to computer mis-use. Which in some places is actually illegal, and at the least runs … | |
Re: Hell yeah, it looks like he sponged "an answer" off someone else, and they decided to not give the OP a free shot. @catdieselpow, post your own work, not the obfuscated answer someone gave you. | |
Re: There's something wrong at Daniweb. It seems these links are completely invisible to newbies [url]http://www.daniweb.com/techtalkforums/announcement8-2.html[/url] What possible reason could there be for all the effortless homework posts? Oh that's right, there is no answer beyond laziness or stupidity. Neither trait will make you a programmer. Give up now and start … | |
Re: [url]http://msdn2.microsoft.com/en-us/library/aa364407.aspx[/url] | |
Re: > for (int z = 0; z < 2; z++) Simply add [ICODE]for (int z = 0; z < 2 [COLOR="Red"]&& j < i[/COLOR] ; z++)[/ICODE] | |
Re: Well if you ask someone to type "please", and they type in "plz", do you tell them they're right or wrong? [url]http://www.catb.org/~esr/faqs/smart-questions.html#writewell[/url] Which operating system and compiler are you using? What sort of C programming skill do you already have? | |
Re: > can...u...convert..words..2..no What about gibberish to English? [url]http://www.catb.org/~esr/faqs/smart-questions.html#writewell[/url] | |
Re: [url]http://www.theholidayspot.com/friendship/history.htm[/url] But like anything else, it's starting to look like just another merchandising opportunity to make up for the slow period between the previous splurge and the next splurge. "friendship day origin" is your search term of the day. | |
Re: > Nov 3rd 2004 > 2 Minutes Ago Lets see, 2 and a half years. Now, what was your question again? | |
Re: Lemme guess. [url]http://gdk.thegamecreators.com/[/url] You picked a random forum, rather than the forum of the homepage where you got the thing from in the first place. Make a guess as to where you'll find the highest concentration of people who are experienced in using it. | |
Re: How would begin by you demonstrating that you have done something so far (say STFW) or some indication of your skill level. There is for example no point in explaining anything about SQL if you've yet to master simple "hello world" programs in C. |
The End.