5,237 Posted Topics
Re: > I have got a C++ competition tomorrow and it is very important for me. I :D can't :D stop :D laughing! "tomorrow" - oh the jollity. The very idea that you could hope to learn enough to take on any random assignment like the ones you posted with only … | |
Re: Not to mention [URL="http://www.daniweb.com/forums/announcement8-2.html"]I want....[/URL] | |
Re: a) which language ? b) why the hell haven't you used code tags? c) You have neither stated what it SHOULD do, or what it DOES do - how can we "fix it". d) I hope a mod moves this to a proper forum so I can give you a … | |
Re: So where you do use it AFTER you have incremented it? So far, you only print it once, when it's value has been initialised to 1. | |
Re: So start by doing some tests (or did you hope that you could write 500 lines and it would work first time). Eg. [code] int main ( ) { printf( "Number of words in file=%d\n", words_in_file("test.txt") ); return 0; } [/code] Keep testing that ONE function until it returns a … | |
Re: > char *url; > url = sUrl.c_str(); Which got you error C2440: '=' : cannot convert from 'const char *' to 'char *' Understand that the c_str() method returns a const pointer for a reason, and that's to try and stop you from sneaking in the back door to change … | |
Re: List of things wrong with kaveyarrasan.k's effort: - it's two years too late - it's in C, not C++ (see the forum title) - it has no code tags - it uses void main - it has a buffer overflow (<=25 steps off the end) - the for loop to … | |
Re: You mean like [URL="http://en.wikipedia.org/wiki/WinDbg"]http://en.wikipedia.org/wiki/WinDbg[/URL] | |
Re: [url]http://webster.cs.ucr.edu/AoA/[/url] Back in the beginning of time, when there were only a handful of microprocessors, they were much simpler, and updates were years apart, it was entirely possible to "know everything" and write quite tight code. Nowadays, there are dozens of different processor models (and probably hundreds of variants). New … | |
Re: "On the serial stupidity of people who are unable to think for themselves after a decade or more of education" [url]http://www.daniweb.com/forums/thread202709.html[/url] [url]http://www.daniweb.com/forums/thread24110.html[/url] [url]http://www.daniweb.com/forums/thread52808.html[/url] [url]http://www.daniweb.com/forums/thread88224.html[/url] [url]http://www.daniweb.com/forums/thread199656.html[/url] [url]http://www.daniweb.com/forums/thread7031.html[/url] [url]http://www.daniweb.com/forums/thread200694.html[/url] And that's just on the FIRST page of this forum!. I'm fed up of suggesting ideas which go ignored because the noob discovers … | |
Re: Or even [url]http://www.daniweb.com/forums/thread210533.html[/url] | |
Re: > I am attempting to write my first c++ program. Mmm'kay. > It is a bot that will me used to connect to a Multi User Dungeon. Not likely. > Do i need 2 seperate threads to do this? Are you just throwing terminology around to impress us? IMO, you … | |
Re: Look at your code, and tell us if what you see in your IDE resembles the mess you posted? Also, why are you comparing only one letter of the name, rather than the whole name? | |
Re: So are we. Oh, that reminds me, I need to finish off something else first. Good luck with the suggestions :icon_rolleyes: | |
Re: > could this still cause some kind of problem? Any of - nothing at all, the loop just exits - what you wanted to happen - segmentation fault - machine reset It's undefined behaviour - period. You're sitting on the branch of the tree and you're cutting the wrong side! … | |
Re: What about [url]http://www.sgi.com/tech/stl/List.html[/url] As an exercise, start with the "add to list head" function (it's one of the simpler ones). | |
Re: [url]http://www.printers.get-reviews.com/lexmark-x1270/[/url] I would be surprised if something so cheap (apparently) even had an ethernet port. You have to go up a price notch or two to get dual interfaces on such things. | |
Re: > i wrote this shell given below. I very much doubt it. I've seen the basic outline many times before. It looks like boilerplate homework for you to fill in the blanks of your assignment yourself. | |
Re: > first week sales only ad up to 330,330 units sold the first week. How does that compare to the original iPhone release way back in 2007? - before the recession hit and people would still buy [U]new[/U] toys on spec. Today's purchasers are much more circumspect. - when there … | |
Re: So write out some pseudo code for each sequence of operations, and assign MEM/EXE to each step. Then figure out which pipeline best fits the sequence. | |
Re: Try it with a string which will generate say 20K tokens and see for yourself. | |
Re: [url]http://en.wikipedia.org/wiki/DDR2_SDRAM[/url] In principle, yes. But the older modules might have a lower clock rate, which would lead to inferior performance. Also, how many RAM slots does the netbook have? It seems to me that such a small form-factor would have only one slot. You can't add more memory without taking … | |
Re: [url]http://en.wikipedia.org/wiki/ID3[/url] They're not all-text. They're not always at the beginning, They're not always present. They're not always ASCII. You can't just open the file and read a string, and hope it all works. | |
Re: First, INDENT YOUR CODE! It might look all nice and neat in your IDE, but that's only because it can handle mixed spaces and tabs intelligently. Forums (or eventually, any tool you come across) will make a mess of tabs. So your nicely formatted masterpiece instantly turns to cack!. Change … | |
Re: [url]http://clusty.com/search?query=os-x+data+recovery+free&sourceid=Mozilla-search[/url] | |
Re: Who knows what the author regards as the title - there are so many different places to put it, with no obligation to use any of them. There may be a document properties field called "Title". There may be some text formatted with the style called "Title". But what if … | |
[url]http://www.telegraph.co.uk/technology/news/6995354/Sarcasm-punctuation-mark-aims-to-put-an-end-to-email-confusion.html[/url] [quote] The symbol – a dot inside a single spiral line – can be installed onto any PC running Windows 7, XP or Vista, as well as Macs and Blackberry mobile devices. It can then be used in Word documents, instant messenger conversations, Outlook email and other programmes, just … | |
Re: Erm, what you posted won't even compile - line 19 is missing a ( So how can you have run results? Unless you just typed this "from memory", in which case the code is useless as we have no confidence that it represents reality. We could point out lots of … | |
Re: Sounds to me like your hard disk is broke :( But the valuable bit would be the 25-character XP registration sticker on the case (somewhere). If you've got that, then any XP CD you can get a hold of should be fine for installing XP on a new hard disk. | |
Re: To check whether it is encrypted or not, a simple test is to see if you can compress the file. If you can, then it is almost certainly not encrypted (not by anything good at any rate) Second, some tools [url]http://clusty.com/search?query=hex+editor&sourceid=Mozilla-search[/url] [url]http://clusty.com/search?query=binary+diff&sourceid=Mozilla-search[/url] Notepad is useless for looking at binary files. … | |
Re: Yeah, right - thanks for spamming the board with your untagged code :( :@ | |
Re: [url]http://www.psc.edu/general/software/packages/ieee/ieee.php[/url] You subtract the offset from the exponent. A stored exponent of 128 say would map to a real exponent of 1. So fractions ultimately end up with negative real exponents (0.5 = 1 * 2^-1) If you're able to extract the sign, exponent and mantissa bits, then the rest … | |
Re: @ allan2008 Shameless rip-off of [url]http://webdesign.about.com/od/advancedcss/a/aa052200a.htm[/url] I guess you're just recycling so you can spam your sig-links whilst making it look like you're adding useful content. | |
Re: [url]http://en.wikipedia.org/wiki/Cryonics[/url] The year is 9999 and people are running round trying to get you thawed out so you can fix some Y10K bug ;) | |
Re: [url]http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1045691686&id=1043284392[/url] Scroll to the end for the windows solution. | |
Re: Well you do seem to be working your way through some exercise book... [url]http://www.daniweb.com/forums/thread252650.html[/url] [url]http://www.daniweb.com/forums/thread252933.html[/url] [url]http://www.daniweb.com/forums/thread252939.html[/url] You're sorely lacking to pay attention to this. [url]http://www.daniweb.com/forums/announcement14-2.html[/url] Keep it up, and you're going to get increasingly terse and abrupt meta-answers for appearing to be a sponge. | |
Re: Why would you need to do anything different? Apart from changing the file name, why would your "attach file to email" function even care about what kind of file it is? | |
Re: Which OS / Compiler / Graphics library? | |
Re: [URL="http://www.youtube.com/watch?v=HYokLWfqbaU"]Nope, can't think of anything...[/URL] | |
Re: You could create a rule called 'install', which copies from the build directory to the target directory. | |
Re: Well that's vaguer than usual. Read this [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url] | |
Re: > i am wondering which language (java or c#) can create more robust and scalable application Only to say that choosing one of them doesn't mean you're immediately immune from screwing it up. A bad design in either language is perfectly capable of turning into a disaster. Or that your … | |
Re: Well? [code] $ xcopy /? Copies files and directory trees. NOTE: Xcopy is now deprecated, please use Robocopy. XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W] [/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U] [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z] [/B] [/EXCLUDE:file1[+file2][+file3]...] source … | |
Re: > .\fun with physics.cpp(25) : error C2601: 'isnum' : local function definitions are illegal This says it all. Move your function definition OUTSIDE main. | |
Re: If you want to make any sense of OO documents, you first have to unzip them. Example - just rename your foo.odt to foo.zip, then examine it with your ZIP program. All the interesting stuff is stored as a series of XML files. | |
Re: > Please, this is very important to make the chair at the university. Sure, and what makes you think you deserve it any more than someone who can do this assignment all by themselves? And if you get there, what makes you think you're up for the job of tackling … | |
Re: What google search terms have you tried already? | |
Re: > When God created the universe 6,000 years ago.. Who's god? Each mythology has its own creation date, yet oddly enough (no, not really, the dates were invented without evidence), they don't agree with one another. Why not? because the date was yanked out the ass of some ancient mystic … | |
Re: Without you posting some code, there is no hope. | |
Re: Do you want us to guess which assembler / processor / operating system you're dealing with? |
The End.