5,237 Posted Topics

Member Avatar for gemni7
Member Avatar for doublebond

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

Member Avatar for giomal
0
1K
Member Avatar for Alfy

> gets(string); Using gets() should be a capital offence. [url]http://c-faq.com/stdio/getsvsfgets.html[/url]

Member Avatar for zeroliken
0
2K
Member Avatar for jp071

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

Member Avatar for zeroliken
0
2K
Member Avatar for hkhk106

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

Member Avatar for sumtaru
0
241
Member Avatar for Aniqa Shaikh

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

Member Avatar for sameershah21
1
671
Member Avatar for rumencho

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.

Member Avatar for amar.chukki
0
1K
Member Avatar for DigitalPackrat

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.

Member Avatar for bbman
0
901
Member Avatar for Majoni

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

Member Avatar for gourav1
1
365
Member Avatar for unk45

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.

Member Avatar for Rabia_Akhlaq
0
303
Member Avatar for kartouss

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.

Member Avatar for Zhassan
0
1K
Member Avatar for basukinjal

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.

Member Avatar for steve.lorimer
1
11K
Member Avatar for lynxul

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 …

Member Avatar for humnah
0
169
Member Avatar for mybluehair
Member Avatar for shankhaa
0
1K
Member Avatar for tformed

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

Member Avatar for mikrosfoititis
0
1K
Member Avatar for mr_maverix
Member Avatar for mridul.ahuja
-1
306
Member Avatar for nicck0

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

Member Avatar for emerak
-1
111
Member Avatar for kgz

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

Member Avatar for Fuseteam
1
5K
Member Avatar for cpeeyush1

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.

Member Avatar for chrishea
0
322
Member Avatar for pato wlmc

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]

Member Avatar for Tumlee
0
5K
Member Avatar for boyz
Member Avatar for alski

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

Member Avatar for A.Basile
-1
4K
Member Avatar for im4tion

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 …

Member Avatar for santakdalai90
1
337
Member Avatar for Iphicles

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

Member Avatar for timetraveller92
1
480
Member Avatar for varsha0702

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

Member Avatar for karthikvb17
0
459
Member Avatar for deepak1331

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

Member Avatar for Narue
0
10K
Member Avatar for Salem

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

Member Avatar for cwarn23
3
129
Member Avatar for jingda

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 …

Member Avatar for Nick Evan
2
231
Member Avatar for jon.kiparsky
Member Avatar for AliTheChamp
3
127
Member Avatar for WASDted

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 …

Member Avatar for Netcode
0
989
Member Avatar for Undertech

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 …

Member Avatar for doug65536
0
2K
Member Avatar for mail2shrid

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.

Member Avatar for ashok1514
0
4K
Member Avatar for rocketman03

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 …

Member Avatar for WaltP
1
441
Member Avatar for darren2005

Without putting both versions of the .bat file into a hex editor, it's hard to see what could be wrong.

Member Avatar for metoohere
0
438
Member Avatar for Rass Saee

When you've figured out how to talk to the network, read this [url]http://tools.ietf.org/html/rfc1305[/url]

Member Avatar for naavinm
0
136
Member Avatar for guggenheim

[url]http://beej.us/guide/bgnet/output/html/multipage/advanced.html#broadcast[/url]

Member Avatar for Ben Mehlman
0
730
Member Avatar for jingda

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

Member Avatar for ggeoff
0
555
Member Avatar for Aneesha

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

Member Avatar for jsepeta
0
911
Member Avatar for nitu_thakkar

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

Member Avatar for BlackHawck
0
339
Member Avatar for satish.paluvai

3 = x Is an error because 3 cannot be an L-value x = 3 is OK, because x can be an L-value.

Member Avatar for Narue
-1
270
Member Avatar for ankit_the_hawk

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 …

Member Avatar for thisun
0
13K
Member Avatar for sneekula

> 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 ;)

Member Avatar for Netcode
0
674
Member Avatar for pseudorandom21
Member Avatar for stonerain

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

Member Avatar for Raimucka
0
2K
Member Avatar for jaepi

> yes that is a correct way u can proceed......... Over a year late, and still you missed the better answer from ~s.o.s~

Member Avatar for WaltP
0
1K
Member Avatar for jhamela

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

Member Avatar for MooGeek
-3
157
Member Avatar for EddyWally

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]

Member Avatar for EddyWally
0
170
Member Avatar for drdaco

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

Member Avatar for Adak
0
251
Member Avatar for hussanali
Member Avatar for vickycodmaster

[url]https://wiki.ubuntu.com/HardwareSupport/[/url] One distro, with a hardware compatibility list. And a whole lot more. [url]http://distrowatch.com/[/url]

Member Avatar for SirMG
0
373

The End.