1,265 Posted Topics
Re: as an aside, check out TeraTerm. its probably the best Serial/FTP/SSH terminal interface available. if you're going to do any amount of serial work, you really need to get away from HyperTerm. [url]http://www.ayera.com/teraterm/[/url] | |
Re: you could do something like [code=perl] if (str =~ /^[a-z](?:\d\w{2,6}|\w{2,6}\d|\w\d\w{1,5}|\w{2}\d\w{0,4}|\w{3}\d\w{0,3}|\w{4}\d\w{0,2}|\w{5}\d\w?)$/i) { ... stuff ... } [/code] but i would rather [code=perl] if (str =~ /^[a-z](\w{3,7})/ ) { if ($1 =! /\d/ || $1 =! /[A-Z]/ || $1 != /[a-z]/) { die "must have one number, cap, and lowercase!\n"; } ... … | |
Re: if it were me, i'd probably get on the [URL="http://www.nongnu.org/cvs/#mailinglists"]CVS help mailing list [/URL]and ask the experts if there's a way to restore. for the best chance of getting help from them, you'll want to clearly and concisely describe what exactly you had, what you did, and what you have … | |
Re: go to this page [url]http://www.codecutter.net/tools/winbgim/[/url] get the download. the zip file contains 3 items. the files [B]winbgim.h[/B] and [B]graphics.h[/B] must be copied to your MinGW [B]include[/B] directory. the folder [B]libbgi.a[/B] must be copied to your MingW [B]lib[/B] directory. include the appropriate header files to use the functions in your program. | |
Re: oh, oops. sorry for the neg rep to Robert and FBody. I'll find a post to give you green on tomorrow. maybe someone else will make your posts, above, green too. my bad. | |
Re: interesting read. thanks, Martin, and welcome. Pop on by the C Forums when you feel like it. we have a special tag "gimmetehcodez" for those homework-seeking posts you enjoy. | |
Re: maybe i'm missing some details, but it seems to me that you're trying to allocate > 5GB of ram, above and beyond whatever your operating system and its various running processes require. it looks like you dont have the RAM, so your computer faults. | |
Re: epsilon definitely depends on the application. i prefer to just hold it out at arm's length and close one eye. if it lines up, we're good. that's called "engineering approximation". but, sadly, the quality engineers don't like it. :( for large integers like factorials use a big number library, not … | |
Re: quickheal is a virtually-unknown AV product. the few reviews i find, complain that it prone to registering false positives. some reviewers have found it makes their computer virtually unusable. I recommend you remove your crappy AV software and get something with a decent reputation. many people use AVG. I personally … | |
Re: [url]http://www.gnu.org/s/libc/manual/html_node/crypt.html[/url] | |
| |
Re: welcome to daniweb. please familiarize yourself with the forum rules. you attract the ire of regulars when you bump old threads long dead with new questions, or otherwise "hijack" someone else's thread. Notice your question has been moved to it's own thread. as to your problem .... pthreads.h and sched.h … | |
Re: everybody loves to hate on Schildt, don't they? i think the majority of criticisms against his [I]C: A Reference Manual[/I], are trivial. I'm not saying it's a great book, and there are undoubtedly some errors, but it's not as bad as the bandwagon lined up against him would like to … | |
Re: as of Dec 2008, MD5 is known to be broken. Older linux distributions used MD5. Newer ones do not. the US Government declared [QUOTE][B]Do not use the MD5 algorithm[/B] Software developers, Certification Authorities, website owners, and users should avoid using the MD5 algorithm in any capacity. As previous research has … | |
Re: (1) means to not cast the return value of malloc. Simply write [icode]x=malloc (T*sizeof(float*));[/icode] instead of [icode]x=(float**) malloc (T*sizeof(float*));[/icode]. the cast is not required by the C standard and is redundant. this is at best "bad practice" and at worst can hide a serious bug if you didn't include the … | |
Re: the "find" command can spill out a lot of garbage when searching from root if he doesnt have su permission. makes it difficult to find what you're looking for. you can suppress the warnings, tho i forget exactly how. you can [icode]man find[/icode] for details. but have you checked the … | |
Re: uncool_jatish, YOU PLAGIARIZING[I] <<flower>>[/I] if you're going to beg for "ratings" by stealing someone else's work, at least have the common courtesy to paraphrase your source material rather than posting it verbatim. or do you think we're so stupid we can't find where you cut and paste from? [url]http://www.linfo.org/create_c1.html[/url] . | |
Re: I've never used libcurl. I'd love to help you, but all i can do is read the libcurl example that does exactly what you're looking for, and repeat what it says, but that would be kind of dumb and a waste of everyone's time, since [URL="http://curl.haxx.se/libcurl/c/getinmemory.html"]you can just go read … | |
| |
Re: jatish, YOU PLAGIARIZING[I] <<teddy-bear>>[/I] if you're going to beg for "ratings" by stealing someone else's work, at least have the common courtesy to paraphrase your source material rather than posting it verbatim. or do you think we're so stupid we can't find where you cut and paste from? [url]http://www.lisha.ufsc.br/teaching/os/exercise/hello.html[/url] . … | |
Re: do you really think you have so novel an approach to STD DEV that needs to dig up a thread that is 3 years old? because i assure you the OP hasn't been wainting for 3 years for your answer. . | |
Re: it's not correct to test the return value of fscanf as a NULL character. fscanf returns an int. specifically: [QUOTE]Upon successful completion, these functions return the number of successfully matched and assigned input items; this number can be 0 in the event of an early matching failure. If the input … | |
Re: what is the value of BUFFER, that determines how many characters fgets pulls in at a time ? the target string could be hitting the fgets boundary right where the searched pattern is occuring. it might seem unlikely, but the fewer number of characters in the string being read by"fgets" … | |
Re: hi tony. do you guy use a scripting language like Perl or Python? i would think those language might help you move up in your job. | |
Re: yeah, well you little punks need get your ass inside at night and do your homework. | |
Re: fread statement reads the first 40 bytes from a file and puts them in a character array called buffer. buffer is only 12 bytes in size. this situation is generally considered to be A Bad Thing. | |
Re: here's this template again. where is this coming from? some thread somewhere that tells you to post like this? | |
Re: It's more accurate to say that Notepad doesn't know anything about fonts. Notepad is worthless. Forget that it exists. as for creating custom documents, you [I]can [/I]use [URL="http://en.wikipedia.org/wiki/OLE_Automation"]Windows OLE Automation[/URL] to programmatically create and modify MS Office documents (Word, Excel, etc.) complete with font and formatting and graphs and images … | |
Re: and would you like to give us a hint about what's not working? | |
![]() | Re: +1 point for using code tags. :-) -1 point for not searching this website for one of many examples of the Knights Tour :-( net score: neutral :-| . |
Re: Xufan your codes don't work because they are wrong. Narue has given you code that works. now do the following: (1) read Narues post above and fully understand the second example with the if/else statements. (2) take the first statement with teh ? : operators, and insert parentheses around them … | |
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 … | |
Re: if he'd bother to pay attention in the first thread he made on this, he'd understand this already. | |
Re: yeah, i did it. no, i'm going to tell you how. . | |
Re: here's that template again. where is this coming from? | |
Re: where you think you are? some sort of do-my-homework-for-me service? i'd tell you to go to the Java or C++ forum, but they'd just laugh at you if you post this "gimmetehcodez" question. when you're ready to show the work done, point out where you're stuck, and ask a coherent … | |
Re: take it to the C++ forum. they'll help you. | |
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 … | |
Re: well, yes, it's obvious. you dont' have to mince words about it. We can plainly see that he's misspelled "encrypt" in one of the encryption functions. "encrpyt" is not a word. | |
Re: you dont make any sense. standard C will will work on Borland just fine. | |
Re: wow, Dutch still live in SA? i thought you all jumped ship a while back. | |
Re: welcome Fribacka! stop by the C or C++ forums, and ask questions or contribute answers as you feel suited. | |
Re: const means constant. that it won't be changed anywhere within the scope where it is implemented. if a function takes, for example, a pointer to a "const char" argument, you know you can pass in a string to that argument and your string will not be modified by the function. | |
Re: this is a classic error. the macro just replaces the code in the program with your #define'd value verbatim. therefore, it's calculating according to the order of operation: [iCODE]225 / 15 * 15[/iCODE], which is 225. change your #define to [code]#define SQR(x) (x * x)[/code] . | |
Re: there's no reason why you should be afraid of <stdlib.h>. it won't bite you. you should not use <conio.h> that library has been obsolete for 20 years. most modern compilers do not use it. as to "how to randomize", here's the simple answer: if you want a random number from … |
The End.