Forum: C 1 Day Ago |
| Replies: 11 Views: 141 Re: Simple Calculator sure, sure. i've got nothing better to do than do your homework.
shall i also write your report, bind it, and mail it first class to your instructor? |
Forum: Perl 1 Day Ago |
| Replies: 13 Views: 280 Re: What regular expression should be written? that's what i gave him, at least the interesting bits. my example "$word" can be any string. i did not spend time on how he gets input into the variable.
well, i don't find that to be... |
Forum: Perl 2 Days Ago |
| Replies: 13 Views: 280 Re: What regular expression should be written? i already gave you the answer. i'll repost it using your variable names:
# variable "$word" is set by user search request
# variable "$sentence" has text to be searched
$word = "rna binding... |
Forum: C 4 Days Ago |
| Replies: 13 Views: 4,956 |
Forum: Perl 4 Days Ago |
| Replies: 13 Views: 280 |
Forum: Perl 4 Days Ago |
| Replies: 4 Views: 153 |
Forum: Perl 4 Days Ago |
| Replies: 1 Views: 149 |
Forum: Perl 4 Days Ago |
| Replies: 1 Views: 358 Re: Struggling Newbie i thought this thread was about "strangling newbies"
imagine my dismay when i found a ten-mile long post full of incoherent code with no syntax coloring. |
Forum: C 4 Days Ago |
| Replies: 3 Views: 148 Re: press <Esc> to teminate If you can't figure out how to get character input from the keyboard, YOU DAMN SURE SHOULDN'T BE USING MALLOC.
first learn basic programming first before starting a career in writing shitty code... |
Forum: C 4 Days Ago |
| Replies: 4 Views: 269 Re: (Linux) Need help with comunicating to RS232 the best way to figure out RS232 is, as you have found out, to hack through it yourself.
those constants you asked about are #defined in the header file.
to get an accurate delay, you can run a... |
Forum: C 4 Days Ago |
| Replies: 3 Views: 131 |
Forum: C 4 Days Ago |
| Replies: 6 Views: 188 Re: numerical value of EOF 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... |
Forum: C 4 Days Ago |
| Replies: 1 Views: 92 Re: help..?? wait a minute... are you trying to open a *website* or are you trying to open a harddrive through Internet Explorer
if youre talking about a website.... then you'll need to be getting quite familiar... |
Forum: C 6 Days Ago |
| Replies: 13 Views: 404 Re: Print Certain line in C what, you mean people cant read my mind?
:P
i do have a problem, sometimes, with being too terse. thanks for the reminder. |
Forum: C 7 Days Ago |
| Replies: 9 Views: 357 Re: Airline Ticket Reservations System the main point of contention here, is that they have provided zero evidence they have even *attempted* to work on their problem on their own.
this is the signature pattern of a many typical posters... |
Forum: C 8 Days Ago |
| Replies: 7 Views: 276 Re: Possible Project in C here's something fun to do: create a program that encrypts/decrypts messages by hiding/extracting them from a JPG image.
I'm not talking about just "hiding messages" in the exif header, which... |
Forum: C 8 Days Ago |
| Replies: 9 Views: 357 |
Forum: C 8 Days Ago |
| Replies: 14 Views: 416 Re: memory leak yeah, that's a common event causing memory leaks.
so my point was that merely counting 'x' number of malloc() and 'x' number of free() commands does not indicate that your memory allocation is... |
Forum: C 8 Days Ago |
| Replies: 6 Views: 179 |
Forum: C 8 Days Ago |
| Replies: 13 Views: 404 Re: Print Certain line in C my point is that STRSTR function will do what the OP wants
i thought it would be readily apparent to anyone who takes a moment to look it up. sorry, if i don't type out a fully commented and... |
Forum: C 8 Days Ago |
| Replies: 6 Views: 212 |
Forum: C 8 Days Ago |
| Replies: 9 Views: 357 |
Forum: C 8 Days Ago |
| Replies: 10 Views: 331 Re: solving linear equation in turbo c other than the fact that you're confusing linear functions with linear equations, a huge problem can be located in the title of your thread:
"Turbo C"
throw that crap away, now, and get a real... |
Forum: C 8 Days Ago |
| Replies: 14 Views: 416 Re: memory leak Is this an assignment, just to go through and count occurrences of these particular functions within some *.c file?
I ask, because for most "REAL WORLD" programs you can't just merely write a script... |
Forum: C 8 Days Ago |
| Replies: 3 Views: 146 Re: problem in creating header files yeah, what CHASTER said:
the header file should only contain
(1) function prototypes
(2) defines
(3) macros
the functions themselves should be written in the *.c file. |
Forum: C 8 Days Ago |
| Replies: 6 Views: 179 Re: I have few question i know you are asking about functions, but an important thing about static, is that when you scope a local variable as such, it will retain its value across repeated calls to the function where it is... |
Forum: C 8 Days Ago |
| Replies: 13 Views: 404 |
Forum: C 8 Days Ago |
| Replies: 2 Views: 112 |
Forum: C 8 Days Ago |
| Replies: 15 Views: 588 |
Forum: C 32 Days Ago |
| Replies: 12 Views: 639 Re: use of continue,break,return damn, dude. lighten up already. this place isnt for you to vent your frustrations on some hapless student for asking legitimate questions. Yeah, perhaps he framed his question a little oddly... |
Forum: C Jul 10th, 2008 |
| Replies: 12 Views: 639 Re: use of continue,break,return i was being somewhat facetious. hence the :P face
but the fact remains:
these people are first year programming students -- if even that.
they can join the ACM forums later.
. |
Forum: C Jul 10th, 2008 |
| Replies: 12 Views: 639 |
Forum: C Jul 9th, 2008 |
| Replies: 12 Views: 639 Re: use of continue,break,return ADAK is right, and i agree. But I also don't see a problem with giving brief, vague answers to brief, vague questions.
...
continue : stops execution within a repeatable block of code and... |
Forum: C Jul 6th, 2008 |
| Replies: 24 Views: 928 Re: Convert struct to short okay fine.
i've obviously missed something then, that you're doing somewhere, that gets rid of the extra byte.
good for you, im glad you got it working. |
Forum: C Jul 5th, 2008 |
| Replies: 7 Views: 538 Re: C in Vista NEVER
EVER
USE TURBO C
it's worthless and using it will turn you into a crappy programmer . |
Forum: C Jul 5th, 2008 |
| Replies: 24 Views: 928 Re: Convert struct to short last time Im going to post here:
it's IMPOSSIBLE for you to get the correct checksum if youve got the IP header spread over 21 bytes, like you do. it CANT be 20 bytes, if you've got the 4-bit... |
Forum: C Jul 5th, 2008 |
| Replies: 5 Views: 277 Re: characters of cards who knows? what little bit of code you posted makes no sense. you have no MAIN statement. i couldnt compile it if i wanted to. maybe if you post your code, we can see whats going on.
but if... |
Forum: C Jul 5th, 2008 |
| Replies: 24 Views: 928 Re: Convert struct to short we seem to be having a major disconnect here, with comprehension or something.
i'm not talking about "efficiency". I'm taking about your code being "just plain wrong"
because that is what your... |
Forum: C Jul 5th, 2008 |
| Replies: 2 Views: 305 |
Forum: C Jul 4th, 2008 |
| Replies: 13 Views: 4,956 Re: Write to hex, is it possible? the only thing painfully annoying, is reading a page of discussion, writing a reply, and then realizing its some 3-year-old thread from an OP who is long-gone, that was reactivated by some stupid... |