economizing with functions that do the same thing

Y

Your Uncle

Ian Collins said:
Dan might have been referring to functions you would have to pass along
with the type to do whatever the action is.

For example in you print_a_something case, you would have to pass in the
something and a function to return the the appropriate format string.
If the something was more complex than a POD, a function to do the
printing would be required.
He's thinking down the hall. Since Keith Thompson shit all over my thread,
and no one wants to cross him, I think I'm looking for the exit sign. I use
aliases to protect both the innocent and not-so-very. This was a big issue
for me until I satisfied the statue in <limits.h> . My good friend Carl is
my attorney bernie, with whose friends I'm impressed. My brother is
Thunderfist, a former federal agent whose backyard is San Diego (diligence).
Since my c endeavors have ground to a halt at least for lack of comment and
a sore clickerfinger, I'll gear up for next month for when he comes to town
to lose a basketball game and query how to boost my projects. Black Ford
 
K

Keith Thompson

Your Uncle said:
He's thinking down the hall. Since Keith Thompson shit all over my thread,
and no one wants to cross him, I think I'm looking for the exit sign. I use
aliases to protect both the innocent and not-so-very. This was a big issue
for me until I satisfied the statue in <limits.h> . My good friend Carl is
my attorney bernie, with whose friends I'm impressed. My brother is
Thunderfist, a former federal agent whose backyard is San Diego (diligence).
Since my c endeavors have ground to a halt at least for lack of comment and
a sore clickerfinger, I'll gear up for next month for when he comes to town
to lose a basketball game and query how to boost my projects. Black Ford

I'm responding to this only because you mentioned my name.

I have no clue what you're talking about. Fortunately, I don't care.

This is not your thread. The fact that you posted the original
article doesn't give you any kind of ownership. I don't know what you
think I did to this thread. If you'd care to explain without being
incoherent or offensive, I'll read what you have to say about it. (If
you're referring to the error I made in listing someone else's name as
one of your pseudonyms, I've already acknowledged that, and you
weren't the victim of my mistake anyway.)

I have no idea why you're telling us about your friend Carl or your
brother. We discuss the C programming language here. If you insist
on talking about whatever the hell you're talking about, I encourage
you to do it elsewhere. Nobody else cares.

I've already explained why your use of multiple pseudonyms is a
problem, and I have nothing to add to that.

The exit sign is easy to find. If you want to leave, all you have to
do is stop posting.

I doubt that I'll bother responding to you again.
 
B

Barry Schwarz

I appreciate your Einsatz and never forget a kindness. I've hit day's end
with my compiler:
/* Text1.c */
# include "Text2.h"
#define MILL (.001)
int fu(int, int);
int main(void)
{
unsigned long g = 15, un_long_dummy, r = 0, s = 0;
int m = 3, n = 17000, mean_less_one, t;
srand(time(NULL));
mean_less_one = (n - m) / 2;
printf("mu is %d\n" , mean_less_one);

for (un_long_dummy = 0; un_long_dummy < g; ++ un_long_dummy)
{
t = fu(m, n);
/* printf("tja"); */
if (t <= mean_less_one) ++ r;
else ++ s;
}
printf("r is %ul while s is %ul\n", r, s);
return 0;
}
int fu(int m, int n)
{
int t;
t = rand();
/* printf("tja"); */
return t;
}
/* end .c */
I don't see why r and s do not add to g here. I could talk about it but it
would only reveal the thickheadedness that motivates the question. I know
that there was some talk about unsigned longs and zero. I would certainly
hope that Mr. Ritchie had the foresight to include the additive identity of
the ring of integers in the datatype. So, I'm forced to believe that I'm
cross-eyed. gruss, furunculus

What do you think %ul means? What is the correct format conversion
for unsigned long? This probably wouldn't have confused you if ell
didn't look so much like one.


Remove del for email
 
D

Default User

Richard said:
Keith Thompson said:



I gave up on him some days ago.

I've come to that conclusion as well, all his various personalities are
heading for the bozo bin.




Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,184
Messages
2,570,976
Members
47,536
Latest member
MistyLough

Latest Threads

Top