5,237 Posted Topics
Re: What do you think? Or ask yourself the question, if the answer were "No", what sort of chaos would result? | |
Re: Pre-process your string to remove the comma, then use strtod() | |
| |
Re: No, anything which can communicate with a serial port will be able to do the same thing. | |
Re: "no tickie, no washie" [url]http://www.daniweb.com/forums/announcement8-2.html[/url] | |
Re: Think about how many messages you can get through what is essentially a SERIAL cable "at the same time". | |
Re: It was originally in UNICODE, and now it's in ASCII? | |
Re: Like using a for loop perhaps? | |
Re: While we're on the subject of "don't", don't call main recursively as a simple way of generating a loop. Recursive calls to main() are illegal in C++. | |
Re: We're not going to be able to help you much from a description and a couple of lines of random code. [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url] If you can pare your code down to "this code doesn't work", then that is something we could probably work with. | |
Re: Yeah, right, good for you. Now complement your copy/paste skills with some reading the forum rules skills. [url]http://www.daniweb.com/forums/announcement8-2.html[/url] | |
Re: How about a web search for the same? It's not like "number of newbie tutorials == 0". | |
Re: From your other posts, I'm guessing Win32. So how about a WM_TIMER message? | |
Re: What have you tried? AKAIK, the GNU linker re-scans libraries, so the order it less important. | |
Re: Read the manual perhaps? Y'know, somewhere close to the part where you learnt how to draw a circle to begin with.... | |
Re: if elseif elseif elseif elseif elseif else only ever runs ONE of the available choices. As soon as one of the if statements is true, that's all there is. Try a sequence of separate if statements. | |
Re: What are you going to use it for? - high end game playing - server farm - s/w development - surfing the web What else are you intending to buy? To get the best out of it, you need to match it with similar spec memory, disks etc etc. | |
Re: Compression is an algorithm, independent of it's implementation language. You could implement ZIP in assembler, C or Java (or pretty much anything else) and the end result would be the same. Or do you have some other metric for "best"? | |
Re: [url]http://wiki.allegro.cc/index.php?title=Pixelate:Issue_12/Viewport_Pushing[/url] | |
Re: [url]http://beej.us/guide/bgnet/output/html/multipage/syscalls.html#bind[/url] Since your port is <1024, are you running as root? Some more error checking wouldn't go amiss either. You might have found the error to be "EPERM" or something. | |
Re: [url]http://pcsupport.about.com/od/fixtheproblem/a/biosaccess_pc.htm[/url] Scroll down to the Dell bit. When the machine powers on, press Del (or other combination) to enter the BIOS. On one of the pages, there will be an option to set the boot device order. It's probably set to something like "C only". Anyway, you should change this … | |
Re: 1. Use a debugger. As in [CODE]gcc -g prog.c gdb a.out [/CODE] First thing to try is just letting it run, then use the 'bt' command to get a stack trace at the point it segfaults. Then read the help to figure out how to examine variables, set breakpoints for … | |
Re: If you have a compiler already installed, and in your PATH environment variable, then just press F5 and type gcc prog.c where gcc is the name of your compiler, and prog.c is the current filename you're editing. Then press F1 to figure out how to make the command automatically substitute … | |
Re: Unless the PC in question supports one of these, no. [url]http://clusty.com/search?query=wake+up+on+rtc&sourceid=Mozilla-search[/url] [url]http://clusty.com/search?query=wake+up+on+lan&sourceid=Mozilla-search[/url] | |
Re: > ie instead of deleting a the content of next node is copied to current node and the next node is deleted. Why overly complicate things? Or more specifically, what happens when the next node is NULL, what do you copy then? Or delete for that matter. | |
Re: Does vector.h include vector.h ? Check for a missing ; either at the end of the .h file, or earlier on in the .c file. | |
Re: Oh really? Took me all of 5 seconds [url]http://www.aspfree.com/c/a/Code-Examples/The-FordFulkerson-Algorithm/3/[/url] | |
Re: We only give homework help to those who show effort [url]http://www.daniweb.com/forums/announcement8-2.html[/url] > write a c++ program to eliminate blank space ,comments, tabs in a given file. How about starting with a program which simply COPIES the input file to the output file? Can you manage that? If you can, then … | |
Re: [url]http://www.seas.upenn.edu/~chinawat/teaching/2007c/lab03sup.pdf[/url] Found with 5-seconds of google. | |
Re: You're walking along the beach with a bag of pebbles. With each step, you drop a pebble. What do you know if you see a pebble on the ground? | |
Re: So have you written the algorithm out on paper, or made any kind of sketch as to the steps you need to perform? Or did you just dump the whole assignment on the board, along with all the "gimmetehcodez" bumps to similar threads that I'm seeing. Read the forum rules … | |
Re: How about you explain what YOU think the answer is, and wait for us to comment on it. As opposed to merely dumping the assignment on us and waiting for the answer on a plate. | |
Re: gcc -S prog.c Will generate some asm. Try cribbing from that. | |
Re: Well posting your actual code (not a description of a couple of functions you used, and "it crashed") would go a long way to helping you. | |
Re: All the port numbers, and what they're used for. [url]http://www.iana.org/assignments/port-numbers[/url] | |
Re: > why we have an int type when we already have short and long ints You got it the wrong way round. C evolved from B and BCPL, where the only data type was "the machine word". This became the int type in C. The short and long got added … | |
Re: You mean like using a decent 32-bit compiler on your 32-bit OS, complete with a wide range of graphics libraries. floodfill() is recursive, massively so. Unless you do something, your default stack size of a few KB will disappear all too rapidly. Even if you increase the size of the … | |
Re: Since you mentioned C#, I guess you're using a modern MS OS that uses cmd.exe as the command processor. Step 1 is read and understand the "set /?" output. [code] Finally, support for delayed environment variable expansion has been added. This support is always disabled by default, but may be … | |
Re: This is your 7th thread begging for help, and 25th post. So far, I've yet to see ANY meaningful attempt at writing any code at all, and a hell of a lot of whining trying to get other people to do it for you. My guess, you're already hopelessly behind … | |
Re: Well you could post something which at least compiles. I mean, you seem to be on the right track, it's like you just gave up because you couldn't make it work on the first edit. | |
Re: popen is a SIMPLE wrapper for uni-directional communication only (either reading or writing). Some enhanced versions of popen() allow bi-directional flow (which is what you would want for an interactive program like telnet). If you want real control over what is going on, then you'll need to read up on … | |
Re: > if status = "Yes"; Read your text book again, the outermost ( ) are ESSENTIAL, that is part of the language, and not a wrapper around an expression (one of their other uses). | |
Re: > zyxwvwxyz [URL="http://www.rickadams.org/adventure/c_xyzzy.html"]xyzzy[/URL] on the other hand is rather more complicated that it would seem ;) | |
Re: > while(scanf("%d %d", &row, &column) != EOF); Guess what the ; at the end of this line does. As in [ICODE]while(scanf("%d %d", &row, &column) != EOF) { /*nothing at all here */ }[/ICODE] | |
Re: 1. How do you know there is a memory leak here? 2. The code indentation is a mess. [code] if(m_playSound) { const char* soundToPlay = layout->GetWinName(); char* soundTemp = NULL; if(m_playAltScatterSndSymbol != -1) { for(int i = 0; i < layout->GetNumPositions(); i++) { ReelWinSymbolPosition* rwsp = layout->GetReelSymbolPosition(i); for(int i = … | |
Re: Create two meaningful variable names, like [CODE]int spacesBeforeFirstStar = 11; int numSpacesBetweenStars = 0;[/CODE] Then perhaps [CODE]for ( rows = 0 ; rows < 5 ; rows++ ) { // some stuff spacesBeforeFirstStar -= 2; }[/CODE] Not meaningless variable names like a and b. | |
Re: [url]http://catb.org/~esr/faqs/smart-questions.html[/url] Your post is too short to be of any use at all. | |
Re: > This partition should be usable for booting purpose. If it's virtual, then it will only exist while part of your s/w is running. At bootup, NONE of your code will be running, so how could you ever boot from it ? | |
Re: I can see all this bumbling around in the dark resulting in "rmdir c:\" at some point :icon_rolleyes: |
The End.