5,237 Posted Topics
Re: Lemme guess, you want this for a 16-bit DOS environment. | |
Re: > When you join to atoms (fusion) it realeases energy. i thought that occured during splitting (fission). Lighter elements release energy by fusion. Heavier elements release energy by fission. The mid-point of this is around iron / nickel. | |
Re: Step 1, learn to indent code. Even programs as short as this are close to unreadable without good indentation. [code] /* * File: sets.cpp * ------------------ * This program deals with sets of lower case letters. * This program computes the union and intersection of two sets. This program * … | |
Re: So pagan rituals which xtians have hijacked don't count? > Do you have similar rituals in your country and what is your favorite costume to scare folks? Yeah, they're called "hoodies" and they're about all the time. | |
Forum Posts: 700,558 However, 435,384 members makes the average number of posts 1.6 It gets worse if you remove the top 100 posters. Then the average posts per member is basically 1. Basically, someone joins, asks a question, and it never gets answered. What a rubbish forum ;) If only … | |
Re: > I would like to get onto blocked websites on my school network whenever I want to. Well while you're researching how to do it, also look into "computer mis-use" and what they're going to do when they find out. | |
Re: > jne wastetime Branch somewhere else, this keeps pushing stuff onto the stack and re-initialising your count. | |
Re: > BIOS Date: August 18th 2004 Which means the board is probably older still right? [url]http://support.intel.com/support/motherboards/desktop/d845gvsr/[/url] [quote=intel] These products are no longer being manufactured by Intel. Additionally, Intel no longer provides interactive support for these products via telephone or e-mail, nor will Intel provide any future software updates to support … | |
Re: > je tru ; tru immediately follows, so it does nothing in effect. Besides, don't you want >= 2 ? > sir2 db ? IIRC, this only reserves 1 byte, not a string. | |
Re: Something else you didn't do for a few seconds was look at the post dates. Last post (before you) was 16th Feb [B]2006[/B] | |
Re: If you ignore the "progress indicator" for the moment, does this actually work ? # mdadm --manage /dev/md0 --add /dev/sdb1 # mdadm --manage /dev/md1 --add /dev/sdb2 # mdadm --manage /dev/md2 --add /dev/sdb3 # mdadm --manage /dev/md3 --add /dev/sdb4 Does /proc/mdstat exist before the first command starts, and after the last … | |
Re: Perhaps it only bans idiots like you who haven't learnt how to speak properly yet. [url]http://www.catb.org/~esr/faqs/smart-questions.html#writewell[/url] Plus associated morons who's IQ is lower than their shoe size who go around vandalising content. | |
Re: I suppose it's futile to suggest that you've read this [url]http://www.daniweb.com/techtalkforums/announcement8-2.html[/url] | |
Re: (rand()) << 16 + rand() Now you have a 32-bit rand - of sorts. | |
Re: > str[pos-1]=str[pos-1]+str[i]-(str[i]=str[pos-1]); Perhaps use your swap function, with a temporary, rather than this over elaborate mess? | |
Re: > has exited with code 4679648 (0x4767E0). This is the only error as such. Successful programs should return 0. Perhaps you have "void main" and simply fall off the end of the program in an undefined way? > Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found. This just means that IF … | |
Re: The rest of the filenames are in $* or use $1 and [ICODE]shift [/ICODE]to process them one at a time. | |
Re: If you want to overload a C function, you need to do your own name mangling so that it has a unique name without any help from the compiler. | |
Re: > if [ wordcount -eq dbwordcount ]; then Use some $, like your other variable references. | |
Re: The short answer is yes. The longer answer is, not without difficulty. Sure you may be able to connect, but is the protocol published, or is it proprietary to Yahoo? If there's a library, you should invest some time in trying to get it to work. It will save you … | |
Re: [url]http://nehe.gamedev.net/lesson.asp?index=01[/url] On the basis that's impossible to extrapolate your experience from such a terse post. For one thing, 3D graphics is heavy on the maths, so some decent math texts wouldn't go amiss either. It's all very well that the APIs handle a lot of this stuff, but there's a … | |
Re: Ever consider using a search engine? No wait, that's a dumb idea - you'd have to think what search terms to use :icon_rolleyes: | |
Re: If you find a C# example which calls APIs foo() bar() and baz() in that order, how much C# do you really need to know in order to call foo() bar() and baz() from a C++ program? Figuring out enough C# (not much) just to get the general idea of … | |
Re: > #define MAX_MSG = 100 A segmentation fault means you ran it, and it crashed. Whereas the code you posted won't even compile (not with that #define). Also, use fgets() to read a whole line for you (and fopen to open the file). | |
Re: You'd need to post the whole program, because the bug is somewhere else and this is just where it all went wrong. | |
Re: How about starting with the basics, like making sure the 1, 2, 3 bit works Like if you input 1, all you have is cout << "Choice is 1" << endl; If you can do that much, fine - then we can work on the next step. If you can't, … | |
Re: > int temp[MAX_PATH]; At line 224. At line 250 onwards, you assume this has MAX_NODE elements | |
Re: Did you call srand()? [url]http://c-faq.com/lib/notveryrand.html[/url] | |
Re: [url]http://en.wikipedia.org/wiki/Network_Time_Protocol[/url] | |
Re: Heh. Same 3 illiterate morons with the same messages here as well. [url]http://forums.devshed.com/mobile-programming-20/help-me-please-windows-98-dont-know-566239.html[/url] | |
Re: Well since you missed this: >Our Software Development forum category encompasses topics related to application programming and software design. When posting programming code, encase it in [code], [code=syntax], where 'syntax' is any language found within our Code Snippets section, or [icode], for inline code, bbcode tags. Also, to keep DaniWeb … | |
Re: How lazy would that be? [URL="http://www.daniweb.com/forums/thread153598.html"]How many times did you follow this link?[/URL] @ddanbe He's lazy, why recommend a book which has more pages that TIC++? [URL="http://www.amazon.com/Accelerated-Practical-Programming-Example-Depth/dp/020170353X/ref=sr_1_1?ie=UTF8&s=books&qid=1225028595&sr=1-1"]Accelerated C++[/URL] on the other hand is less than half the size. That might work. [URL="http://c2.com/cgi/wiki?LazinessImpatienceHubris"]On Laziness[/URL] But that only works if you're loaded … | |
Re: Because the high order bits are "more random" than the low order bits on simple PRNGs [url]http://c-faq.com/lib/notveryrand.html[/url] But then if they run the program in a loop, then time(NULL) is also effectively a constant as well, so that doesn't really help either. | |
Re: [url]http://clusty.com/search?input-form=clusty-simple&v%3Asources=webplus&query=xampp+internal+server+error[/url] | |
Re: [url]http://clusty.com/search?query=avi+file+format&sourceid=Mozilla-search[/url] | |
Re: You've defined your function inside main. | |
Re: Just scope, that's all. Inside main, only main() can call it. Unless you copy/paste the prototype into other functions which need to call fun() | |
Re: You can't declare arrays using sizes available at run-time. Given that your function definition has a constant, how about [code] int board[100][100]; if(OpenBoard(boardName, width, height, board)) { } //... //function definition... bool OpenBoard(std::string *boardFileName, int *width, int *height, int board[][100]) [/code] But since this is C++, how about [ICODE]std::vector< std::vector<int> … | |
Re: Serial killer [url]http://cboard.cprogramming.com/showthread.php?t=108441[/url] [url]http://forums.devshed.com/c-programming-42/help-with-c-code-looping-565811.html[/url] | |
Re: Or your other post on the same subject [url]http://www.daniweb.com/forums/thread153215.html[/url] | |
Re: It's an array of offsets into the file, not addresses as such. Since you know how many there are, you can calculate the size of this table, and populate it with what the effective start positions of each buffList[buf].fbCodeAddr will be written to (it's just an initial constant, and a … | |
Re: cases 1 and 2 seemed ok, then there's an excess of switch (month) | |
Re: Scandisk does a pretty good job of "moving" the data somewhere else if it can, before it marks a sector as bad. If scandisk is detecting new bad blocks on a regular basis, you really ought to be making a really good backup and shopping for a new hard disk. | |
Re: > Hi im trying to mess about with a microcontroller Yeah, you'd need to specify which one, along which which compiler you're using to even begin to make any sense of that. Also, posting more than one line of code would establish a context for better guessing, even if an … | |
Re: get() will also add the newlines to your maze as well. Read the char, then test it to see if it's a valid "maze" char, and then add it to your array. | |
Re: Since you missed both of these, then no. Announcement: Please use BB Code and Inlinecode tags Announcement: We only give homework help to those who show effort Besides, get a C++ compiler and do it yourself. g++ -S prog.cpp will get you the asm you seek. | |
Re: Is your real machine really DOS? Because if you're running XP (for example), then you'll NEVER be able to turn off sound for the whole machine. | |
Re: Urgent - ha ha ha ha ha [url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url] Gimme a break, what sort of lame-assed tutor thinks this is in any way teaching you anything worth knowing. Oh, and you can't in any conforming C program do it, since the program has to inevitably end with [code] int main ( … |
The End.