50 Topics

Member Avatar for jephthah

too many new and intermediate users of C attempt to use the command [icode]fflush(stdin)[/icode] to "flush the input buffer". this is patently wrong. the rule is (and click if you don't believe me) : [URL="http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1052863818&id=1043284351"]NEVER [/URL][URL="http://answers.yahoo.com/question/index?qid=20071013052534AAuxWmW"]USE [/URL][URL="http://www.gidnetwork.com/b-57.html"]"FFLUSH()"[/URL] [URL="http://www.linuxforums.org/forum/linux-programming-scripting/41287-problem-fflush-stdin-function.html"]ON [/URL][URL="http://www.it.usyd.edu.au/~dasymond/mirror/c-faq/stdio/gets_flush2.html"]INPUT [/URL][URL="http://www.cplusplus.com/forum/general/6554/"]STREAMS [/URL][URL="http://c-faq.com/stdio/stdinflush.html"]SUCH [/URL][URL="http://gcc.gnu.org/ml/gcc-help/2009-01/msg00287.html"]AS [/URL][URL="http://www.dreamincode.net/forums/showtopic45833.htm"]"STDIN" [/URL] here is one method of properly …

Member Avatar for David_50
0
6K
Member Avatar for jephthah
Member Avatar for jephthah
Member Avatar for Dani
0
101
Member Avatar for jephthah

so there's an argument about best practice for #include statements. many people put all the relevant #include <header.h> statements at the top of the .c source code. some people prefer to put the relevant #include statements within the .h header file that is associated with the .c source code consider: …

Member Avatar for Ancient Dragon
0
486
Member Avatar for jephthah

i dont normally work in the console/terminal window in my day job. so, i keep rewriting this every time i respond to someone needing help related to getting user input. im putting it here partly so i dont have to keep rewriting it. this function will get a string input …

Member Avatar for BNF
1
1K
Member Avatar for jephthah
Member Avatar for characteredu
0
175
Member Avatar for jephthah

You know, i don't consider myself old. I don't have vision problems. but when i look at this site now, generally speaking, i find it very difficult to read. Oh, the buttons and headers and footers and advertising banners and other assorted tags are quite large and prominently displayed. i …

Member Avatar for William Hemsworth
3
854
Member Avatar for jephthah

[QUOTE=iamthwee;1217094] .. [/quote][i]>> I don't like the way the quotes are rendered, you shouldn't have to mouse over them to see it.[/i] i also dislike the rollover quote box that hides the quote. if i'm making the effort to quote someone, then their quote is an integral part of my …

Member Avatar for Ezzaral
5
514
Member Avatar for jephthah

[QUOTE=jephthah;1223996]...[/QUOTE] [I]>> "the designer" .... you mean it's not you ? >> who is this person? give us their name! [/I] [QUOTE=cscgal;1224020]...[/QUOTE] [I]> [url]http://jess3.com[/url][/I] so we discover this new website design was developed by some "Jess3". I don't know anything about this developer, but it's funny how their [I]own[/I] homepage …

Member Avatar for diafol
3
1K
Member Avatar for jephthah

yuck. seriously. it could have been made [I]more [/I]difficult to read, but you'd really have had to work at it.

Member Avatar for Dani
8
2K
Member Avatar for jephthah

I was always brought up that cow tipping was a standard rural recreation event. So it was surprising when my mom argued with me today that it is now considered rude to suggest that provincials will engage in an evening of cow tipping. I have nothing against cow tipping, but …

Member Avatar for vegaseat
4
189
Member Avatar for jephthah
Member Avatar for jephthah

i know this is about MySQL, but there is no 4GL forum, so i'm hoping one of you experts might know: we have an application that uses Progress (on a unix system) that imports data from .csv files and writes the various fields to the database. one particular type of …

Member Avatar for jephthah
0
226
Member Avatar for jephthah

man,[URL="http://jasonbstanding.com/blogparts/2009/09/bleeding.jpg"] i hate it[/URL].

Member Avatar for Will Gresham
0
95
Member Avatar for jephthah

gcc supports an extended precison "long double" type typically 10 or 12 bytes but Windows XP always maps the "long double" to the standard double (typically 8 bytes) MinGW on windows XP thinks it has a 12-byte "long double" but in fact it only has the 8 byte support on …

Member Avatar for Ancient Dragon
0
214
Member Avatar for jephthah

Name: Jephthah Height: avg Weight: working on it. Hair: yup Eyes: 20/20 Location: Gilead Age: "get off my lawn" Hobbies: smiting Ammonites Relationship Status: yes Fav Music: NPR, i guess. It always seems to be on :-\ Education: BS in Bovinoscatology Work: *sigh* If I must. Favorite Food: all the …

0
80
Member Avatar for jephthah

i know the general answer to using [ICODE]goto[/ICODE] is always "No!". I understand why, especially when teaching basics to new programmers, because it can lead to very bad practices and horrible spaghetti code. but ... when i write certain hardware drivers, i have to immediately cease executing a function if …

Member Avatar for nezachem
0
137
Member Avatar for jephthah
Member Avatar for jephthah

so... for 5 solid years, our C/C++ Warrior [URL="http://www.daniweb.com/forums/member17893.html"]Narue[/URL] has been a regular poster averaging 4 posts per day (4.08 to be exact). On June 21 2009, Narue disappears off the face of the Daniweb planet. new guy [URL="http://www.daniweb.com/forums/member552021.html"]Tom Gunn[/URL] had joined Daniweb five days previously, on June 18. Tom …

Member Avatar for jephthah
3
682
Member Avatar for jephthah

goin on over in C, yes they are. [URL="http://www.formatny.com/blog/wp-content/uploads/2009/04/umad.jpg"]U Mad?[/URL] oh, yeah. we mad. .

Member Avatar for jephthah
0
142
Member Avatar for jephthah

i don't recommend atoi() or atol(). this does not handle invalid strings (non-integer strings) very well at all. for instance, if you try [code]value = atoi("CowAndChicken");[/code]the result will be zero (value = 0) and if you try [code]value = atoi("0");[/code]the result will also be zero (value = 0) strtol() avoids …

Member Avatar for Dave Sinkula
0
157
Member Avatar for jephthah

I don't understand. Nobody in the US uses this crappy compiler with it's non-standard libraries. No one in the Western World seems to use this. even in second world countries in central and south america, they don't use this. so how is it that Borland seems to have a complete …

Member Avatar for jephthah
2
139
Member Avatar for jephthah

why do you think the following "solution" in the C-language forum is a good solution? [QUOTE=xavier666;1069864]The problem is that you have not flushed stdin. Put [icode]fflush(stdin);[/icode] before the [icode]scanf[/icode]. That should do it. -- [URL="http://www.daniweb.com/forums/post1069864.html#post1069864"]/forums/post1069864[/URL] [/QUOTE] ... because you actually gave it a green cookie with the comment: [QUOTE] Well …

Member Avatar for jephthah
0
281
Member Avatar for jephthah

she's not supposed to be gone so long. i miss getting beat up by her. :(

Member Avatar for The Dude
2
160
Member Avatar for jephthah
Member Avatar for jephthah
Member Avatar for jephthah
Member Avatar for jephthah
Member Avatar for jephthah

[URL="http://www.daniweb.com/forums/member552021.html"]Tom Gunn[/URL] Joined less than 1 month ago (Jun 18th, 2009) ...at this time he has only 193 posts but 45 solved threads. and 597 reputation points. I'm calling shenanigans.

Member Avatar for ~s.o.s~
0
577
Member Avatar for jephthah

Lieutanant Dan! Hello, Forrest. You got new legs. New legs! Yeah, I got new legs. Custom-made titanium ... what they use on the space shuttle. Magic legs!

Member Avatar for Godsp3ed
1
124
Member Avatar for jephthah

Dear little Greek letter Omega, how do I love thee? Let me count the ways. Your smooth lines and the parallel symmetry of your gently swelling curvatures, descending in a pendulous manner before convexly arising to cleave together at your magnificent center. Damn the font size 12! You shall always …

Member Avatar for scru
1
177
Member Avatar for jephthah
Member Avatar for jephthah

suppose there were another planet similar to earth in composition, temperature, and atmosphere. (and given the bazillions of stars in the universe, the probability is quite high that, somewhere, there must be) so, considering another earth-like planet with H2O, carbon, and oxygen... over a couple billion years ... what kind …

Member Avatar for jephthah
1
149
Member Avatar for jephthah

rocked. but, as a relatively-new parent, i realize they give these movies a PG-13 rating for a reason.... the reason being that it's not really appropriate viewing material for four-year-olds. oh, well, he shouldn't suffer permanent scars. much.

Member Avatar for vmanes
0
207
Member Avatar for jephthah

im going to risk getting a beating, because this is something i should (used to?) know... anyhoo, given a function, how do you tell the size of the array that is passed? obviously trying to find the sizeof the pointer doesn't work (it returns the size of the pointer, duh) …

Member Avatar for nalply
0
513
Member Avatar for jephthah

so im working in an environment (National Instruments) that auto-generates header files for the GUI. in my GUI, i have 150-some odd LEDs arranged in a matrix to represent a large relay bank. my LEDs are named and sequenced numerically like [code]PANEL_LED_1 PANEL_LED_2 ... PANEL_LED_150 etc...[/code] which would allow me …

Member Avatar for jephthah
0
98
Member Avatar for jephthah

[B][U]PROBLEM: [/U][/B] noobs are continually posting mountains of unhighlighted code, and its just nearly impossible to read such messes without highlighting... i dont even want to try, it hurts my head. making this worse is the people who need the most help are the same people who are the worst …

Member Avatar for FlamingClaw
2
218
Member Avatar for jephthah
Member Avatar for jephthah

how to use [code] tags? specifically, how do i type the opening and closing code tags in my post, as an example, without causing the code tags to activate? like this: [quote] HEY NOOB! USE CODE TAGS, AIGHT??? [B]<code=c>[/B] int main(void) { // your noob code here return 0; } …

Member Avatar for Ezzaral
0
293
Member Avatar for jephthah

I'm an alcoholic and a sex addict. i also compulsively troll Daniweb. i just want to say that i'm glad all of you are here for me. *sobs*

Member Avatar for jephthah
0
63
Member Avatar for jephthah

im looking a fully automated solution ... something a little more robust and safety-validated. manual testing has [URL="http://timetraveler.ytmnd.com/"]too many pitfalls[/URL]

Member Avatar for GrimJack
0
133
Member Avatar for jephthah

... someone else's account? there's some new guy who signed up last week, using a Calvin avatar. i want him taken out.

Member Avatar for ~s.o.s~
1
55
Member Avatar for jephthah

Dear Sir, I find your capability to handle the situation to be entirely insufficient and I have therefore taken proactive measures to rectify matters to my personal tastes, exercised posthaste and with extreme prejudice. Best Regards.

Member Avatar for martin5211
0
125
Member Avatar for jephthah
Member Avatar for MosaicFuneral
0
201
Member Avatar for jephthah

some people think section 11.1 of the Google Docs TOS is the harbinger of the End of Days. other people say that's just mostly-meaningless legalese for Google to cover their own arses. then the first group says that the second group has drank the Mountain View kool-aid. the second group …

Member Avatar for Narue
0
67
Member Avatar for jephthah

Disclaimer: I am not a webdesigner by any means, i only know enough to get my self into trouble. Im trying to help a non-profit fix their webpage, and Im having a rotten time getting IE and Firefox to agree. the front page is a 3x3 grid of pictures that …

Member Avatar for jephthah
0
111
Member Avatar for jephthah

so... whatchyallthink? i notice that this forum gets a tiny burst of activity about once a week. before posting this thread, the last couple posts here were made 9 days ago. then the next few were 17 days ago. and this pattern seems to be the same with other multi-language …

Member Avatar for Major Major
0
263
Member Avatar for jephthah

... this whole reputation points and altering power business works... ive got like 70-some-odd points, but i still only have one little green box, and 1 altering point. I'd sure feel cool if i could get a few more green things ... it'd also be nice to know what the …

Member Avatar for jbennet
0
387
Member Avatar for jephthah

okay, experts, i need help. i can't seem to replace characters in a file, like i thought i would be able to: here's an example code. i put print and error stuff in there to try and debug. everything seems to be working ... except that my filename is not …

Member Avatar for jephthah
0
285
Member Avatar for jephthah

hi, my name is Rob I live in Seattle and I'm an engineer for a large medical device company. I know enough C and a few other languages to get myself in trouble. I found this site by accident (google search) and after reading a few posts, I thought I'd …

Member Avatar for zandiago
0
115

The End.