5,237 Posted Topics
Re: > we want complete c programme for huffman encoding & decoding What is the value of your degree if you download answers and ask everyone else to do it for you? What are you going to do when you get your dream programming job and they give you something really … | |
Re: > In case you didn't notice, the fellow wanted the code in C. He also wanted it 3 YEARS ago as well. Not only late, and in the wrong language, it's also old C++, and non-portable. Use '0', not 48 (like was used oh so long ago in a galaxy … | |
Re: > i finish writing my code but i have no idea how to write the pseudocode since classes and functions are involved You're supposed to do the design (classes etc) and pseudo-code before doing the actual code. They're the design and scaffolding you use to build the thing you really … | |
Re: Just in time then. Loops only nest from March to September, then they begin their migration south for the winter :icon_biggrin: | |
Re: Perhaps if you viewed the syntax as [code] ::memcpy(&tmpBuffer[0], &iReq, 4); ::memcpy(&tmpBuffer[4], &strGetName, 6);[/code] | |
Re: Whatever topic this thread had, it has now become a 4 year old dumping ground for an assortment of whiners complaining about how unfair the universe is. | |
Re: [url]http://www.codeblocks.org/downloads.shtml[/url] Download "Code::Blocks IDE, with MINGW compiler" In other words, join the 21st century and leave your fossil compiler in the museum. | |
Re: Well you're expecting thread 1 to do this[ICODE][COLOR="Red"]load var[/COLOR] [COLOR="Red"]add 4[/COLOR] [COLOR="Red"]store var[/COLOR][/ICODE]and thread 2 to do this (before or afterwards), [ICODE][COLOR="Green"]load var[/COLOR] [COLOR="Green"]sub 4[/COLOR] [COLOR="Green"]store var[/COLOR] [/ICODE] Then all will be well. But if it actually goes like this (or many other variations which interleave the instructions), [ICODE][COLOR="Red"]load var[/COLOR] … | |
Re: Seems to me like a case of not using the right tools for the job. Doing this as a browser plugin would be a snap (by comparison). Starting where you are, you're basically saying "I need to use gmail to send an email - I know, first thing I'll do … | |
Re: No - and enjoy the fruit from your tree of procrastination. | |
Re: > i have some work for school that have to finish fast [URL="http://www.catb.org/~esr/faqs/smart-questions.html#urgent"]What else is new[/URL] > code that I've found here is written in C++ and i need it in C 10/10 for your google skills, but I bet the point of the test was to find out how … | |
Re: I suggest you get a new hard disk. It might start losing a sector a month, and before you know it, several sectors a week. How long before that wipes out something important, rather than the couple of hours it takes to reinstall the OS? Error rates for disks seldom … | |
Re: [url]http://www.codeblocks.org/[/url] [url]http://www.microsoft.com/express/[/url] Both are FREE (except for the time taken to download) Both WIPE THE FLOOR with the fossil you have. Both will serve you well when you want to actually USE the OS you're running on. Have you considered that your 20 year old fossil might not like - … | |
Re: I agree. They're just another road hazard for noobs to trip over as it stands. | |
Re: So what's wrong with remembering where you last drew the pixel, rather than trying to find it again sometime later. | |
Re: Some additional reading, which Dave's links allude to. [url]http://www.itis.mn.it/linux/quarta/x86/lock.htm[/url] [url]http://www.dlugosz.com/Repertoire/refman/Classics/atomic_counter_whitepaper.html[/url] [url]http://www.informationdelight.info/encyclopedia/entry/x86_assembly_language[/url] You're not going to be able to do this in simple ANSI C, without getting your fingers grubby with assembler, or getting the OS involved in some way. | |
Re: Tutorial series. [url]http://www.adrianxw.dk/SoftwareSite/Consoles/Consoles1.html[/url] | |
Re: > as my colleague's excuse for my disagreeing with him is that I'm from the last generation, and so I "just don't get it"! Nothing dates technology quicker than oldies getting hold of it and saying how great it is using "yoof" words to describe it ;) I'm waiting for … | |
Re: [url]http://www.parashift.com/c++-faq-lite/operator-overloading.html[/url] | |
Re: Do you want to? - clip extreme values, say if ( x > 25 ) x = 25 ? - scale the graph (max=100), so px = x * 25 / max | |
Re: Ah, another geography question. For instance, some idea of your location and how much you're willing to pay, and some evidence of [URL="http://lmgtfy.com/?q=Intel+Server+Board+S5000"]looking for yourself[/URL] Mmm, $500 +/- | |
Re: [url]http://www.daniweb.com/forums/announcement14-2.html[/url] [url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url] | |
Re: Look at some other forums as well [url]http://cboard.cprogramming.com/cplusplus-programming/119631-pythagorean-numbers.html[/url] oh wait, you're already there, and making progress. Why are you here as well? Read these [url]http://www.catb.org/~esr/faqs/smart-questions.html#forum[/url] [url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url] | |
Re: Try [ICODE]volatile int variable;[/ICODE] Even then, you should really use proper synchronisation. If the compiler sees [code] int variable = 0; while (variable == 0) [/code] the optimiser (in release builds) will see that there is no (obvious) way that variable can change, and so it optimises the code to … | |
Re: > Now I want a shell script to automate this process. Give us an idea of the kinds of repetitive commands you type in (and as skanke points out - which machine you type them on). Perhaps then, we can suggest various script features to automate it. (((please let it … | |
Re: Short answer - don't mix cin and getline. They don't play well together. Plenty of past posts and answers for this problem, look around. | |
Re: Standard C doesn't allow you to declare variables in the middle of statement blocks. | |
Re: Generate 1 digit, in a loop which runs 8 times. | |
Re: [url]http://www.daniweb.com/forums/thread223648.html[/url] The amount of effort it took just to reverse a string makes this near impossible for you. You need some more intermediate steps if you actually want to make a contribution for yourself rather than waiting for us to write it all a few lines at a time. | |
Re: > I use only linux and I am unable find the compiler. And what are you going to do with the executable when you've compiled your code? | |
Re: [url]http://en.wikipedia.org/wiki/Non-maskable_interrupt[/url] > Devices (Bus:Dev:Func) with SERR set at the time of the NMI:01:1C:01" Depending on your BIOS (it may also be in windows device manager somewhere), you might be able to find out what the bus/device part is at least. > all tests it runs get the green check mark … | |
Re: 16 replies over here -> [url]http://cboard.cprogramming.com/c-programming/119668-circular-buffer.html[/url] In other news -> [url]http://www.catb.org/~esr/faqs/smart-questions.html#forum[/url] And finally, the weather -> [url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url] | |
Re: > That is how I get the binary. That's how you do it for every other base as well. | |
Re: pipes are a POSIX API (and not a language issue at all). If you've got an appropriate declaration, then you can call them from whatever language you like (perl and python can access pipes as well). | |
Re: > typedef struct queue_type *Queue; This should come AFTER your actual struct declaration. | |
Re: There's a memory overwrite bug in your code somewhere (most likely anyway). Without seeing the whole code, we're not going to figure anything out staring at those 3 lines. | |
Re: Ignore this, reposted here with tags [url]http://www.daniweb.com/forums/thread223821.html[/url] | |
Re: > the most complicated program ive made is something that converts hexa to octa and all. You've mastered hopscotch on the paving slabs, and now you want to try and leap across the Grand Canyon. jasimp is right, you've got a hell of a lot of learning to do before … | |
Re: More cross-forum spamming [url]http://cboard.cprogramming.com/c-programming/119681-help-c-code.html[/url] Ever feel like you're just wasting effort reading and answering the SAME question over and over again? | |
Re: [url]http://cboard.cprogramming.com/cplusplus-programming/119676-need-help-compiling-vcplusplus-6-project-dev-cplusplus-4-9-9-2-a.html[/url] and [url]http://www.daniweb.com/forums/thread223732.html[/url] | |
Re: You haven't actually executed the pop ebp yet, so of course it has the old value. | |
Re: A pointer to a 2D array is not a ** [url]http://www.daniweb.com/forums/post859293.html#post859293[/url] Use the typedef approach if you want to keep your sanity ;) | |
Re: [url]http://www.daniweb.com/forums/thread223471.html[/url] Patience, don't spam the board in a panic. | |
Re: if(! CreateProcess("C:\\WINDOWS\\system32\\cmd.exe", This needs to be something like [ICODE]if(! CreateProcess("C:\\Users\\me\\Documents\\Projects\\Fib\\myfib.exe",[/ICODE] It does all the work. This code just has to create the process and wait for it to finish. | |
Re: > actually i wonder how can i make header file with private and public data? Yes, they're called [COLOR="Red"]class[/COLOR]es. Which is pretty much the root concept of C++ programming. Time to read the book again. | |
Re: Same answer as your other thread [url]http://www.daniweb.com/forums/thread221310.html[/url] Or you could mention which OS/Compiler you're using. For Linux, I strongly recommend valgrind for finding overruns and leaks. | |
Re: a) Your "cd" command only lasts as long as the sub-process does (and it only affects the sub-process). If you really want to change the directory in this process, you need to use the chdir() API call. b) You already have the directory in a string, so why not try … |
The End.