1,265 Posted Topics
Re: 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 … | |
Re: '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 … | |
Re: i think his problem is that he has an urgency, but doesn't know what to do. | |
Re: I think this calls for a shot of [URL="http://i86.photobucket.com/albums/k93/chrishorgen/Funnay/facepalm.jpg?t=1240248142"]FACEPALM[/URL] . | |
Re: 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 | |
Re: 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 … | |
Re: 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] … | |
Re: 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 … | |
![]() | |
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. | |
Re: this is a blatant spamvertising for the OP's business interest. | |
Re: 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? | |
Re: 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 | |
Re: 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.) | |
Re: i dont get it. is this funny? or is the OP making an account-suicide attempt? | |
Re: [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 … | |
Re: 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". :) . | |
Re: did this guy get banned for this post? i mean, yeah it's pretty godawful stupid, but still.... | |
Re: ah, nevermind... i got nothing new to add here. | |
Re: ^ 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.) | |
Re: 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. | |
Re: 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 … | |
Re: [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. :| . | |
Re: 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. :( | |
Re: 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()" | |
Re: 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 … | |
Re: this is C++ code. you'll have more luck getting help in the C++ forum | |
Re: [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. | |
Re: 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] | |
Re: 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; } … | |
Re: 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. | |
Re: [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 … | |
Re: 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 … | |
Re: [QUOTE=DavidOsorno;846068]It is not clear to me why you [/QUOTE] shush. grownups are talking, now. | |
Re: ^ 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 … | |
Re: all of those three things can quite easily be coded into the message of a single packet. | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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 | |
Re: 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 … | |
[URL="http://resimsakla.com/data/media/21/Vend_A_Goat.jpg"]see here[/URL] |
The End.