5,676 Posted Topics
Re: [QUOTE=kinggarden;382469]But I think it turns to be a multithreads question.[/quote] Threads are [I]not[/I] for beginners. And a Fibonacci series is easy to calculate with a simple loop. | |
Re: And [url=http://www.gidnetwork.com/b-38.html]format your code[/url] so we can read and understand it. Be sure to use code tags, too. | |
Re: [QUOTE=joshSCH;379207]naw, yall missed the profanity post that he directed at narue.. I quoted it, and responded.. but it was deleted by a mod..[/QUOTE] Well, 1) if [B]Narue[/B] hadn't accused him of lying (which most people [I]would[/I] take offense at) 2) then accuse him of "selective reading", implying stupidity 3) and … | |
Re: And don't try to shortcut the [INLINECODE]fgets()/sscanf()[/INLINECODE] pair with [INLINECODE]scanf()[/INLINECODE]. If someone suggests it, stare at him in horror and cast the daemon away! :icon_mrgreen: [url=http://www.gidnetwork.com/b-62.html]Here's why[/url]. Read the entire [INLINECODE]scanf()[/INLINECODE] series... | |
Re: I suppose you could, but up until now most (all?) fonts have not been created using AI. It's just not necessary. | |
Re: [QUOTE=jbennet;360334]I inttially thaught about a rep war but then decided against it, i think others will do the same/[/QUOTE] Yeah, I was gonna bad rep you big time, ol' buddy! Then I decided you're a good kid so I left you alone :icon_mrgreen: | |
Re: Hey Davey! You have an accent -- you don't type with one :icon_mrgreen: That breech is incredible. How did you find it? And what were you doing when you ran across it? | |
Re: [INLINECODE]string key[SIZE_KEY];[/INLINECODE] states "[I]define an array of SIZE_KEY strings[/I]". What it seems you want is a single string of SIZE_KEY characters, which would be [INLINECODE]char key[SIZE_KEY];[/INLINECODE] A string is dynamic and changes as you add characters to it, so there is no need to attempt to define the size. | |
Re: [quote=Comatose]Firstly, I want it to be known clearly that you are NOT using Visual Basic.... the used the same name, but it's actually .NET or express, but not legacy VB. [/quote] I'm curious how you can tell with the information [B]nedwards[/B] gave. I see nothing mentioning any version of anything... … | |
Re: speel chesker workee fien, und allways haas forr mee! Never had to set a thing, and rounded corners are off. | |
Re: Here's what's happening for me with [I]FireFox 2[/I]. [B]Setup:[/B] Three windows open: [B]A)[/B] This thread with post #68 at top of window, looking at Josh's non-smiling face... [B]B)[/B] Wikipedia page that take a lot of scrolling to get from the top to bottom ([url=http://en.wikipedia.org/wiki/War_of_the_worlds]War of the Worlds[/url] to be precise) … | |
Re: I also had to get used to the 'dirty' background, but I did get used to it. Even so, I have a possible solution.... Have a setting on the Options page to use a clear background. Explain the option only enough to know where it happens, not exactly what happens. … | |
Re: Something like [code=vb] On Error GoTo FileError Open FILENAME For Input As #1 '' if the file did not open you will jump to FileError below Exit Sub '' you are done, so you don't want to fall into '' the error section FileError: On Error GoTo 0 '' do … | |
Re: Dang site actually crashed my 'puter!!!! [QUOTE=joeprogrammer;367785]>why did i get a bad rep????? Because it had no relation whatsoever to the original topic.[/QUOTE] It was on topic. His comment related directly to the site under discussion. Apologize....:icon_twisted: | |
Re: I've been a fan of OIs since grade school. And if you want to be really impressed, check out [url=http://users.skynet.be/J.Beever/pave.htm]Julian Beever's[/url] work! Look at the Anamorphic Illusions. They are incredible! | |
| |
Re: [QUOTE=laconstantine;368081]Dont use void at the main part.[/QUOTE] Even I had trouble trying to figure out what this meant :icon_wink: What he means is [url=http://www.gidnetwork.com/b-66.html]this[/url] | |
Re: Solve what? It's C++ code. It's long. It compiles -- or not. Are we supposed to figure out what it's supposed to do? Advice? read [url=http://www.daniweb.com/techtalkforums/thread78223.html]this[/url] and [url=http://www.daniweb.com/techtalkforums/announcement8-3.html]this[/url] ![]() | |
Re: First thing to understand is that each character (letters, numbers, punctuation) all have a specific value. Therefore, the character's value can be used as an index into an array. For example: [code=c] char *words = {"Apple", "Banana", "Cherry", "Date", "Eggplant", ... }; // Apple is word[0], etc. ... int ch; … | |
![]() | Re: Initially, your help is: Read [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies#faq_keep_it_organized]this[/url] and [url=http://www.daniweb.com/techtalkforums/announcement8-3.html]this[/url] You have to figure out somehow what [I]hot[/I] and [I]cold[/I] means in relation to the answer they have at the moment. Once you decide that, write down the steps needed to calculate the [I]hot[/I]ness they currently have, then convert that to code. … |
Re: [QUOTE=mevanga;368110]The dates and day are coming from : 1. Starting Date(x) : The date when the member started working, 2. Adding days per month(y) : Are days that are leave days added per month to each member,[/quote] This you can easily calculate from the start date to the current date. … | |
Re: Also, please read [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies]the Rules[/url] so you can make good posts with useful titles and questions. | |
Re: The way you are doing it works well, especially if there are more numbers in the array. And we'd rather have a long title that tells us the topic of the post rather than the usual "help me" or "What's wrong with this urgent" junk titles. So thank you for … | |
Re: [url=http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=DPY&q=c%2B%2B+sprintf%28%29&btnG=Search]OK, check here[/url] | |
Re: [QUOTE=sInFuL69er;367390]Hello, iam having trouble with reading a text file that contains , [ ] eg. 3715,4[9] 4356,3[7,3] [code] char c; int events[12][12];//[row][col] ifstream infile; infile.open("test.txt"); while (!infile.eof()) { for(int j=0;j<12;j++) { for(int k=0; k<12;k++) { if(c!=']') { infile >> events[j][k]; infile.get(c); } else events[j][k] = -1; } } infile.get(c); } … | |
Re: Also, "[I]are not stored correctly[/I]" does not give enough information. Explain what actually [I]does[/I] happen, because the result of the error may be important to understanding the problem. | |
| |
Re: [QUOTE=minigweek;365992]With all due respect Ancient Dragon, I think you should get your facts checked before berating someone, what with your stature here. It doesn't look good.[/QUOTE] and berating someone for making a joke (note the smiley he used: :) -- that's a BIIIIG clue) looks worse. | |
Re: [QUOTE=m3an;365798]To pause use system("PAUSE"); and #include <stdlib.h>[/quote] No, do [B]not[/B] use [INLINECODE]system("PAUSE")[/INLINECODE]. [url=http://www.gidnetwork.com/b-61.html]Here's why[/url] | |
Re: I prefer the color syntax, but without line numbers. And I do like the yellow box to differentiate code from post. I also use [code=c] exclusively. | |
Re: [QUOTE=thekashyap;364172]You can use cin, scanf, gets, getline and so on for reading a string from an input.[/QUOTE] The [B]only[/B] appropriate function listed for reading a string is [I]getline()[/I]. All the rest have problems reading strings, from stopping before the full string is read to potentially crashing the program. I'd also … | |
Re: [QUOTE=MidiMagic;364923]If others weren't using similar icons for different purposes, it might be clear. But a pencil is "edit the post" on eBay and A&E, and a checkmark means "you have posted" on another site.[/QUOTE] Good point... | |
Re: "[B]Recent supernova[/B]?!?!?" It happened [I]some 240 million[/I] years ago! :icon_twisted: That's freakin' kool!!! | |
Re: I'm a funguy.... But I'm not really an animal. I'm better behaved. I find it sad that new laws have to be passed because somehow stupid laws have been passed in the past (I like that sentence -- it alliterativy) and people by law can't do something reasonable. | |
Re: [B]Reeciepoo[/B], after 15 threads, with useless titles like[indent] Help Databases Need help HTMLWrapper How do you Noobie How the hell Annoying Network Issue Network Configuration Some help please Recommendations Changing Font C++ Help[/indent] it's probably time to [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies]read the Rules[/url], especially the [I]Keep It Organized[/I] section. | |
![]() | Re: Can you compile programs that don't use the graphics package? Or do they also claim "[I]could not load tlink.exe[/I]". I doubt it's because of BGI. It sounds like your compiler isn't set up properly. [QUOTE=Narue;363006]I'm constantly amazed how people use an ancient compiler with an obsolete graphics library and expect … |
Re: [QUOTE=dcc;362924]Now all I need is for someone to come up with a solution to my gout my day will be made.[/QUOTE] Amputation worked for me! :icon_twisted: | |
Re: Some other interesting versions of scale: [url]http://www.phrenopolis.com/perspective/stinson2004/index.html[/url] (my favorite) [url]http://www.noao.edu/education/peppercorn/pcmain.html[/url] [url]http://www.njaa.org/sswalk/sswalk.html#null[/url] | |
Re: [QUOTE=EnderX;351477]...he's still got to defeat Hillary Clinton for the official nomination as the Democratic Candidate ...[/QUOTE] [QUOTE=Ancient Dragon;351481]If Hillary Clinton is nominated ...[/QUOTE] But she's already been President! :icon_twisted: | |
Re: [QUOTE=joeprogrammer;360211]>Please let me know not ony what you think of the idea I could probably care less.[/quote] I [I]could[/I] care a little less, but not much... [QUOTE=cscgal;360402]> I doubt very few people will bother to memorize the color scheme. Not necessarily that, but people will notice when they're leaving one … | |
What's with all these ads that look like movies? They are extremely annoying! Please make them stop!!!! | |
Re: What's the value of [I]sales[/I] when the program starts? And use [url=http://www.daniweb.com/techtalkforums/announcement8-3.html]Code Tags[/url]! | |
Re: [code] pop = 2000 Loop 4 times pop = pop + (pop * 30%) end loop [/code] | |
Re: [INLINECODE]StoreID[41][/INLINECODE] is a single int. Change the lines that use the function: 4: int GetID( int students, int StoreID[], int i); 15: GetID(students,StoreID,i); 22: int GetID( int students,int StoreID[], int i) Also, try displaying the the array when you return to see if it's loaded properly. All you displayed is … | |
Re: Have you been able to get the [B]timer[/B] at least working? If so you're almost there. If not, simply make a quick program to understand how the [B]timer[/B] works and use a text box to increment and display a count of each time the [B]timer[/B] kicks off. Then just use … ![]() | |
Re: Christina -- stop it! No one is saying we should completely get rid of games. Just move them out of the [I]Geek[/I] Lounge to a [I]Game[/I] Lounge. That way us geeks can continue our geeky discussions because [I]that's where we go for it![/I] Telling us to not visit so you … | |
Re: [QUOTE=yesm;359094]Personally, I sometimes use while(1) or similar for things like menus, where choosing a menu option would cause the program to do something and then return to the menu. Then, if you want to exit the program, just return 0 to end the program: [code=C++] int main() { int bob; … |
The End.