5,237 Posted Topics
Re: Tom Gunn, please read these: [url]http://www.daniweb.com/forums/thread78060.html[/url] [url]http://www.daniweb.com/forums/announcement118-2.html[/url] There's a line between "help" and "spoon-feeding the complete answer". | |
Re: Have you read this yet? [url]http://www.beej.us/guide/bgnet/[/url] | |
Re: [url]http://www.tldp.org/HOWTO/NCURSES-Programming-HOWTO/[/url] [url]http://invisible-island.net/ncurses/ncurses.faq.html[/url] | |
Re: > Or, is it time to take everything off of it and trash it ? That would be the best idea. If there is mechanical damage, then no s/w is going to be able to fix that for you. It might be able to work around the problem for a … | |
Re: > nm command shows that the corresponding object names are mangled (e.g. _Z12releaseTimerv), Try adding the extern "C" to the implementation of those functions as well. > Using extern "C" in the header file did not remove it. But it did make it so that the users of that function … | |
Re: Maybe start with a fairly simple implementation of a linked list. | |
Re: Except which one is "fastest on the current setup" is a moving goalpost with every patch / update / release / new compiler. Plus if you're writing code which is in any way open source, then a whole raft of different compiler options will appear, each with their own "x … | |
Re: - fopen to open files, fclose to close them - fgets / fputs to deal with whole lines - sscanf to parse a line - sprintf / strcpy / strcat / str.... to generally mess around with char arrays to arrive at the answer you want. | |
Re: Use the debugger to debug your program. All you need do is run the program in the debugger, and it will catch the fault. Then you work your way back up the call stack to YOUR code, and then start looking around to see what might have gone wrong. - … | |
Re: > So, should I buy a Macbook or a Macbook Pro for all the mathematical work that I will be doing? Why not ask your faculty to be for a recommendation? Instead of asking "J Random Poster" who knows less about your course to be than you do. | |
Re: How does the BIOS see the disk? Is it in LBA mode, or autodetect? | |
Re: Do you mean efficient, or elegant? Do you mean efficient, or adaptable? You could create (or find, there are plenty for this common exercise) a CSV class which does all the comma parsing for you. [code=c++] while ( line.getline() ) { CSV parser(line); // does all the magic of splitting … | |
Re: > how would you decompile it in order to see its code? Short answer - you can't disassemble code. Long answer, you can disassemble code, but the result is likely to be the most horrible mess you've ever seen. Example: [code] for ( i = 0 ; i < 10 … | |
Re: You can run as many copies of the free VmWare player as you like [url]http://www.vmware.com/products/player/[/url] But you can only run pre-built VmWare images inside the player. You can get them from many sources, such as here [url]http://www.vmware.com/appliances/[/url] | |
Re: > while using WIN32 API will limit it to Windows. You're even MORE limited by your choice of compiler!. You can build a simple window effect using curses [url]http://pdcurses.sourceforge.net/index.html[/url] | |
Re: > [COLOR="Red"]fact [/COLOR]= [COLOR="Green"]fact[/COLOR](number); How does the compiler decide what you mean? | |
Re: > write a program to find size of a file without traversing it character by character? Even using fseek()/ftell() might be an approximate answer. [url]http://c-faq.com/stdio/textvsbinary.html[/url] | |
Re: You've read the paper (I guess), what do you think they should be? | |
Re: > - Learn an I.T. skill in the shortest period of time Does moving the mouse count? Seriously, anything which pays well takes a LONG time to learn. You can't just chew on the end of a cat-5 cable, hope to absorb lots of information "matrix-style" and then 10 seconds … | |
Re: It's what search engines were made for. [url]http://clusty.com/search?query=base+sas+certification&sourceid=Mozilla-search[/url] Use them. | |
[URL="http://www.telegraph.co.uk/news/worldnews/europe/eu/5413090/European-elections-2009-No-wonder-voters-cant-be-bothered.html"]I don't know and I don't care[/URL] | |
Re: Evolution is a fact and a theory [url]http://www.talkorigins.org/faqs/evolution-fact.html[/url] Also, the "how life got started" is a completely different question to evolution, which describes what happened after it did start. Finding say DNA (or not) on Mars / Europa in the next decade or two will certainly help in that discussion. … | |
Re: You're not trying to call printf() INSIDE the ISR are you? Because that's a really bad idea. | |
Re: > have asked in the virus forum, no reply. maybe cause im new No, it's because you only [URL="http://www.daniweb.com/forums/thread196522.html"]posted less than an hour ago[/URL]. You're getting a free service, which means people answer in their own time at their own pace. If you want guaranteed service, pay some money to … | |
Re: else if ( s.length() == 1 ) return true; else do something to s, and do return isPalindrome(s) | |
Re: Time flies like an arrow. Fruit flies like a banana. | |
Re: I figure it's code::blocks IDE One difference between running inside and outside the IDE is the apparent "current working directory". Does your program open any files? Do you check for success when opening those files? If you don't, you take a leap into the big unknown and post a message … | |
Re: [url]http://cboard.cprogramming.com/cplusplus-programming/116672-lcn-particular-volume-say-g-drive-will-start-0x00.html[/url] Here's why not [url]http://www.catb.org/~esr/faqs/smart-questions.html#forum[/url] | |
Re: [url]http://www.catb.org/~esr/faqs/smart-questions.html#beprecise[/url] 1 line of random English words with a ? at the end does NOT make it a question. | |
Re: > I am using a windows vista operating system and the code is correct, How do you know the code is correct? The evidence so far would suggest that the code isn't correct. Post an actual runnable subset of the code which crashes, not 1-line snippets of your guesses at … | |
| |
Re: So if you've got say 0x41 in AX, what do you expect to see as "output", and where do you expect to see it? As the letter 'A' As the decimal 65 As the hexadecimal 0x41 As a particular colour of pixel somewhere on screen. As a particular audio tone … | |
Re: a) post what you actually tried, not a description. b) post your actual error messages c) tell us what your OS/Compiler is. | |
Re: Enroll in Stanford's cs program would seem to be the best way. Why is "pdf ps" at the end of every line? That in itself suggests you copied this from some D/L page anyway. | |
Re: Firefox + Adblock+ [url]https://addons.mozilla.org/en-US/firefox/addon/1865[/url] If you want to allow ads on your favourite site, then you can do this, otherwise, they're history. Noscript [url]https://addons.mozilla.org/en-US/firefox/addon/722[/url] If you absolutely must run javascript on a trusted website to get anything done, then you can enable it for that site. Otherwise, no thanks. Flashblock … | |
Re: Posting some code which shows an attempt would be useful. As well as mentioning which OS/Compiler you're actually using. | |
Re: ctrl-alt-del come in for some wear ;) | |
Re: There are many things wrong with your code. But first, a question. How many lines did you write before pressing "compile"? If it was more than 10, then read [URL="http://cboard.cprogramming.com/c-programming/88495-development-process.html"]this[/URL] It's quite simple, if you only write 10 lines, press compile and get a new compiler error message, you've got … | |
Re: > Can memory addresses be negative No - that's just the way you print it. Use the %p format for printing a pointer. > 2)is negative subscript of array allowed in C? No. Arrays themselves are always 0-based, so there is never a negative subscript. That's not to say that … | |
Re: Your second call to getFirst() first consumes the \n left behind by the previous scanf() call. Mixing input methods is always a disaster waiting to happen. | |
Re: You can't mix declarations and statements in normal C. [code] FILE*in; FILE*out; in=fopen("0.txt","rt"); out=fopen("rotation0.txt","w"); [/code] C++ allows this, C99 (the new C standard, but not widely supported yet) allows this, and so do some compilers as an extension. > return 0; > fclose(in); > fclose (out); You're not going to … | |
Re: - open case - read manufacturer / model number off the motherboard - use those to search google, along with "ram upgrade" | |
Re: From your definition of "best", an array seems the obvious choice. The code is trivially easy, and the the result has very good performance. The down side of an array is that it is always allocated in memory. So it wastes memory when the stack is unused, and cannot be … | |
| |
Re: > Write a program to implement linked lists to handle large integers. Good for you, come back when you've made an effort. And read this [url]http://www.daniweb.com/forums/announcement8-2.html[/url] > Good challenge n happy coding! Or just go away and fail the course. You're simply not up to completing it. This is just … | |
Re: > why the line age = getInt(IsValidAge); executes before printf Standard out is buffered. The printf happened, in the sense that the resulting string was stored in the standard out buffer maintained by the library. But what didn't happen was that buffer being sent to the outside world so you … | |
Re: [url]http://answers.yahoo.com/question/index?qid=20080604100041AAgKk9J[/url] for SHAME!!!!!!!! | |
Re: Draw diagrams - [URL="http://en.wikipedia.org/wiki/Unified_Modeling_Language"]UML[/URL] seems to be the thing to use nowadays. There are some good tools (and some free ones) which help with the maintenance. Though if you're only planning a few diagrams, paper and/or a whiteboard with post-it notes makes a great substitute. Although UML has 13 different … | |
Re: Well while you're waiting, consider reading the forum rules on how to post code, then edit your code for readability. | |
Re: 250 posts, and you're still cross-posting [url]http://www.daniweb.com/forums/thread195793.html[/url] Yes I have the answer, and no you're not getting it. |
The End.