5,237 Posted Topics

Member Avatar for student86
Member Avatar for jaepi

Grab the source code for one of the existing CD writer applications for Linux, and study it thoroughly.

Member Avatar for Salem
0
88
Member Avatar for PeeJay

CODE tags, as the intro thread says, which you've obviously missed on your stampede to get your question asked as soon as possible.

Member Avatar for Nick Evan
0
302
Member Avatar for spankyg

I'm concerned that you've been here for a while now, and you still haven't figured out this CODE tags deal.

Member Avatar for mariocatch
0
341
Member Avatar for hellokitty

[url]http://www.daniweb.com/techtalkforums/announcement125-3.html[/url] Then edit your post for readability.

Member Avatar for Salem
0
75
Member Avatar for Shark7

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.

Member Avatar for Salem
0
185
Member Avatar for Malouka

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]

Member Avatar for ~s.o.s~
0
108
Member Avatar for Saran_57

Do your own homework. [url]http://www.daniweb.com/techtalkforums/announcement125-2.html[/url]

Member Avatar for mmahima2002
-1
88
Member Avatar for some one

This is about as simple as it gets. [url]http://en.wikipedia.org/wiki/Caeser_cipher[/url]

Member Avatar for some one
0
77
Member Avatar for Zay
Member Avatar for Aia
0
97
Member Avatar for Sacky

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.

Member Avatar for Salem
0
88
Member Avatar for choncona1
Member Avatar for Salem
0
173
Member Avatar for keatsey-9

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

Member Avatar for Ancient Dragon
0
87
Member Avatar for wheelie

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

Member Avatar for wheelie
0
91
Member Avatar for sunny_xyz
Member Avatar for Salem
0
38
Member Avatar for fightfox06

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

Member Avatar for thekashyap
0
157
Member Avatar for lionburn50

[INLINECODE]array[7] = array[8]; array[8] = array[9];[/INLINECODE] And so on, but you'll probably want to use a loop.

Member Avatar for ndeniche
0
254
Member Avatar for dcc

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

Member Avatar for Dani
0
2K
Member Avatar for wujianwei

[url]http://www.daniweb.com/techtalkforums/announcement8-3.html[/url] That's one way to improve it.

Member Avatar for iamthwee
0
143
Member Avatar for bigben09

[INLINECODE]person people[20];[/INLINECODE] Then a for loop which does things with [INLINECODE]people[i][/INLINECODE]

Member Avatar for WaltP
0
116
Member Avatar for sInFuL69er
Member Avatar for olams

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]

Member Avatar for Dani
0
127
Member Avatar for ghadahelal

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]

Member Avatar for Salem
0
77
Member Avatar for FireSBurnsmuP

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

Member Avatar for FireSBurnsmuP
0
1K
Member Avatar for Rob111

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

Member Avatar for Rob111
0
276
Member Avatar for lionburn50

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

Member Avatar for Salem
0
187
Member Avatar for shycode

Presumably [INLINECODE]if ( someNumber > 999 )[/INLINECODE] somewhere in the code is what you want.

Member Avatar for Salem
0
89
Member Avatar for guystangr
Member Avatar for tech291083

[url]http://forums.devshed.com/c-programming-42/range-of-a-double-integer-in-c-439004.html[/url]

Member Avatar for Salem
0
397
Member Avatar for Slavrix

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

Member Avatar for addicted
0
145
Member Avatar for abhinav.sharma

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 …

Member Avatar for abhinav.sharma
0
112
Member Avatar for m0dernist

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 …

Member Avatar for Salem
0
188
Member Avatar for Reema_Hamed

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]

Member Avatar for Reema_Hamed
0
188
Member Avatar for Savs

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.

Member Avatar for Savs
0
124
Member Avatar for rapperhuj

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

Member Avatar for wise_monkey
0
119
Member Avatar for MukeshZ
Member Avatar for ganesh_c
Member Avatar for Salem
0
197
Member Avatar for nandakishore

Reading isn't your strong point is it? http://www.daniweb.com/techtalkforums/thread75358.html Use code tags when posting code.

Member Avatar for Salem
0
69
Member Avatar for doiko

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

Member Avatar for iamthwee
0
122
Member Avatar for nandakishore

[url]http://www.daniweb.com/techtalkforums/announcement8-3.html[/url]

Member Avatar for Salem
0
201
Member Avatar for kpack08
Member Avatar for zam

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

Member Avatar for Salem
0
19
Member Avatar for civil1

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

Member Avatar for Ancient Dragon
0
248
Member Avatar for tajkera

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]

Member Avatar for Salem
-1
69
Member Avatar for chikwava

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

Member Avatar for naya22
0
97
Member Avatar for maverick786
Member Avatar for thekashyap
0
63
Member Avatar for kjpwa

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]

Member Avatar for ANUJ SHROTRIYA
0
827
Member Avatar for ajaxjinx

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.

Member Avatar for ajaxjinx
0
146
Member Avatar for l-o-s-t

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

Member Avatar for l-o-s-t
0
130
Member Avatar for ab3ad

Well with any luck, at least two people will get bounced off the course for handing in identical homework.

Member Avatar for Salem
0
139

The End.