5,676 Posted Topics

Member Avatar for kinggarden

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

Member Avatar for Narue
0
121
Member Avatar for Woody714

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.

Member Avatar for John A
0
926
Member Avatar for Kenya19

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

Member Avatar for stymiee
1
319
Member Avatar for EnderX

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

Member Avatar for Aia
0
156
Member Avatar for gajmp

I suppose you could, but up until now most (all?) fonts have not been created using AI. It's just not necessary.

Member Avatar for John A
0
81
Member Avatar for christina>you

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

Member Avatar for Narue
3
892
Member Avatar for happygeek

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?

Member Avatar for ~s.o.s~
10
282
Member Avatar for blazted

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

Member Avatar for WaltP
0
89
Member Avatar for nedwards

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

Member Avatar for kmortensen
0
946
Member Avatar for ~s.o.s~

speel chesker workee fien, und allways haas forr mee! Never had to set a thing, and rounded corners are off.

Member Avatar for joshSCH
0
161
Member Avatar for joshSCH

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

Member Avatar for Dani
0
817
Member Avatar for MidiMagic

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

Member Avatar for MidiMagic
0
363
Member Avatar for t3hfr3ak

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 …

Member Avatar for ~Paul~
0
141
Member Avatar for The Dude

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:

Member Avatar for kylethedarkn
0
211
Member Avatar for christina>you

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!

Member Avatar for hbk619
1
149
Member Avatar for The Dude
Member Avatar for jenymaru08

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

Member Avatar for meiyantao
0
181
Member Avatar for louis7370

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]

Member Avatar for iamthwee
0
108
Member Avatar for matias.germany

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

Member Avatar for WaltP
0
105
Member Avatar for jpknoob

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

Member Avatar for Lerner
0
96
Member Avatar for mevanga

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

Member Avatar for WaltP
0
335
Member Avatar for socom(psp)
Member Avatar for somita1
Re: help

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.

Member Avatar for WaltP
0
129
Member Avatar for Mac.Z

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 …

Member Avatar for WaltP
0
84
Member Avatar for ghadahelal
Re: hex

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

Member Avatar for WaltP
0
219
Member Avatar for sInFuL69er

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

Member Avatar for WaltP
0
100
Member Avatar for rockthrower

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.

Member Avatar for WaltP
0
245
Member Avatar for jaepi
Member Avatar for MarzenaM

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

Member Avatar for WaltP
0
255
Member Avatar for parthiban

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

Member Avatar for parthiban
0
682
Member Avatar for Dani
Member Avatar for Dave Sinkula

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.

Member Avatar for Dani
0
198
Member Avatar for jaepi

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

Member Avatar for thekashyap
0
119
Member Avatar for briskal

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

Member Avatar for WaltP
0
253
Member Avatar for dcc

"[B]Recent supernova[/B]?!?!?" It happened [I]some 240 million[/I] years ago! :icon_twisted: That's freakin' kool!!!

Member Avatar for dcc
0
76
Member Avatar for EnderX

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.

Member Avatar for Aia
0
336
Member Avatar for ReeciePoo
Re: Help

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

Member Avatar for ReeciePoo
0
71
Member Avatar for ak_2005

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 …

Member Avatar for ~s.o.s~
0
783
Member Avatar for dcc

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

Member Avatar for dcc
0
98
Member Avatar for cancer10

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]

Member Avatar for hbk619
2
170
Member Avatar for Infarction

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

Member Avatar for Dave Sinkula
0
1K
Member Avatar for Dani

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

Member Avatar for Nick Evan
0
287
Member Avatar for WaltP

What's with all these ads that look like movies? They are extremely annoying! Please make them stop!!!!

Member Avatar for MidiMagic
0
371
Member Avatar for KevinADC
Member Avatar for MidiMagic
0
497
Member Avatar for ssgatbliss

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

Member Avatar for ssgatbliss
0
154
Member Avatar for tech291083
Member Avatar for MidiMagic
0
50
Member Avatar for cmsc_illiterate

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

Member Avatar for cmsc_illiterate
0
121
Member Avatar for ChadW

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 …

Member Avatar for Dukane
0
269
Member Avatar for tgreer

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 …

Member Avatar for christina>you
0
587
Member Avatar for donaldunca

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

Member Avatar for donaldunca
0
128

The End.