Posts
 
Reputation
Joined
Last Seen
Ranked #23
Strength to Increase Rep
+14
Strength to Decrease Rep
-3
78% Quality Score
Upvotes Received
719
Posts with Upvotes
480
Upvoting Members
125
Downvotes Received
173
Posts with Downvotes
138
Downvoting Members
63
266 Commented Posts
~699.18K People Reached
About Me

bovinoscatologist

Interests
throwing stones
PC Specs
i has a flavor?
Favorite Tags

1,265 Posted Topics

Member Avatar for vegaseat

[QUOTE=vegaseat;890062]Once harm has been done, even a fool understands it. -- Homer[/QUOTE] Mmmmm.... Donuts. -- Homer

Member Avatar for Reverend Jim
15
13K
Member Avatar for samaru
Member Avatar for Duki

pizza with ranch dressing, rice krispie treat, and a diet pepsi. it's my healthy alternative.

Member Avatar for Dani
22
17K
Member Avatar for oggiemc

change printf to fprintf and write to a .csv file [code]FILE * fp = fopen("mydata.csv", "w"); // opens file to write ("w"), using the FILE pointer "fp" //... printf("16 Bit:\n\n"); for (n=0;n<numberOfValues;n++){ fprintf(fp, "%.4x\n", rand16()); // prints to the file, using the file pointer "fp" //... fclose(fp); // close the …

Member Avatar for Mohd Iszamir
0
6K
Member Avatar for computer engW

[QUOTE=computer engW;613127]Our doctor want us learn how to make these shapes by using loops for exam question.[/QUOTE] sweet. my doctor just wants me to bend over and take a deep breath. :( i should look into changing plans. .

Member Avatar for movies8time8
0
8K
Member Avatar for mady028
Member Avatar for needs_help

this thread fails. [IMG] tags do not work in geeks lounge. also, image shack does not allow hotlinking.

Member Avatar for Ciara_1
0
883
Member Avatar for playst205

[b]PLAYST205[/b]: this is a Really. Common. Problem. one day you may have the unfortunate luck to revisit your posts here, and you'll be (rightfully) embarrassed at[I] just how whiny and helpless you're acting [/I]over something so trivial and mundane. ANYHOW... most text editors have a hotkey that will locate the …

Member Avatar for kuroshmokhtari
0
8K
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 blackrobe

um... you pretty much just described the two steps. [code]$ gcc file1.c main.c $ ./a.out[/code] what more do you want to do?

Member Avatar for dip_j
0
614
Member Avatar for jephthah
Member Avatar for Mr.UNOwen

ive heard Python has a very simple USB interface too. but that means it's written in C. doesnt linux have a device filename for USB ports? like /dev/ugen something or other? cant you then do fopen( ) on that? just thinking... ive never done it, myself.

Member Avatar for omarcharolin
0
10K
Member Avatar for nagarjuna

Hi Narijuana Glomosim is not C. Did you [URL="http://lmgtfy.com/?q=glomosim"]look here?[/URL]

Member Avatar for NASEEMSHAKEEL
0
247
Member Avatar for code2cplus

[QUOTE=binoy.jayan;1180584]Hi friends... This works.. Try out.. Its the corrected one[/quote] so, when you say "works" ... you really mean "crashes with a fatal runtime error", right? thanks for resurrecting a 4 year old thread to post your non-working crap code.

Member Avatar for Assembly Guy
0
685
Member Avatar for jessicaphillips
Member Avatar for altic

^ from that page: [QUOTE=jephthah;850293]on linux you would just grep sysctl for a block of info [icode]$ sysctl -a |grep therm ...[/icode] or query for the specific variable [icode]$ sysctl hw.acpi.thermal.tz0.temperature hw.acpi.thermal.tz0.temperature: 54.0C[/icode] [/quote]

Member Avatar for nash_1
0
11K
Member Avatar for sargarpramod

remember this fact: a variable of type [b]char[/b] is just an 8-bit [b]int[/b]. thats all it is, and all it ever was. try this and see: [icode]int a = 65; printf("%c", a);[/icode]

Member Avatar for tilakkumar
0
3K
Member Avatar for Landoro

so you want us to rework some code for your "friend's" homework assignment, and to hurry up about it, and to do it in a way that satisfies the teacher's requirements. sounds legit.

Member Avatar for raptr_dflo
0
282
Member Avatar for fady.a.samy

spend less time worrying about your avatar, and you'll have more time to do your own work and not have to resort to cheating.

Member Avatar for jephthah
-1
201
Member Avatar for amrita29april
Member Avatar for nitin1

@nitin1: remember everything is in Base2, *binary*. so 2^11, the exponent, is a value between -1022 and +1023, but that is still the exponent of a base2 number, i.e. 2^-1022 to 2^1023 as a range, so in *base10* it gives a total *decimal* range of 10^-383 to 10^384. Similarly, 52 …

Member Avatar for jephthah
0
165
Member Avatar for tformed

[QUOTE=meghs007;837894]but one limitation in this code is this only find out the integer square root of the given number[/QUOTE] and that it's also broken code that won't compile, and doesn't even work worth a damn if you take the time to fix it. good job on that. totally worth resurrecting …

Member Avatar for vmanes
0
3K
Member Avatar for somename

WHOA, whoa, whoa... Clockowl. That is so, SO wrong, I dont know where to start. Did you even try this? have you ever tried this? of course not, it would never even remotely work. It doesnt even make SENSE. IMHO, you need to read more and help less. a lot …

Member Avatar for deceptikon
0
3K
Member Avatar for savinki

or....[code=c] int getNumDecimalDigits(int value) { char myString[16]; sprintf(myString,"%d",value); return strlen(myString); }[/code] :P .

Member Avatar for Shahzad Ahmad
0
320
Member Avatar for AnnA.B

[QUOTE=AnnA.B;919077]iamthwee, tnx for your code. That's exactly what I need, but it's very hard to read[/QUOTE] really? you think so? i thought it was actually quite clever. you should hand it in, your instructor will be impressed.

Member Avatar for joao.jose.520
1
1K
Member Avatar for abd2
Member Avatar for razorsky

you can't say [ICODE]values[x].city = s[/ICODE] ... you must do something like [ICODE]strcpy(values[x].city, s)[/ICODE] ... also dont put the "&s" when getting a string. just put "s" [code] while (fscanf(inp,"%s %d",s, &n) != EOF) { strcpy(values[x].city, s); values[x].temp = n; x++; } [/code] the reason is that "s" and "values[x].city" …

Member Avatar for j.c.
0
9K
Member Avatar for jephthah
Member Avatar for Dani
0
101
Member Avatar for scapu

here you go: [code] #define GIT_R_DUN 3.00 #include <stdio.h> #include <math.h> int main() { double x = GIT_R_DUN; printf("root of %f = %f\n",x,sqrt(x)); } [/code] if questioned, tell your professor that NO ONE in the "real world" writes this stuff from scratch, then ask him if he's ever had a …

Member Avatar for goyalPriya
0
3K
Member Avatar for GrimJack
Member Avatar for OurNation

you get a goat [IMG]http://media.funlol.com/content/img/vend-a-goat.jpg[/IMG] but all i gots is some pocket lint.

Member Avatar for vinnitro
1
16K
Member Avatar for plike922

[i]In certain cases when dealing with text files or reading data from a "character device", the Microsoft MS-DOS shell (COMMAND.COM) or operating-system utility programs would historically append an ASCII control-Z character (aka the "SUB" character, 0x1A) to the end of a disk file[/i] --source: wikipedia

Member Avatar for I_m_rude
0
529
Member Avatar for sillyboy

Dangerous -- Michael Jackson dont ask me why this fookin' coffee shop is playing it. they've got a mostly cool mix playing but they throw some random shiite in every so often. :grr: :mad: :grr:

Member Avatar for Helianthus
0
5K
Member Avatar for you2

depends on whether you use the winsock or sockets library. see [URL="http://www.beej.us/guide/bgnet/"]Beej's Guide[/URL] for more info than you ever knew you needed.

Member Avatar for pj.david_rajesh
0
14K
Member Avatar for Jammie

why so complicated? all you really need is "strtol()" and the addition operator. [code=c]int binaryAdd(char *first, char *second, int *sum) { int val1, val2; char *ptr1, *ptr2; size_t length; val1 = strtol(first,&ptr1,2); val2 = strtol(second,&ptr2,2); if (ptr1 == first || ptr2 == second) { printf("\ninvalid entry.\n\n"); return 0; } length …

Member Avatar for arunsolo1984
1
983
Member Avatar for fsemilla

go to zigbee. become a member join their forums. discuss zigbee questions there. when you have C-language questions, come back here :)

Member Avatar for agieli
1
2K
Member Avatar for drewangel

[QUOTE][B]drewangel :[/B] i am using turbo c++ compiler and including the header file pthread.h , but i am getting error and it is not getting included [B]AncientDragon : [/B]Your compiler does not support threads. You will have to use a modern compiler ' [B]drewangel : [/B]thanks for your reply. but …

Member Avatar for DeanMSands3
0
732
Member Avatar for Jaks_maths
Member Avatar for mr_maverix
Member Avatar for sknake

this is not a random bot or whatnot. someone is purposely targeting these people. i think it's obvious that they are doing so in order to highlight the absurdity of the arbitrary and anonymous voting system. any skript kiddie can write a couple dozen lines of perl code to parse …

Member Avatar for pseudorandom21
2
964
Member Avatar for adkool
Member Avatar for WASDted

[QUOTE=BestJewSinceJC;1195982]If you're planning to profit on these t shirts (which I assume you are) then you should also think of some normal-ish ones for people like me who wouldn't buy the "geeky sayings" ones.[/QUOTE] yeah, i don't think they're going to profit on this. it's just SWAG to get name …

Member Avatar for Netcode
0
989
Member Avatar for urbangeek

[QUOTE=urbangeek;1183936] in the ...[URL="http://www.thinkage.ca/english/gcos/expl/c/lib/fflush.html"] link [/URL]they are saying, user should definitely NOT [use fflush(stdout) to clear the output buffer.] [/quote] that webpage is a joke. a bad joke. they actually instruct you to use gets() as an example of "safe code". this right there tells me they're talking out their …

Member Avatar for Narue
0
2K
Member Avatar for guggenheim

everyone who's ever gone through UDP and TCP socket programming has these issues. as one of many who had to slog through it on my own, i can say that you'll love yourself better if you solve it yourself, rather than someone to tell you how to do it. if …

Member Avatar for Ben Mehlman
0
730
Member Avatar for Kadence

[icode]#ifdef[/icode] is a shorthand form of [icode]#if defined[/icode]. the difference between the two is that '#ifdef' doesnt allow complex expressions.

Member Avatar for Susel1
0
3K
Member Avatar for sayoojya

[QUOTE]Write a C program to find the factorial of a number using do while loop?[/QUOTE] well, yes. yes, i can. thank you! :)

Member Avatar for dharini6030
-8
9K
Member Avatar for Xufyan

because your assignment statement [icode]c *= b;[/icode] is a shorthand way of saying [icode]c = c * b[/icode] by setting c=1, this correctly causes the first execution to be read as "c = 1 * b", and uses the value of c recursively each time afterward. if you don't initialize …

Member Avatar for muktigeek
0
650
Member Avatar for wani_raj

[QUOTE=fpmurphy;876496]I am confused. First you say you want to write the program. Then you say you want somebody to send the code for such a program to you.[/QUOTE] those were two different people. but as to that second guy, welcome to Daniweb. it's pretty much the reason why the long-term …

Member Avatar for ryu_hemt_always
0
2K
Member Avatar for Mr Fish

1.) Describe your current job / job title. Dishwasher / Dish Pig. 2.) What do you like most about your job? fat waitresses 3.) What do you dislike most about your job? the "free food" is cold and wet. 4.) Overall, do you enjoy your job? depends if me mate's …

Member Avatar for Rashakil Fol
0
212
Member Avatar for almostbob

The End.