2,839 Posted Topics
Re: [QUOTE=su_candy;903199] I am using Microsoft visual studio C++ 2008. [/QUOTE] With what? How did you get the pic from the camera in a long array? Are you using a CV-library? | |
Re: Double is (on most systems) 8 bytes, where float is only 4. This means that double is more precise then float. This also means that doubles have less problems with rounding errors. My personal rule of thumb is: Use float if speed and memory-use are a (big) issue and always … | |
Re: [QUOTE=happygeek;902361]Tell us what language your talking about, and what the exact problem you need help with is, then we can move the question into the right forum and someone might be able to offer advice assuming you are not just looking for someone to do all your work for you.[/QUOTE] … | |
Re: the [URL="http://www.daniweb.com/forums/thread573.html"]answer [/URL]is 42 | |
Re: Post your code using [URL="http://www.daniweb.com/forums/misc-explaincode.html"]codetags [/URL]instead of attaching it as files. Also read [URL="http://catb.org/esr/faqs/smart-questions.html#writewell"]this[/URL]. | |
Re: [QUOTE=peter_budo;895413] I have FF 3.0.11 on Win XP SP3 Anyone else having this problem?[/QUOTE] I have the exact same setup only [I]with[/I] ad-block. I have no problems whatsoever, so I'll take the easy way and blame the ads. :) | |
Re: [QUOTE=cscgal;894867]Unfortunately the z-index is set by the advertiser, and there's nothing that we can do about it.[/QUOTE] That's a bit weird isn't it? So if the advertiser decides to make a full-screen ad with the highest z-index and covers up all of Daniweb, you would still be like : meh. … | |
Re: [QUOTE=freshmem;898944] i,m in urgent plizz..[/QUOTE] Hello "in urgent plizz..", I'm Niek. You might want to read [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]this [/URL]and [URL="http://catb.org/~esr/faqs/smart-questions.html"]this [/URL] | |
Re: [QUOTE=Ancient Dragon;834087] Consequently they may have no clue what [b]ne[/b] means. [/QUOTE] You're [B]AD[/B] and I'm [B]ne[/B], everyone knows that :) | |
Re: With what? Please describe what your problem is. | |
Re: Also: bitset is part of the std namespace, so it's [icode]std::bitset[/icode] | |
Re: If you're already using ff3, why not install adblock and never worry about ads again? | |
Re: [QUOTE=Ancient Dragon;862918]The site has been very slow for everyone today -- I even got database error messages a couple times.[/QUOTE] It's not just today, it has been horrible for the last [URL="http://www.daniweb.com/forums/thread188392.html"]2 weeks[/URL]. I've seen DB-errors, 404's, broken functionality, 30 sec+ loadtime on a 16 mbit connection etc,etc. But I'll … | |
Re: [QUOTE=tux4life;894474]Or use [URL="http://astyle.sourceforge.net/"]AStyle[/URL] for code formatting :P[/QUOTE] Or use Visual Studio and press CTRL-A, CTRL-K, CTRL-F. Or if linux is your taste: Use Netbeans and click source->format. I'm sure most IDE's have this kind of functionality build in :) | |
Re: I'm flagging this thread because it breaks the 'keep it clean' rule: [quote=The almighty rulebook] Keep It Clean We strive to be a community geared towards the professional. We strongly encourage all posts to be in full-sentence English. Please do not use "leet" speak or "chatroom" speak. [....] What will … | |
Re: I almost flagged this thread as spam due to the enormous amount of iPod spam posted on daniweb lately :) | |
Re: [QUOTE=mathueie;893477] How to get process id[/QUOTE] How about [URL="http://msdn.microsoft.com/en-us/library/ms683215(VS.85).aspx"]GetProcessId()[/URL] :icon_wink: | |
Re: Do you know how to use a mouse? If yes: Move it to the enormous searchbox on the upperright corner of the site and type: "final project" Let me ask you: Why are you too lazy to search for it yourself or, heaven forbid, come up with your own idea? … | |
Re: [QUOTE=William Hemsworth;891893]>It can still be written more efficiently I'm curious, how could it get more efficient than that?[/QUOTE] If you're talking about CPU efficiency, I can't think of anything that'll run faster then the code already posted, then I have no idea. If you want less lines of code, you … | |
Re: This thread is two years old. Changes are that Peter decided to remove the project. | |
Re: What error are you getting? | |
Re: You'll have to describe your problem clearer then this. - What is your input ? - What is your output? - What ouput were you expecting? And what happens when the user enters a number bigger then 500? | |
Re: or maybe even: [code=cplusplus] int main(){ ifstream in("in.txt"); ofstream out("out.txt"); string str = ""; while (in >> str) out << str << "-"; }[/code] No errorchecking, but it's to get the basic idea | |
Re: [QUOTE=tux4life;889339]Grrroooaar [/QUOTE] Relax man, it's only reputation. Besides, we all know [I]who[/I] gave it to William, so my advice is not to take it too seriously :) | |
Re: [URL="http://www.smbc-comics.com/comics/20070119.gif"]Creationism meets Evolution[/URL] | |
Re: [QUOTE=A1 data nz;879529] The ancient hebrew scripture and large sections of the bible are actually code. [/QUOTE] Perhaps you should scan it and put the text in [noparse][code][/code][/noparse] tags. That should make the code more readable. | |
Re: [QUOTE=vandenzergen;771659] Is time travel really possible through the use of programming? If only programmers and scientists all around the world gather including those not so intelligent programmers and unite for the same purpose... I guess time travel is not impossible. [/QUOTE] [QUOTE=vandenzergen;775074] Now, this is just time travel... compared to … | |
Re: [QUOTE=jlm699;871064] Ahah! Actually, as I typed that path out I realize what may be your mistake. In Python the [icode]\[/icode] is the escape character, so the interpreter automatically assumes any single backslashes designate an escape character (such as tab, newline, null, etc.). As a result you need to use [ICODE]\\[/ICODE] … ![]() | |
Re: There's a [URL="http://www.daniweb.com/forums/thread181420.html"]sticky [/URL]in the geek's lounge with the link in it. | |
Since Daniweb was updated to it's new 'look and feel' a few features have 'disappeared'. This means they still exist, but are no longer linked to. Some (not all) of these features are/were quite useful IMO, so I thought I'd start a thread about it. - the [URL="http://www.daniweb.com/forums/spy.php"]Subscription Spy[/URL] (which … | |
I haven't received a monthly 'Digest' for the last few months (since the server "problems"). It's not in my junk either. Can anyone confirm if this is a problem with Daniweb or with my email? | |
Re: [QUOTE=vmanes;881419] And how many of you run model trains?[/QUOTE] Check. Inactive hobby of mine. As soon as I move to my new house I'll start rebuilding my 'city'. I still have about 20 locs from the pre-digital-age, so perhaps an upgrade of my material will be necessary... Are you a … | |
Re: [QUOTE=jephthah;868284]like a pig-dog. or a lizard-bird. or something.[/QUOTE] Or [URL="http://mulaz.org/blog/wp-content/uploads/2008/07/manbearpig.jpg"]manbearpig [/URL] | |
Re: I wouldn't start on it if I were you unless you have somesort of degree in Math en know your C++ [I]really[/I] well. But you could start by learning OpenGL or Direct3D I guess. | |
Re: [URL="http://www.oracle.com/technology/tech/oci/occi/index.html"]OCCI[/URL] is what you're looking for. [edit] too slow again :) | |
Re: [QUOTE=lyardson;878812]the exact diff between c++ and java technically[/QUOTE] Technically 'Java' has one more character then 'C++' :icon_wink: | |
Re: [quote]Can anyone please find whats wrong in this code [/quote] Yes. It doesn't compile and therefore won't work. [URL="http://www.daniweb.com/forums/announcement8-3.html"]read this[/URL] [URL="http://catb.org/esr/faqs/smart-questions.html#beprecise"]and this[/URL] | |
Re: [QUOTE=thoughtcoder;840224]No, it's a racist decision.[/QUOTE] You sound exactly like a member who was recently banned. (Rashakil something....) Don't go the same path as he did ;) | |
Re: Instead of just giving you the code, [URL="http://eternallyconfuzzled.com/arts/jsw_art_rand.aspx"]here's[/URL] a link to learn to understand how to use rand and srand. Come back if you have any problems with it. | |
Re: [QUOTE=Duki;872239]I am trying to convert an array of longs to an array of chars. There are 1081 elements in the long array. Each element is 4 digits long.[/QUOTE] So if I understand correct: These number vary from 0 to 9999? A single char can only hold values up to 255, … | |
Re: I think I speak for all of us when I say: What?? :icon_eek: | |
Re: Red hat enterprise 4? You're a bit out of date don't you think? You could try building python from source, or just download all the dependencies. How many are missing? | |
Re: Where's the link we're supposed to click? You FAIL in being a spambot. | |
Re: [QUOTE=Ancient Dragon;872074]Here is one way to do it without the complications of COM.[/QUOTE] Where? ;) At OP: You might want to use [URL="http://en.wikipedia.org/wiki/Comma-separated_values"]CSV-files[/URL] from excel. The CSV files can easily be opened and edited with C++ because they are plain text, so no need for COM :) | |
Re: [QUOTE=sanushks;871160]the problem is the code is working fine until a certain point.. I mean it processes about 24,000 records before it fails.. [/QUOTE] Debugging is indeed the answer. But I also what to place a bet on what could be wrong. Are you using dynamic memory? Does the PC on … | |
Re: Do you have any other constructors? (overloaded) If not, post more code. | |
Re: I can't see how you're calling these functions and what values the variables have. Post more code that demonstrates how you use these functions and I'll have a look at it. | |
Re: For once I actually agree with you :) I've posted a snippet demonstrating wxWidgets, but without pictures to illustrate what it does, it's kind of a useless bit of code. | |
Re: In Visual Studio, you can just rightclick the include file and choose 'open document'. It will probably be located in [icode]C:\Program Files\Microsoft Visual Studio 8\VC\include[/icode] |
The End.