5,237 Posted Topics
Re: [url]http://www.daniweb.com/forums/thread203327.html[/url] Last edited by Ancient Dragon : 16 Days Ago at 21:22. Reason: correct code tags -- use [code] instead of <code> [url]http://www.daniweb.com/forums/thread202126.html[/url] Last edited by Ancient Dragon : 21 Days Ago at 04:39. Reason: correct code tags [url]http://www.daniweb.com/forums/thread201314.html[/url] Last edited by Tekmaven : 25 Days Ago at 01:13. Reason: … | |
Re: > gets(string); Using gets() should be a capital offence. [url]http://c-faq.com/stdio/getsvsfgets.html[/url] | |
Re: [url]http://msdn.microsoft.com/en-us/library/7dzey6h6(VS.71).aspx[/url] Visual Studio 6 for example defaults to ANSI Visual Studio 2008 defaults to UNICODE The Win32 API functions (like CreateFile) are already wrapped, but many standard functions in the CRT are not. Also, you need to use the TEXT() or _T() macro for ALL your string constants. Read the … | |
Re: [URL="http://en.wikipedia.org/wiki/Logo_%28programming_language%29"]How about LOGO[/URL]? It'll teach a lot of useful skills which will be useful, and the amount you need to know to get going is pretty minimal. Once started, your son can progress at his own pace. | |
Re: > Well, i have used this program in visual C++ 6.0. VC6 is over 10 years old. The world has moved on, and so have the standards for C++. > And i have n't posted this code without consulting a proper teacher. Ever hear the adage "those that can, do; … | |
Re: Add /tasm/bin to your path Like this [ICODE]PATH=C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;[COLOR="Red"]C:\TASM\BIN[/COLOR][/ICODE] Exactly how you do that depends on which OS you have. Find out your current path by typing path at the command prompt. | |
![]() | Re: Since we can't see either the formula you've chosen, or how you've implemented it, there isn't much we can do. Post your code. |
Re: > char ch = getchar(); It should be int ch = getchar(); char holds all possible chars. To hold all possible chars and EOF, you need a bigger data type, thus int. Nor is the returned value guaranteed to be -1, which is why there is a constant EOF declared … | |
Re: Exactly like I described in response to your other magic square thread. [url]http://www.daniweb.com/forums/thread147840.html[/url] So long as your declaredmatrixsize is < MAX (in mine), you're good. | |
Re: The same way you would encrypt / decrypt anything else. Your E/D code shouldn't care about the source of the data at all. It's just a stream of bytes. | |
Re: Some ideas: 1. measure the depth of the tree, so you know how much to indent the root node 2. as you recursively print it, going left decrements the current indent, and going right increments it. | |
Re: Well, have you managed to get as far as - open the input file - read all the data into a suitable data structure - close the input file Then - open the output file - write all the data from your structure to the file - close the output … | |
Re: Where did you put libcurl.a ? Where your -L option points to? | |
Re: [url]http://en.wikipedia.org/wiki/Methods_of_computing_square_roots[/url] The math.h implementation of sqrt() could well use one (or more) of the methods outlined in the link. You too could implement the algorithms, and not rely on "math.h". | |
Re: So when do you get to choose 'N' ? - at compile time - at run time | |
Re: Are you really using DOS? Actual DOS, with the full black screen all the time, with a C:\> prompt? Because I'm pretty sure that trying this in a NTVDM emulation, or a win32 console just isn't going to work. Info on interrupts [url]http://www.ctyme.com/intr/int.htm[/url] Info on what happens next (or first, … | |
Re: > this doesnt work.......there is no return....no mention of std??? Did you try it, before bumping this dead thread? If so, which ancient compiler did you use (probably some turboc fossil no doubt). | |
Re: Dunno. But comparing "i want to design a new web browser" with the cast of thousands (probably) who work on firefox, what exactly are you hoping to achieve? Firefox it seems uses many languages, as no single language would be the best choice at all levels of the program. | |
Re: You could always try [ICODE]for( i=0;i<20;i++)[/ICODE] and observe the error messages Maybe then try [ICODE]int i; for(i=0;i<20;i++)[/ICODE] | |
Re: [url]http://www.scdeveloper.com/Readers/ACR120.htm[/url] Perhaps click on "SC Developer Resources" ? Did you get any manual / guide / CD with it when you bought it? | |
Re: Well if you've already created functions to read a whole record and write a whole record, then perhaps something like [code] int matchID ( record *rec, char *ID ) { return strcmp( rec->ID, ID ); } [/code] Based on the result, you can decide whether (or not) to output the … | |
Re: Well what format is this image file in? BMP format perhaps? Though most newbies start with mazes defined in ascii art, like this [code] #S######## # # ###### # # # #E######## [/code] Find a route through the maze from S to E | |
Re: The descriptor is what is returned by open() and passed to close(), read(), write() etc. It is what identifies the open file. The filepointer is the location within the file where the next read/write operation will take place. You can modify it by using say lseek(). | |
Re: > is there is any function to implement this HELP !!! There is no STANDARD function to do this, so in order to advise you properly, you need to tell us which OS/Compiler you're using. | |
[url]https://plus.google.com/u/2/101960720994009339267/posts/ENuEDDYfvKP?hl=en[/url] [url]http://en.wikipedia.org/wiki/Dennis_Ritchie[/url] It is indeed a sad day when one of the true pioneers of the modern technological world passes away. C and Unix are such huge corner stones of everything around us (like the ability for me to write this, and you to read this), and have inspired so … | |
Re: Facebook IS the scam. [url]http://www.mattmckeon.com/facebook-privacy/[/url] Click through the years, see how the blue "privacy" (joke) spreads with the passing of years. Between their screw-ups, and your ignorance, you may as well just jump in a tar pit, run through a quilt factory and have a big "kick my ass" sign … | |
Re: I'd hate to watch anything greater than O(nlogn) though. | |
Re: 1. "I reported 1000 spam posts and all I got was this lousy t-shirt" 2. [url]http://en.wikipedia.org/wiki/Barcode#UPC[/url] The main logo is the UPC for the T-shirt itself. Underneath is says "machine-readable and machine-washable". Just walk past check-outs and see if you can get billed for "1 T-shirt" then complain that you … | |
Re: You haven't been trying to delete books anywhere else have you? Deleting the same book twice is a sure recipe for disaster. I see your addBook() returns a pointer to a book (why?). What else are you doing with that book pointer? If you need to remove a book, then … | |
Re: That would depend on your operating system and compiler. So which do you have? Try to be more specific than "windows" and "borland", as there are many versions of each. | |
Re: Or even use a debugger, and put the variables in the watch window, so you can see what happens as you single step the code. So long as you can imagine what should happen next, that's all you need. So that when something you didn't expect happens, you've found a … | |
Re: Without putting both versions of the .bat file into a hex editor, it's hard to see what could be wrong. | |
Re: When you've figured out how to talk to the network, read this [url]http://tools.ietf.org/html/rfc1305[/url] | |
Re: [url]http://beej.us/guide/bgnet/output/html/multipage/advanced.html#broadcast[/url] | |
Re: > The main thing is to contribute good quality postings, ask interesting and relevant questions and answer threads where you know the answer. Perhaps you should just delete the entire [url]http://www.daniweb.com/internet-marketing/25[/url] tree, which seems to consist mostly of low quality link spam to dubious MLM marketers and other related scams. | |
Re: [url]http://clusty.com/search?query=osx+virus&sourceid=Mozilla-search[/url] But if you take reasonable steps, like not surfing with admin privileges, not clicking on every single link in every spam message, and not purposely visiting every porn/warez site, your risk is pretty low. There's a much bigger pond of windows / IE users to go fishing in, with … | |
Re: [url]http://blogs.msdn.com/oldnewthing/archive/2003/10/22/55388.aspx[/url] Scroll down a couple of pages. CON was (or still is) the console where you interact with the command interpreter. | |
Re: 3 = x Is an error because 3 cannot be an L-value x = 3 is OK, because x can be an L-value. | |
Re: Never use [URL="http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1049157810&id=1043284351"]gets()[/URL], it is a totally unsafe function. Using scanf() comes with it's own bunch of problems as well, not least of which is the behaviour of leaving the newline behind, ready to mess up your gets() calls. Always use [INLINECODE]char buff[BUFSIZ]; fgets( buff, sizeof buff, stdin );[/INLINECODE] to … | |
Re: > You know you are a geek when .... You post "You know you are a geek when ...." threads :) And also reply to "You know you are a geek when ...." threads ;) | |
Re: > capture2 = cvCaptureFromCAM( 1 ); It means this returned NULL. It also means there was probably a problem with the call. It also means that there's also probably an error function you can call to find out more about why it returned NULL. If you RTFM for this function, … | |
Re: > yes that is a correct way u can proceed......... Over a year late, and still you missed the better answer from ~s.o.s~ | |
Re: [url]http://www.google.co.uk/search?q=thesis+title+help[/url] See, the problem here, is that DW is the #1 link at the moment. So in they come "feeling lucky", only to get a face-full of wet fish. But the self-reinforcing meme has been planted, with YET ANOTHER post with the magic search engine keywords to ensure that more … | |
Re: Something like this? [code] char filename[] = "00001234_FILENAME.EXT"; char newfilename[100]; if ( sscanf( filename, "0000%*d_%s", newfilename) == 1 ) { // format seems to be as expected rename(filename,newfilename); } [/code] | |
Re: > perhaps 1000 chars, so I need something scalable to multiple cores/cpus. Try doing the maths first. Each character you add to the length of the string DOUBLES the amount of time it takes. If you were blindingly efficient in your code, and could permute every 1nS (a handful of … | |
Re: Try [url]http://www.tomshardware.co.uk/[/url] | |
Re: [url]https://wiki.ubuntu.com/HardwareSupport/[/url] One distro, with a hardware compatibility list. And a whole lot more. [url]http://distrowatch.com/[/url] ![]() |
The End.