5,237 Posted Topics

Member Avatar for Nikhar

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

Member Avatar for tux4life
-6
194
Member Avatar for zakir123
Re: c++

Not to mention [URL="http://www.daniweb.com/forums/announcement8-2.html"]I want....[/URL]

Member Avatar for adcodingmaster
0
132
Member Avatar for sitie_aniem

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 …

Member Avatar for sitie_aniem
0
115
Member Avatar for axn

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.

Member Avatar for verruckt24
0
102
Member Avatar for Draculaboy1014

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 …

Member Avatar for gerard4143
-2
140
Member Avatar for Eddy Dean

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

Member Avatar for Salem
0
2K
Member Avatar for cpp_noobsauce

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 …

Member Avatar for Salem
0
240
Member Avatar for Nicholas_Roge

You mean like [URL="http://en.wikipedia.org/wiki/WinDbg"]http://en.wikipedia.org/wiki/WinDbg[/URL]

Member Avatar for Salem
0
60
Member Avatar for helinix

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

Member Avatar for Salem
0
126
Member Avatar for job2617

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

Member Avatar for Nick Evan
0
980
Member Avatar for AAAKsu
Member Avatar for Salem
0
67
Member Avatar for keeperx

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

Member Avatar for keeperx
0
261
Member Avatar for Reborn121

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?

Member Avatar for hag++
0
151
Member Avatar for destroyed

So are we. Oh, that reminds me, I need to finish off something else first. Good luck with the suggestions :icon_rolleyes:

Member Avatar for peter_budo
0
350
Member Avatar for iou

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

Member Avatar for mitrmkar
0
336
Member Avatar for jigglywiggly

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

Member Avatar for mrnutty
0
323
Member Avatar for dee hasmukh
Re: dee

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

Member Avatar for Salem
0
82
Member Avatar for badboizEnt

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

Member Avatar for Salem
0
103
Member Avatar for Techwriter10

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

Member Avatar for jay 11
1
1K
Member Avatar for yakovm

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.

Member Avatar for Salem
0
78
Member Avatar for sree_ec
Member Avatar for Ancient Dragon
0
143
Member Avatar for wonderllamamatt

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

Member Avatar for caperjack
0
153
Member Avatar for Japus

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

Member Avatar for Salem
0
188
Member Avatar for iamminsk

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 …

Member Avatar for iamminsk
0
283
Member Avatar for labnshep

[url]http://clusty.com/search?query=os-x+data+recovery+free&sourceid=Mozilla-search[/url]

Member Avatar for labnshep
0
216
Member Avatar for Zaad

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 …

Member Avatar for Zaad
0
307
Member Avatar for Salem

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

Member Avatar for jonsca
3
139
Member Avatar for phil750

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 …

Member Avatar for phil750
0
111
Member Avatar for FearlessFunk

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.

Member Avatar for Salem
0
127
Member Avatar for opethon

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

Member Avatar for opethon
0
84
Member Avatar for zzjason

Yeah, right - thanks for spamming the board with your untagged code :( :@

Member Avatar for Ancient Dragon
-3
125
Member Avatar for red999

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

Member Avatar for Salem
0
102
Member Avatar for dlannetts

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

Member Avatar for tranchibinh
0
148
Member Avatar for Ancient Dragon

[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 ;)

Member Avatar for jbennet
0
134
Member Avatar for m7md.is

[url]http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1045691686&id=1043284392[/url] Scroll to the end for the windows solution.

Member Avatar for m7md.is
0
224
Member Avatar for cissee

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.

Member Avatar for Salem
0
80
Member Avatar for beaheath

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?

Member Avatar for Salem
0
36
Member Avatar for Nikhar
Member Avatar for PhiberOptik

[URL="http://www.youtube.com/watch?v=HYokLWfqbaU"]Nope, can't think of anything...[/URL]

Member Avatar for PhiberOptik
0
122
Member Avatar for ContactaCall

You could create a rule called 'install', which copies from the build directory to the target directory.

Member Avatar for ContactaCall
0
123
Member Avatar for kenoch

Well that's vaguer than usual. Read this [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url]

Member Avatar for Rajesh R Subram
-2
95
Member Avatar for sifounas

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

Member Avatar for Salem
0
155
Member Avatar for Lightninghawk

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 …

Member Avatar for Lightninghawk
0
229
Member Avatar for grealish234

> .\fun with physics.cpp(25) : error C2601: 'isnum' : local function definitions are illegal This says it all. Move your function definition OUTSIDE main.

Member Avatar for mrnutty
2
114
Member Avatar for dorivalmartinez

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.

Member Avatar for vegaseat
0
4K
Member Avatar for maisar

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

Member Avatar for maisar
0
531
Member Avatar for lich
Member Avatar for Ancient Dragon

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

Member Avatar for WaltP
1
324
Member Avatar for blasata
Member Avatar for warrior_2010

Do you want us to guess which assembler / processor / operating system you're dealing with?

Member Avatar for warrior_2010
0
98

The End.