1,265 Posted Topics

Member Avatar for smitem03
Member Avatar for lionheart1982

carve out a niche for yourself and become an expert. you'll be more in demand as a specialized expert than as a run of the mill microsoft toolbag. hell, even microsoft employs linux gurus for their interoperability labs. so dont let the crowd tell you that you must travel with …

Member Avatar for jephthah
0
196
Member Avatar for Dewey1040

'same' is never initialized. if a non-matching line is never found to set it to 0, what value will it contain? The answer is: who the hell knows? so when one file read in the while() loop returns a NULL, the && condition will evaluate false. at which point the …

Member Avatar for Ancient Dragon
0
83
Member Avatar for southernd0529

i think his problem is that he has an urgency, but doesn't know what to do.

Member Avatar for jephthah
0
348
Member Avatar for dustman

I think this calls for a shot of [URL="http://i86.photobucket.com/albums/k93/chrishorgen/Funnay/facepalm.jpg?t=1240248142"]FACEPALM[/URL] .

Member Avatar for jephthah
0
168
Member Avatar for viki0077

having a physical delay helps demonstrate, but the delay should be significantly scaled: I'd say 1/10th. you dont want to sit at a real stoplight for 30 seconds every time you demonstrate/test the program :P

Member Avatar for tux4life
0
8K
Member Avatar for LiBOC

offhand, i don't think you should be using quotes around a numeric. try [icode]case 0x1E:[/icode] or [icode]case 30:[/icode] other than that, i believe Rabbit uses Dynamic-C, which is pretty much out of the scope of this forum, as it's not standard and has its own extensions for these sorts of …

Member Avatar for jephthah
0
312
Member Avatar for qaokpl

i kind of disagree.... i think that perl has a pretty easy learning curve, at least for the basic stuff like console applications and web scripts. yeah, the more complex things gets difficult, but getting started with basics is fairly easy as far as languages go. try this site: [url]http://learn.perl.org/[/url] …

Member Avatar for ghostdog74
0
173
Member Avatar for tomkeeee

holy hell's bells, batman! :confused: i mean, seriously, could you possibly have barfed up a more unintelligible code dump, without any explantion, without any formatting, without any .... anything? what's your question anyhow? perhaps you would like a full rewrite of this code complete with comments, fully validated, burned to …

Member Avatar for tomkeeee
0
166
Member Avatar for starsinthesky
Member Avatar for starsinthesky
0
128
Member Avatar for sneekula
Member Avatar for Philmagrill
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 whitely
Member Avatar for jephthah
-1
168
Member Avatar for britto
Member Avatar for jephthah
0
99
Member Avatar for smitem03

given the lack of any sort of question or comment or request, i suggest it be moved to the "trash" board. or is our daniweb psychic logged on?

Member Avatar for jephthah
0
103
Member Avatar for tasosa

i keep seeing your screen name, and thinking it says: [b]Mr Daniweb[/b] i figure I'm either kind of dyslexic, or I'm onto something big.... :S

Member Avatar for Ancient Dragon
0
167
Member Avatar for Nick Evan

I'm a cross between [URL="http://redwing.hutman.net/~mreed/warriorshtm/evilclown.htm"]Evil Clown[/URL] and [URL="http://redwing.hutman.net/~mreed/warriorshtm/palooka.htm"]Palooka[/URL]. Except, of course, when I'm being Narue's Me-Too. (but sorry, Narue, you are not a "Godfather". That's not a fit. You're more like "[URL="http://redwing.hutman.net/~mreed/warriorshtm/kungfumaster.htm"]Kung-Fu Master[/URL]" with anger-management issues.)

Member Avatar for Narue
0
320
Member Avatar for Sturm

i dont get it. is this funny? or is the OP making an account-suicide attempt?

Member Avatar for happygeek
0
187
Member Avatar for bemo55

[QUOTE=Trendkiller;849915]cfPtr=fopen("d:\\output.txt","w"); What I found is that you should append like this ... [/QUOTE] Wrong, You write when you want to write, append when you want to append. in any event, it has nothing to do with access violation exceptions, as it only changes where the file pointer is located after …

Member Avatar for jephthah
0
228
Member Avatar for death_oclock

as an aside.... the plan to "reset bit 5" as a method to convert a string to uppercase will make for some fun times if the string ever contains a numeral or other non-alphabetical character. It is indeed rather "cute". :) .

Member Avatar for death_oclock
0
194
Member Avatar for xgmx

did this guy get banned for this post? i mean, yeah it's pretty godawful stupid, but still....

Member Avatar for sneekula
0
162
Member Avatar for mostafanageeb
Member Avatar for kelechi96

^ nice answer. except one thing needs a bit stronger emphasis. [B]never, ever[/B] use "GOTO" this is not BASIC programming. You will be tarred and feathered. (there [I]may[/I] be an exception to the absolute ban on using GOTO, but that's not available until you reach Level 70.)

Member Avatar for kelechi96
0
170
Member Avatar for zoner7

strncat is doing exactly what you're telling it to: concatenating your temp string (of one character) onto the K[k] string. the fact that you've just previously cleared that K[k] string to be empty, has nothing to do with strncat.

Member Avatar for jephthah
0
172
Member Avatar for usman2k4u

hey, no worries, usman2k4u... i can totally help you out with this code. here is the start [code=c]#include <stdio.h> #include <stdlib.h> int main() { // declare local variables here // insert body of code here return 0; }[/code] you fill in the rest. then when you can formulate a real …

Member Avatar for usman2k4u
0
286
Member Avatar for #include_rose

[QUOTE]for nitc students (who might use it in 2010)[/QUOTE] more like, for nitc students who want an example of what NOT to do. i keep getting told that NIT universities in india are premiere. you sure cant tell by the ones who come here posting on this site. :| .

Member Avatar for jephthah
0
213
Member Avatar for Extreme hosts
Member Avatar for Ancient Dragon
Member Avatar for songweaver

why would you care if the [I]numerator[/I] is zero? are we no longer allowed to add or muliply zero? it seems i missed the memo ... again. :(

Member Avatar for songweaver
0
90
Member Avatar for Francis87

like Narue said, your replacements have to be of precisely identical lengths. if there's any variation, even including whitespace such as tabs and newlines, you'll wreck the file. if the replacements characters are indeed one-to-one overwrites, you will use the following commands: "fseek()" "fwrite()"

Member Avatar for ArkM
0
313
Member Avatar for lancevo3

your first while loops searches for the first alpha char so it can be changed to uppercase. then the second while loops changes every single remaining character to lowercase (assuming it can be changed), until it finally finds the NULL and quits. So... instead of continuing that second while until …

Member Avatar for Clockowl
0
161
Member Avatar for ammonation42

this is C++ code. you'll have more luck getting help in the C++ forum

Member Avatar for jephthah
0
98
Member Avatar for danishamman

[QUOTE]I'm beginning to like being proved wrong.[/QUOTE] Hello, welcome to Daniweb. I'm the head [URL="http://redwing.hutman.net/~mreed/warriorshtm/palooka.htm"]palooka[/URL]. You can join my club.

Member Avatar for jephthah
0
229
Member Avatar for camonchain

did someone say "war"? [QUOTE]Encoding the type of a function into the name (so-called Hungarian notation) is brain damaged - the compiler knows the types anyway and can check those, and it only confuses the programmer. No wonder MicroSoft makes buggy programs. --Linus Torvalds The Linux Kernel Documentation [url]http://lxr.linux.no/linux+v2.6.29/Documentation/CodingStyle#L237[/url] [/QUOTE]

Member Avatar for jephthah
0
194
Member Avatar for oracle123

I'm partial to the use of "strftime()" [code=c]#include <time.h> #include <stdio.h> #include <string.h> void timestamp_string (char * myString) { char timestamp[16]; time_t caltime; struct tm * broketime; // find current time, convert to broken-down time time(&caltime); broketime = localtime(&caltime); // append timestamp in the format "_yymmdd_hhmmss" strftime(timestamp,16,"_%y%m%d_%H%M%S",broketime); strcat(myString,timestamp); return; } …

Member Avatar for jephthah
0
4K
Member Avatar for want_to_code

I believe the problem is that the OP is trying to test for logical equivalence on two strings of characters, but since they are actually pointers, their contents can not be compared directly.

Member Avatar for Nick Evan
0
299
Member Avatar for alanng.net

[QUOTE]# /* ... omitting irrelevant, working code here ... */ # [/QUOTE] well, gonna be hard to tell whats going on, because that code is definitely not irrelevant, and i can't be sure if it's necessarily working. specifically, i dont see what 'r' and 'c' are pointing to. is the …

Member Avatar for alanng.net
0
124
Member Avatar for grandalf62

when you call "[icode]DS1302GetAll (&systime);[/icode]", as Narue said, that function will fill all the elements of the "systime" structure with the individual time and date components. then, in order to push this info to the LCD in a human-readable way, you need to format the elements in an organized, meaningful …

Member Avatar for grandalf62
0
249
Member Avatar for moiron
Member Avatar for jephthah
0
111
Member Avatar for krellor

[QUOTE=DavidOsorno;846068]It is not clear to me why you [/QUOTE] shush. grownups are talking, now.

Member Avatar for gnujohn
0
230
Member Avatar for ithelp

^ egads, that tops my slaughterhouse story. i worked on the automation systems for a pig processing plant, but we only worked on weekends when it was shut down. seriously though, that sounds like it might have been an intentional safety violation on the operator's part, to run a saw …

Member Avatar for debasisdas
1
151
Member Avatar for stillblazin

all of those three things can quite easily be coded into the message of a single packet.

Member Avatar for jephthah
0
76
Member Avatar for LiBOC

conio is a windows-only library thats nice when it works, but god help you if you ever have to port code that relies on it. termios and/or ncurses is a posix solution that might be more likely to yield results on your niche application. or maybe it wont. i dont …

Member Avatar for jephthah
0
93
Member Avatar for JimD C++ Newb

i dont think anyone knows what your schools frodo is. simple answer: run sockets on Unix/Linux using teh <sockets.h> library. run socket programs on windows using the <winsock.h> library. the rest is just details.

Member Avatar for jephthah
0
315
Member Avatar for Dave Sinkula

conservatives are funny. it's amazing how they can so completely jettison every fundamental, foundational tenet of their political ideology, then turn around and say its the fault of the liberal media or some such when their bacchanalian orgy of cut-and-spend fiscal policy blows up in their face. liberals on the …

Member Avatar for jephthah
0
666
Member Avatar for YaelGD
Member Avatar for JimD C++ Newb

your "i" and "j" are uninitialized indexes to a finite array. when you start the program, they're probably eleventysevenbillion. whereas you probably want them to be zero :P

Member Avatar for Aia
0
117
Member Avatar for tabooxchanz

theres no way i can help very much with your code. one problem here is i dont have enough information to try and test your code. but, I'll go ahead and try and explain how you should approach this problem... [B]EXECUTIVE SUMMARY: All of this totally depends on how your …

Member Avatar for tabooxchanz
0
186
Member Avatar for jephthah
Member Avatar for MosaicFuneral
0
201

The End.