5,237 Posted Topics
Re: But what is your actual question? | |
Re: Grab the source code for one of the existing CD writer applications for Linux, and study it thoroughly. | |
Re: CODE tags, as the intro thread says, which you've obviously missed on your stampede to get your question asked as soon as possible. | |
Re: I'm concerned that you've been here for a while now, and you still haven't figured out this CODE tags deal. | |
Re: [url]http://www.daniweb.com/techtalkforums/announcement125-3.html[/url] Then edit your post for readability. | |
Re: 1. It's obsolete. You should really use stdlib.h for getting prototypes to malloc etc. It was used by some ancient compilers, but not anymore. 2. You can't just download a .h file, that's not how it works. You need a library as well, one which is compatible with your compiler. | |
Re: The first problem to fix is to get a new keyboard. It seems the 'p' and 'z' keys are a bit on the sticky side. [INLINECODE]ppppppprintf("hello world");[/INLINECODE] just isn't going to compile properly. [url]http://www.catb.org/~esr/faqs/smart-questions.html#writewell[/url] | |
Re: Do your own homework. [url]http://www.daniweb.com/techtalkforums/announcement125-2.html[/url] | |
Re: This is about as simple as it gets. [url]http://en.wikipedia.org/wiki/Caeser_cipher[/url] | |
Re: Can you spend 10 seconds writing a 1 line program to show you the answers? | |
Re: If your path looks like that, I'd say you've got other problems in the code as well, because it looks like something has been trashed. | |
Re: [url]http://www.daniweb.com/techtalkforums/announcement125-3.html[/url] | |
Re: [url]http://www.daniweb.com/techtalkforums/announcement8-3.html[/url] Isn't the watermark at the back of the edit box enough of a clue? | |
Re: [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_playsound.asp[/url] Read up on SND_MEMORY and SND_RESOURCE. Accessing sounds in memory will be quicker than loading them off disk each time. SND_ASYNC is good if you want to play really long files, and you want to be getting on with something else in the meantime. If you just want to … | |
Re: [url]http://www.daniweb.com/techtalkforums/announcement8-2.html[/url] | |
Re: > FILE *stream; > > if(stream = NULL) Where is the opening of the file? You're using = where you should be using == In short, your FILE pointer is a complete mess, no wonder fwrite and fread complain. | |
Re: [INLINECODE]array[7] = array[8]; array[8] = array[9];[/INLINECODE] And so on, but you'll probably want to use a loop. | |
Re: [url]http://www.cdc.gov/ncipc/factsheets/drving.htm[/url] And in other news, 46 people died because some other idiot "OD on alcohol" (a nice "taxed" drug) decided to get behind the wheel of a missile and drive it round until it crashed into something nice and soft. And that happens EVERY day, not once every x years. … | |
Re: [url]http://www.daniweb.com/techtalkforums/announcement8-3.html[/url] That's one way to improve it. ![]() | |
Re: [INLINECODE]person people[20];[/INLINECODE] Then a for loop which does things with [INLINECODE]people[i][/INLINECODE] | |
Re: Perhaps other values besides [INLINECODE]width(0)[/INLINECODE] ? | |
Re: Ever heard of google - or any other search engine? One of many many links.... [url]http://isweb.redwoods.cc.ca.us/INSTRUCT/CalderwoodD/diglogic/half-add.htm[/url] | |
Re: Open the file in binary mode Then read as many bytes as you want [code] int main ( ) { char buff[2]; ifstream foo("a.exe",ios::binary); foo.read( buff, 2 ); cout << buff[0] << buff[1] << endl; return 0; } [/code] | |
Re: Does this crash? [code] int main() { string fileName = "map.txt"; function( fileName ); return 0; }[/code] If yes, you need to post function() Does this crash? [code] int main() { string fileName; cout << "What's the file name/path of the map file? "; cin >> fileName; return 0; } … | |
Re: > The following code comes from C:\lcc\lib\wizard\textmode.tpl Nevermind that, where is YOUR code? You write code, get stuck, post your code and ask direct questions about your code. We then help you to figure out the solution to your immediate problem. We're not here to explain code you just "found" … | |
Re: > usingnamespace std; First of all, you need to stop using whatever crappy code colouring tool which removed the space between "using" and "namespace". It's hard enough to help people sometimes without having extra problems inserted. > i get the "fatal error" that says unresolved external symbol You've got this … | |
Re: Presumably [INLINECODE]if ( someNumber > 999 )[/INLINECODE] somewhere in the code is what you want. | |
Re: Or just use code tags, it's all anyone really needs. | |
Re: [url]http://forums.devshed.com/c-programming-42/range-of-a-double-integer-in-c-439004.html[/url] | |
Re: Why bother, it looks perfectly readable as it is. The ?: operator (you'll need two of them) will just render it an unreadable mess. The code won't be any quicker for using ?: | |
Re: You can't prove something is a random sequence, but you can apply [URL="http://en.wikipedia.org/wiki/Diehard_tests"]a number of tests[/URL] to see how random it might be. The [URL="http://en.wikipedia.org/wiki/Mersenne_twister"]Mersenne_twister[/URL] seems to be the usual choice for anyone wanting good random data for statistical purposes. If you want random data for crypto, your best bet … | |
Re: Check all your macros (the #defines, and where they are used) for any mis-match of ( ) { } " " or anything else which needs to be balanced. Seems like another lesson in "compile often" to spot problems early, rather than "compile at end and panic post on a … | |
Re: An [URL="http://www.m-w.com/cgi-bin/dictionary?sourceid=Mozilla-search&va=argent"]Argent[/URL] problem, that's a new one ;) Perhaps this 'argent' is what you meant. [url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url] | |
Re: Erm, you use select(), and you post some kind of attempt at using select() so we can figure out where you went wrong. Saying which OS and compiler you're using would be a good idea as well. | |
Re: [url]http://www.daniweb.com/techtalkforums/announcement8-2.html[/url] Oh, and here for how to write a post in the first place. [url]http://www.catb.org/~esr/faqs/smart-questions.html#bespecific[/url] | |
| |
Re: [url]http://www.daniweb.com/techtalkforums/announcement8-3.html[/url] | |
Re: Reading isn't your strong point is it? http://www.daniweb.com/techtalkforums/thread75358.html Use code tags when posting code. | |
Re: [url]http://www.daniweb.com/techtalkforums/announcement8-2.html[/url] This is turning into an auto response to people with one post. If you understand how to do this in base 10, then base 2, base 8, base 16 or any other base will be pretty self evident. ![]() | |
Re: [url]http://www.daniweb.com/techtalkforums/announcement8-3.html[/url] | |
Re: Click on the error number, press F1 and read all about it? | |
Re: [url]http://www.daniweb.com/techtalkforums/announcement8-2.html[/url] Maybe start with - the dimensions of the board, is it fixed? - where do messages come from? - which directions can it scroll, and how fast? There's a lot you can do other than post "gimme gimme gimme" | |
Re: [url]http://www.daniweb.com/techtalkforums/announcement8-2.html[/url] You're told the algorithm for implementing 'rand', so start by doing that Say int myRand(); Using the rules in the first half of your post. | |
Re: On picking a thread title (help is not a title, no matter how many times you repeat it) [url]http://www.catb.org/~esr/faqs/smart-questions.html#bespecific[/url] On posting homework without effort on your part [url]http://www.catb.org/~esr/faqs/smart-questions.html#homework[/url] | |
Re: > Please help me out, I realy need help in the next 4 hours > 8 Hours Ago Oh well. Here's a tip - email yourself a message to a week ago, when we could have done something useful in helping you to work through the problem yourself. Your "hail … | |
Re: #including source code is one common way of getting that error. | |
Re: Primes upto n [code] for ( i = 1 ; i < n ; i++ ) { if ( isPrime(i) ) } [/code] Number of primes [code] i = 1 while ( x < n ) { if ( isPrime(i) ) x++ i++ }[/code] | |
Re: Use [URL="http://www.tldp.org/HOWTO/NCURSES-Programming-HOWTO/"]ncurses [/URL]perhaps ? Or lots of messing about with [URL="http://www.rootr.net/man/man/termios/4"]termios[/URL] ? Or try not to write programs which are so tied to conio that they're not portable. | |
Re: > how can I free the memory pointed by list->str without the program terminating? By fixing the bugs elsewhere in your program. What you're experiencing here is cause and effect. The effect is a crash in free which on the face of it seems an entirely correct and plausible thing … | |
Re: Well with any luck, at least two people will get bounced off the course for handing in identical homework. |
The End.