2,839 Posted Topics
Re: In addition to Agni's post: You should also post the errormessages you get. | |
Re: As comatose already told you: " make sure the .dll's are registered in the registry (if required) " Also, it's occi.dll, with 2 c's And stop bumping your own thread. People will help you when they have the time. | |
Re: [URL="http://www.cppreference.com/wiki/c/string/isdigit"]isdigit()[/URL] would be an excellent place to start | |
Re: this line is the problem: [icode] while (y < 5 && ids[y] != searchForId)[/icode] "searchForId" is a std::string and ids[y] is an int. You can't compare apples to pears in c++ :) | |
Re: What they are trying to tell you is that you should always start these kinds of statements with the destination of outcome: [icode]outcome = 3-4;[/icode] will result in 'outcome' being -1 [icode]3-4 = outcome;[/icode] will result in your error | |
Re: put a [icode]cin.get();[/icode] just before [icode]return 0;[/icode]. This will make your app wait for a keypress to close. More about that [URL="http://www.daniweb.com/forums/thread90228.html"]here[/URL] Or better yet: run the app manually from a console: -go to start->run -type "cmd" -go to the directory where your .exe is (with cd [your dir]) -type … | |
Re: [URL="http://http://letmegooglethatforyou.com/?q=ia64+assembly"]Here's[/URL] a nice place to start | |
Re: If you're talking about std::strings you could use the c_str() method? (I'm assuming "questions" is a vector of std::strings) [code=cplusplus] tempfile.write(questions[i].c_str(), questions[i].size()); [/code] But if tempfile is an ofstream, why not use the << operator? [code=cplusplus] ofstream tempfile("yourfilename_goes_here"); std::string foo = "bar"; tempfile << foo; [/code] | |
Re: It means how you'll have to program something that counts all the character in a word/sentence [i]including[/i] whitespaces and newline/tab characters. [QUOTE=priyankasoni;789790]. can i know the code for writing this program?[/QUOTE] Yes. You. Can! :) Put you'll have to put in some effort first. Come back when you have some … | |
Re: [QUOTE=mps727;788704]When I push the Step Into button. F11. I want it to only step into code that is in the solution explorer, and step over everything else.[/QUOTE] Then you should "step over" instead of "stepping in", so press f10. Ór you could step out of the code with shift-f11: [code] … | |
Re: You are a Spiritual Healthy Lifelong Learner 0.08% of the 75880 people who have taken this quiz are like you | |
Re: Green is close enough to black to try a Canny-conversion. Tweak a bit with the parameters until you have a clear dou-tone-image. Now use cvFindContours to find a set of contours. Next: Start fitting polygons in this resultset. The angle of the corners, and the number of polygons can give … | |
Re: [QUOTE=evstevemd;788897]Here is code[/quote] It's wrong. Click [URL="http://www.google.nl/search?hl=nl&q=for+loops+c%2B%2B+&btnG=Google+zoeken&meta="]here [/URL]for some tuts [CODE] int value; int rotate = 4; for (value = 0; rotate>value; rotate--[COLOR="Red"];[/COLOR] ){ [COLOR="Red"]// remove that semicolon[/COLOR] cout<<"Now rotate value is:"<<rotate<<endl; //[COLOR="Red"]missing closing brace[/COLOR] [/CODE] How [i]I[/i] would do it is like this: [CODE=cplusplus]for (int rotate = 4; rotate>0; … | |
Re: [QUOTE=jbennet;784739]i dunno i like java because its write once, run anywhere [/QUOTE] Don't know if I'm violating any rules or something, but someone once told me: [quote] Saying that Java is great because it runs on all operating system, is saying anal sex is great because it works on all … | |
Re: You need to put this: [icode] fgets(buf,sizeof(buf),f); [/icode] in a loop that reads until the end of the file. You probably know how loops work right? | |
Re: [URL="http://www.daniweb.com/forums/post614870-7.html"]Here's[/URL] a useful link ![]() | |
Re: How about using powerpoint to open the file? Or would that be [i]too[/i] obvious? :) | |
Re: [QUOTE=I_want_to_lean;784436]I heard you can't erase but redraw,but i don't know how to redraw the whole window.[/QUOTE] [ICODE]this->Refresh();[/ICODE] ? Bumping your thread every few hours won't make you very populair.. | |
Re: [QUOTE=clutchkiller;783476]is there a reason why you WOULD NOT want to use wxwidget?[/QUOTE] I remember it being a pain in the ass to install. Other then that, I'm very happy with it. | |
Re: [quote=tarekkkkk;465355]lol cz the cd that i brought it didnt work lol so i regave the cd to the shopper and i am still searching on this mysterious program -(0-0)-[/quote] What the.. Anyhow, we all knew this wouldn't work, try searching this forum for the answer (it's there) or ask nicely … | |
Re: loop through the array and subtract '5' from each element. Use [URL="http://www.cplusplus.com/reference/clibrary/cstdlib/abs.html"]abs()[/URL] on the outcome. The smallest outcome is closest to 5 | |
Re: Also a few other point: First (and most important) learn how to use [URL="http://www.daniweb.com/forums/announcement8-3.html"]code-tags[/URL] when posting code Next: [code=cplusplus] while (! myfile.eof()) { getline (myfile,line, ';'); array[temp]=line; temp++; } [/code] Never use the horrible eof() command... Change it to: [code=cplusplus] while (getline (myfile,line, ';')) { array[temp]=line; temp++; }[/code] But what … | |
Re: Not that I know of. You could create it yourself with about 10 lines of c++/c code? | |
Re: [QUOTE=TasostGreat;784004] what does this output mean ?[/QUOTE] Hahaha :) So you're just running commands for the fun of it without knowing what they actually do or what? Here's the [URL="http://unixhelp.ed.ac.uk/CGI/man-cgi?time"]man-page[/URL] | |
Re: [QUOTE=Aundrey;783984]well then what is the right forum for me?[/QUOTE] The let-us-read-your-mind-and-give-away-free-code forum. When I find the link I'll post it. Now how about you give us [b]clear[/b] requirements want you want your program to do? Show sample input and sample output. Also show what effort you've put in so far. … | |
Re: [QUOTE=riahc3;783744]I already asked nicely. [/quote] And? What did the compiler say? :| [QUOTE=riahc3;783744] And about learning the language instead of the compiler, I dont care much as programming is not something I want to dominate and dont see it as my possible future career.[/QUOTE] The compiler actually [i]does[/i] care, so … | |
Re: DarkGDK has it's [URL="http://forum.thegamecreators.com/?m=forum"]own forum,[/URL] I guess you'll have a better change of getting your question answered over there. | |
Re: [QUOTE=CPPRULZ;782981]does that command take up any more space/efficiency in the program? Thanks everyone for all your help![/QUOTE] In theory, doubles are more effecient then floats on modern systems. But with a small program like the one you wrote, you will never notice the difference. When you start calculating with *large* … | |
Re: And you also might want to change line 10 ( [icode]cout << "4 \\n";[/icode]) to: [icode] cout << "4 \\\n"; [/icode] Your line will output [icode] 4 \ n [/icode], but I think you want your output to be: [icode]4 \ [newline][/icode] read more about escape-characters [URL="http://msdn.microsoft.com/en-us/library/6aw8xdf2(VS.80).aspx"]here[/URL] | |
Re: [QUOTE=Comatose;783012]Actually, even with threading, the hard-drive can still only do one thing at a time. [/QUOTE] Just out of curiosity: Would this also be true for 2 HD's in RAID 0? | |
Re: How about [URL="http://en.lmgtfy.com/?q=screen+capture+software+download+free"]this[/URL]? Don't post double threads about the same question. | |
Re: [QUOTE=the_swan;781106]so it is complex to be created[/QUOTE] No, it's very easy: [code=cplusplus] int main() { //L33t browser code goes here return 0; }[/code] :icon_rolleyes: | |
Re: [QUOTE=MidiMagic;782094]The search function is totally useless. [...] Instead, it is finding posts that have only one of the keywords I put, instead of requiring that all of the keywords be present.[/QUOTE] Agreed. Here's how I usually find my old posts back: go to google and type some thing like: [icode]site:daniweb.com … | |
Re: Why was that banned? I think you Americans like banning just for the fun of it :) In the Netherlands, this doesn't come even close to banning. You can say/show all the stuff you want on the T.V. (the f-word won't get beeped and Janet Jackson wouls still have a … | |
Re: [QUOTE=ff4930;779008]Thanks for telling us your assignment, what do you want us to do?[/QUOTE] He probably wants you to write it for him, don't you think? But we can't all get [URL="http://www.daniweb.com/forums/announcement8-2.html"]what we want[/URL] :) | |
Re: [QUOTE=nitu_thakkar;779631] y=x<<1 it will shift left the value & make x=0100 but how can i store that shifted value... in other variable...? [/QUOTE] Uh... you say: y = x << 1 right? So what do you think 'y' is? Holy cow it's another variable! So you already stored in another … | |
Re: the good: - The BIG quick reply box the bad: - where's the subscription spy?? the ugly: - see attachment. Rounded edges script failed - you should look at the site with 1024x768, a lot of thing are a bit misaligned with low resolutions. I'll add to this list if … | |
Re: [QUOTE=jvignacio;781007] thank u[/QUOTE] You're welcome. :) Do you have a question? | |
Re: [QUOTE=The Dude;779393]Welcome to the site :)[/QUOTE] Cscgal has been around for a while, no need to welcome her anymore :icon_wink: | |
Re: [QUOTE=kbshibukumar;778798]How the value of PI can be printed as a table?[/QUOTE] That's a difficult one: [code=cplusplus] #include <iostream> int main() { std::cout << "|value of PI:|\n|------------|\n| 3.14 |\n|------------|\n"; return 0; }[/code] | |
Re: [QUOTE=Narue;779768] Well, I'd recommend what the requirements say, since they're very specific about what functions and loops you should use. :icon_rolleyes:[/QUOTE] He didn't ask [B]you[/B] anything. Look: [QUOTE=moaath;779760]gentlemen...[...][/QUOTE] So my advice (as a gentleman) would be "I'd recommend what the requirements say, since they're very specific about what functions and … | |
Re: As I told you in your other thread: when posting code, use [URL="http://www.daniweb.com/forums/announcement8-3.html"]CODE TAGS[/URL] If you want to use [ICODE]<shellapi.h>[/ICODE] (not in quotes) you have to [ICODE]#include <windows.h>[/ICODE] first. Also 'handle' looks a bit undefined doesn't it? How about changing it to NULL | |
Re: [URL="http://eternallyconfuzzled.com/tuts/datastructures/jsw_tut_bst1.aspx"]Tutorial[/URL] | |
Re: What do you mean with "open it"? Open it in your code, or in an explorerwindow, or... | |
Re: I agree, it's almost impossible for someone with a "gimme answers...to homework..LOl" attitude. But if you actually want to give it a try, you might want to start [URL="http://www.google.nl/search?hl=nl&q=opencv+haar+detection&btnG=Google+zoeken&meta="]here[/URL] | |
Re: You mean dynamic arrays? Sure it's possible: [code=cplusplus] int howmany = 0; cout << "how many?"; cin >> howmany; int *arr = new int[howmany]; // do stuff delete[] arr; [/code] but if you don't want to worry about memory management, you could also have a look at vectors: [code=cplusplus] #include … | |
Re: [QUOTE=suman910;738929]what can be the easy language to learn game programming for dummies ?[/QUOTE] Game programming for dummies doesn't exist. That's like saaying : "being really smart: for stupid people" . FIRST learn to program in the language of your choice (Python is a nice language to start with for example), … | |
Re: If you could put the flow of the program on paper (what should be asked for first, what next etc) and you put all the relations on a paper (your 2002-asbestos etc examples) this should not really be a difficult project to program. I think the design of the user-interface … | |
Re: If people are too stupid to know that the paperclip is used for attachments, they have no business on a 'IT Discussion Community' IMO. | |
The End.