By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,335 Members | 2,718 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,335 IT Pros & Developers. It's quick & easy.

Returning a Char from a Double

P: n/a
G'day

I was wondering if someone can explain the concept of 'returning a Char
from a Double' . For example, I have the following code:

char getGrade(double mark) {
if (mark>= 85)
return ('A');
else if (mark >= 75)
return ('B');
else if (mark >= 65)
return ('C');
else if (mark >= 50)
return ('D');
return (mark);

When I try to complie it, I get warning: return to char from double.

Thanks

Greg

Apr 13 '06 #1
Share this Question
Share on Google+
29 Replies


P: n/a
The warning comes from the last statement "return(mark)".

What is your purpose? return (mark) is changed into return('E') ??

Apr 13 '06 #2

P: n/a
Gregc. said:
G'day

I was wondering if someone can explain the concept of 'returning a Char
from a Double' . For example, I have the following code:

char getGrade(double mark) {
The function is defined to return char, yes? So far so good.
if (mark>= 85)
return ('A');
If mark is greater than 85, you try to return 'A'. In fact, 'A' has int
type, but it's okay because we know the value of 'A' is representable as a
char, and a conversion will be supplied automatically.
else if (mark >= 75)
return ('B');
Same for 'B'...
else if (mark >= 65)
return ('C');
else if (mark >= 50)
return ('D');
....and 'C' and 'D'. But if mark < 50, none of the above applies, so we drop
down to the default case:
return (mark);
mark is a double - but this function is supposed to return char, not double.
When I try to complie it, I get warning: return to char from double.


What you need to do is assign a grade to marks that are < 50. I suggest
replacing the line with:

return 'E';

or, if you prefer:

return 'F'; /* Failed! Take the exam again in summer school... */

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Apr 13 '06 #3

P: n/a

da********@gmail.com wrote:
The warning comes from the last statement "return(mark)".

What is your purpose?

If the grade is 85% then A is printed

Apr 14 '06 #4

P: n/a
On 13 Apr 2006 16:40:57 -0700, "Gregc." <gr*********@bigpond.com>
wrote:
G'day

I was wondering if someone can explain the concept of 'returning a Char
from a Double' . For example, I have the following code:

char getGrade(double mark) {
declares getGrade as a function returning a char. the variable mark is
declared to be a double.

if (mark>= 85)
return ('A');
Here you return an int, but it will be within the range of a char.
else if (mark >= 75)
return ('B');
else if (mark >= 65)
return ('C');
else if (mark >= 50)
return ('D');
return (mark);
Here you return a double, returned as a char. That's why the warning.
In general, there's no guarantee that a double will be within the
legal range for a char.

If you write

return (char) mark;

you may eliminate the warning, because you're indicating to the
compiler that you did it on purpose, and presumably know what you're
doing. But it's not guaranteed.
When I try to complie it, I get warning: return to char from double.

Thanks

Greg


--
Al Balmer
Sun City, AZ
Apr 14 '06 #5

P: n/a
"Gregc." <gr*********@bigpond.com> writes:
I was wondering if someone can explain the concept of 'returning a Char
from a Double' . For example, I have the following code:

char getGrade(double mark) {
if (mark>= 85)
return ('A');
else if (mark >= 75)
return ('B');
else if (mark >= 65)
return ('C');
else if (mark >= 50)
return ('D');
return (mark);

When I try to complie it, I get warning: return to char from double.


It's something you don't want to do.

mark is of type double; getGrade returns a result of type char. For
example, getGrade(90.0) returns 'A', but getGrade(45.0) attempts to
return 45.0, which is not a value of type char.

As it happens, the value will be implicitly converted from double to
char; the result is character whose code is 45 ('-' in ASCII). The
compiler is clever enough to let you know that, though this is legal,
it's unlikely to be what you want.

Think about what value you want getGrade to return if it falls through
all the if statements.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Apr 14 '06 #6

P: n/a

Think about what value you want getGrade to return if it falls through
all the if statements.


If it falls through, then it will return a 'Fail Grade'

Apr 14 '06 #7

P: n/a
Gregc. wrote:

Think about what value you want getGrade to return if it falls through
all the if statements.


If it falls through, then it will return a 'Fail Grade'


then you should not return(mark), you should return('F').

Apr 14 '06 #8

P: n/a

sl*******@yahoo.com wrote:
Gregc. wrote:

Think about what value you want getGrade to return if it falls through
all the if statements.


If it falls through, then it will return a 'Fail Grade'


then you should not return(mark), you should return('F').


Given that I am trying to return a char, then in the printf statement I
would use %c, and getGrade because I am trying to return the function.
Am I correct in my logic?

Apr 14 '06 #9

P: n/a

Gregc. wrote:
sl*******@yahoo.com wrote:
Gregc. wrote:
>
> Think about what value you want getGrade to return if it falls through
> all the if statements.

If it falls through, then it will return a 'Fail Grade'


then you should not return(mark), you should return('F').


Given that I am trying to return a char, then in the printf statement I
would use %c, and getGrade because I am trying to return the function.
Am I correct in my logic?


Just use a return ('F') at end and you are right in using the getGrade
return type to display in printf using a %c.

Apr 14 '06 #10

P: n/a
On 13 Apr 2006 19:55:58 -0700, in comp.lang.c , "Gregc."
<gr*********@bigpond.com> wrote:

sl*******@yahoo.com wrote:
Gregc. wrote:
> >
> > Think about what value you want getGrade to return if it falls through
> > all the if statements.
>
> If it falls through, then it will return a 'Fail Grade'


then you should not return(mark), you should return('F').


Given that I am trying to return a char, then in the printf statement I
would use %c, and getGrade because I am trying to return the function.
Am I correct in my logic?


Yes, but it has nothing to do with your problem. You didn't return a
grade if mark was < 50%, you need to fix your algorithm.

Mark McIntyre
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Apr 14 '06 #11

P: n/a
mark is of type double; getGrade returns a result of type char. For
example, getGrade(90.0) returns 'A', but getGrade(45.0) attempts to
return 45.0, which is not a value of type char.


This may sound silly, but when I try to output the grade using a
printf("%c\n", getGrade) it comes up blank. Is this because the
getGrade function is looking at a number and not a character?

Greg

Apr 14 '06 #12

P: n/a
"Gregc." <gr*********@bigpond.com> writes:
mark is of type double; getGrade returns a result of type char. For
example, getGrade(90.0) returns 'A', but getGrade(45.0) attempts to
return 45.0, which is not a value of type char.

I wrote the above, but you snipped the attribution line, the one that
looks something like

Keith Thompson <ks***@mib.org> writes:

Please don't do that. Discussions are easier to follow if we can tell
who wrote what.
This may sound silly, but when I try to output the grade using a
printf("%c\n", getGrade) it comes up blank. Is this because the
getGrade function is looking at a number and not a character?


The printf call isn't the problem. The problem is a bug in your
getGrade function.

Once again, you've declared getGrade() to return a result of type
char, but you have a return statement, "return (mark);", in which you
attempt to return a value of type double.

Let's look at your function again:

| char getGrade(double mark) {
|
|
| if (mark>= 85)
| return ('A');
| else if (mark >= 75)
| return ('B');
| else if (mark >= 65)
| return ('C');
| else if (mark >= 50)
| return ('D');
|
|
| return (mark);
| }

The last return statement is doing something that's legal (because the
value of mark, which is of type double, will be implicitly converted
to type char), but that doesn't make any sense.

The easiest thing for me to do would be to give you the answer. I
know exactly how to fix your getGrade function so it will do what (I
presume) you want it to do. Instead, I'm trying to help you solve the
problem yourself.

Think about this: Under what circumstances will the "return (mark);"
statement be executed? In those circumstances, what is the right
thing to do? What value do you want to return from your function?

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Apr 14 '06 #13

P: n/a

Keith Thompson wrote:
"Gregc." <gr*********@bigpond.com> writes:
mark is of type double; getGrade returns a result of type char. For
example, getGrade(90.0) returns 'A', but getGrade(45.0) attempts to
return 45.0, which is not a value of type char.

I wrote the above, but you snipped the attribution line, the one that
looks something like

Keith Thompson <ks***@mib.org> writes:

Please don't do that. Discussions are easier to follow if we can tell
who wrote what.

Sorry about that.
This may sound silly, but when I try to output the grade using a
printf("%c\n", getGrade) it comes up blank. Is this because the
getGrade function is looking at a number and not a character?
The printf call isn't the problem. The problem is a bug in your
getGrade function.

Once again, you've declared getGrade() to return a result of type
char, but you have a return statement, "return (mark);", in which you
attempt to return a value of type double.

Let's look at your function again:

| char getGrade(double mark) {
|
|
| if (mark>= 85)
| return ('A');
| else if (mark >= 75)
| return ('B');
| else if (mark >= 65)
| return ('C');
| else if (mark >= 50)
| return ('D');
|
|
| return (mark);
| }

The last return statement is doing something that's legal (because the
value of mark, which is of type double, will be implicitly converted
to type char), but that doesn't make any sense.

The easiest thing for me to do would be to give you the answer. I
know exactly how to fix your getGrade function so it will do what (I
presume) you want it to do. Instead, I'm trying to help you solve the
problem yourself.

Think about this: Under what circumstances will the "return (mark);"
statement be executed? In those circumstances, what is the right
thing to do? What value do you want to return from your function?

I appreciate you not giving me the answer. What I want to return is a
char ie A, B etc, only if the student has met the criteria. Someting
like return getGrade (char).

G

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.


Apr 15 '06 #14

P: n/a
"Gregc." <gr*********@bigpond.com> writes:
Keith Thompson wrote:

[...]
Let's look at your function again:

| char getGrade(double mark) {
|
|
| if (mark>= 85)
| return ('A');
| else if (mark >= 75)
| return ('B');
| else if (mark >= 65)
| return ('C');
| else if (mark >= 50)
| return ('D');
|
|
| return (mark);
| }

The last return statement is doing something that's legal (because the
value of mark, which is of type double, will be implicitly converted
to type char), but that doesn't make any sense.

The easiest thing for me to do would be to give you the answer. I
know exactly how to fix your getGrade function so it will do what (I
presume) you want it to do. Instead, I'm trying to help you solve the
problem yourself.

Think about this: Under what circumstances will the "return (mark);"
statement be executed? In those circumstances, what is the right
thing to do? What value do you want to return from your function?

I appreciate you not giving me the answer. What I want to return is a
char ie A, B etc, only if the student has met the criteria. Someting
like return getGrade (char).


And what do you want to return if the student *hasn't* met the
criteria?

The function always has to return something, and what it returns
always has to be of type char.

More specifically, what char value should getGrade return when
mark < 50?

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Apr 15 '06 #15

P: n/a

Keith Thompson wrote:
"Gregc." <gr*********@bigpond.com> writes:
Keith Thompson wrote: [...]
Let's look at your function again:

| char getGrade(double mark) {
|
|
| if (mark>= 85)
| return ('A');
| else if (mark >= 75)
| return ('B');
| else if (mark >= 65)
| return ('C');
| else if (mark >= 50)
| return ('D');
|
|
| return (mark);
| }

The last return statement is doing something that's legal (because the
value of mark, which is of type double, will be implicitly converted
to type char), but that doesn't make any sense.

The easiest thing for me to do would be to give you the answer. I
know exactly how to fix your getGrade function so it will do what (I
presume) you want it to do. Instead, I'm trying to help you solve the
problem yourself.

Think about this: Under what circumstances will the "return (mark);"
statement be executed? In those circumstances, what is the right
thing to do? What value do you want to return from your function?

I appreciate you not giving me the answer. What I want to return is a
char ie A, B etc, only if the student has met the criteria. Someting
like return getGrade (char).


And what do you want to return if the student *hasn't* met the
criteria?

The function always has to return something, and what it returns
always has to be of type char.

More specifically, what char value should getGrade return when
mark < 50?


If the student doesn't meet the criteria, then a F would be returned.
So instead of a return(mark), there should be a return (F);

and another return to convert the double into a char.
G
--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.


Apr 15 '06 #16

P: n/a
Gregc. opined:

Keith Thompson wrote:
"Gregc." <gr*********@bigpond.com> writes:
> Keith Thompson wrote: [...]
>> Let's look at your function again:
>>
>> | char getGrade(double mark) {
>> |
>> |
>> | if (mark>= 85)
>> | return ('A');
>> | else if (mark >= 75)
>> | return ('B');
>> | else if (mark >= 65)
>> | return ('C');
>> | else if (mark >= 50)
>> | return ('D');
>> |
>> |
>> | return (mark);
>> | }
>>
>> The last return statement is doing something that's legal
>> (because the value of mark, which is of type double, will be
>> implicitly converted to type char), but that doesn't make any
>> sense.
>>
>> The easiest thing for me to do would be to give you the answer.
>> I know exactly how to fix your getGrade function so it will do
>> what (I
>> presume) you want it to do. Instead, I'm trying to help you
>> solve the problem yourself.
>>
>> Think about this: Under what circumstances will the "return
>> (mark);"
>> statement be executed? In those circumstances, what is the right
>> thing to do? What value do you want to return from your
>> function?
>>
> I appreciate you not giving me the answer. What I want to return
> is a
> char ie A, B etc, only if the student has met the criteria.
> Someting like return getGrade (char).


And what do you want to return if the student *hasn't* met the
criteria?

The function always has to return something, and what it returns
always has to be of type char.

More specifically, what char value should getGrade return when
mark < 50?


If the student doesn't meet the criteria, then a F would be returned.
So instead of a return(mark), there should be a return (F);


Correct.
and another return to convert the double into a char.


But why this, when you've already done the conversion?

If you've already exhausted all possible execution paths, it's
redundant, confusing, and potential source of maintenance bugs.

If you're algorithm is faulty (i.e. there's more execution paths than
you provided for), it will get executed and you end up with exactly
the same problem as earlier.

There is a place for a "this should never happen" type constructs, but
you'd still want to return something sensible (especially as in these
cases input values are probably weird in the first place). In your
case, something sensible is a char, not included in the set of grade
indicators. You can then test for this in the caller, inform user of
the problem, and abort, for example.

PS
Don't quote signatures, unless you're commenting on them (the lot after
"-- ").

--
Sigh. I like to think it's just the Linux people who want to be on
the "leading edge" so bad they walk right off the precipice.
(Craig E. Groeschel)

<http://clc-wiki.net/wiki/Introduction_to_comp.lang.c>

Apr 15 '06 #17

P: n/a
Thanks for your help gentlemen.

Apr 15 '06 #18

P: n/a
"Gregc." wrote:
Keith Thompson wrote:
"Gregc." <gr*********@bigpond.com> writes:
Keith Thompson wrote:

[...]
Let's look at your function again:

| char getGrade(double mark) {
|
| if (mark>= 85)
| return ('A');
| else if (mark >= 75)
| return ('B');
| else if (mark >= 65)
| return ('C');
| else if (mark >= 50)
| return ('D');
|
| return (mark);
| }

The last return statement is doing something that's legal (because the
value of mark, which is of type double, will be implicitly converted
to type char), but that doesn't make any sense.

The easiest thing for me to do would be to give you the answer. I
know exactly how to fix your getGrade function so it will do what (I
presume) you want it to do. Instead, I'm trying to help you solve the
problem yourself.

Think about this: Under what circumstances will the "return (mark);"
statement be executed? In those circumstances, what is the right
thing to do? What value do you want to return from your function?

I appreciate you not giving me the answer. What I want to return is a
char ie A, B etc, only if the student has met the criteria. Someting
like return getGrade (char).


And what do you want to return if the student *hasn't* met the
criteria?

The function always has to return something, and what it returns
always has to be of type char.

More specifically, what char value should getGrade return when
mark < 50?


If the student doesn't meet the criteria, then a F would be returned.
So instead of a return(mark), there should be a return (F);

and another return to convert the double into a char.


Lets try the power of a little reformatting, which means pushing
around the blanks and line endings, without altering the order of
things. Here is your original function, reformatted:

char getGrade(double mark) {
if (mark >= 85) return ('A');
else if (mark >= 75) return ('B');
else if (mark >= 65) return ('C');
else if (mark >= 50) return ('D');
/* else */ return (mark);
}

I also added a baby comment before the "return (mark)", which may
clear things up. Does the symmettry give you a clue?

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>

Apr 15 '06 #19

P: n/a
On 14 Apr 2006 23:12:32 -0700
"Gregc." <gr*********@bigpond.com> wrote:

<snip>
I appreciate you not giving me the answer. What I want to return is a
char ie A, B etc, only if the student has met the criteria. Someting
like return getGrade (char).

G


If mark < 50, don't print anything, is that what you want? Maybe
this will help, maybe not:

Don't think of C's return mechanism as a parcel which can have
something in it or not. Computer memory can be compared to a row
of combination padlocks, a memory position always "contain" something.
The return statement change the value of a byte or bytes in memory,
the caller read that place.

You can choose to leave whatever value is in the byte (it can be
anything, even 'A' or 'B') unchanged, by not executing a return.
But you can't return nothing.

Magnus
Apr 15 '06 #20

P: n/a
On 15 Apr 2006 00:14:11 -0700, in comp.lang.c , "Gregc."
<gr*********@bigpond.com> wrote:
If the student doesn't meet the criteria, then a F would be returned.
So instead of a return(mark), there should be a return (F);
okay, thats what you need.
and another return to convert the double into a char.


What ?

You have a statement
return 'F';

If your code reaches this point, the function returns *at once*. No
more code is executed.

I don't understand why you think you need to convert the double into
anything. Your function returns a char, A, B... F. Why do you want to
convert 'mark' into anything?
Mark McIntyre
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Apr 15 '06 #21

P: n/a
"Gregc." <gr*********@bigpond.com> writes:
Keith Thompson wrote:
"Gregc." <gr*********@bigpond.com> writes:
> Keith Thompson wrote: [...]
>> Let's look at your function again:
>>
>> | char getGrade(double mark) {
>> |
>> |
>> | if (mark>= 85)
>> | return ('A');
>> | else if (mark >= 75)
>> | return ('B');
>> | else if (mark >= 65)
>> | return ('C');
>> | else if (mark >= 50)
>> | return ('D');
>> |
>> |
>> | return (mark);
>> | }
>>
>> The last return statement is doing something that's legal (because the
>> value of mark, which is of type double, will be implicitly converted
>> to type char), but that doesn't make any sense.
>>
>> The easiest thing for me to do would be to give you the answer. I
>> know exactly how to fix your getGrade function so it will do what (I
>> presume) you want it to do. Instead, I'm trying to help you solve the
>> problem yourself.
>>
>> Think about this: Under what circumstances will the "return (mark);"
>> statement be executed? In those circumstances, what is the right
>> thing to do? What value do you want to return from your function?
>>
> I appreciate you not giving me the answer. What I want to return is a
> char ie A, B etc, only if the student has met the criteria. Someting
> like return getGrade (char).


And what do you want to return if the student *hasn't* met the
criteria?

The function always has to return something, and what it returns
always has to be of type char.

More specifically, what char value should getGrade return when
mark < 50?


If the student doesn't meet the criteria, then a F would be returned.
So instead of a return(mark), there should be a return (F);


Getting very close.
and another return to convert the double into a char.


I don't know what that's supposed to mean. Why do you think a
conversion is necessary?

It's much simpler than you think it is.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Apr 15 '06 #22

P: n/a
Another question, and I guess this is way off my original topic, but if
replaced the char ie A with a const char, then in theory there should
be no difference. Because when the mark is within a particular range,
it look up the const char and output its value. Is my thinking
correct?

Again, thanks for your help.

Greg

Apr 15 '06 #23

P: n/a
"Gregc." <gr*********@bigpond.com> writes:
Another question, and I guess this is way off my original topic, but if
replaced the char ie A with a const char, then in theory there should
be no difference. Because when the mark is within a particular range,
it look up the const char and output its value. Is my thinking
correct?


I have no idea. Without context, I can't tell what you're asking; no
difference between what and what?

If you mean something like:

return 'A';

vs.

const char top_grade = 'A';
...
return top_grade;

there's no real difference.

Read <http://cfaj.freeshell.org/google/>. *Always* provide context
when you post a followup.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Apr 15 '06 #24

P: n/a

Keith Thompson wrote:
"Gregc." <gr*********@bigpond.com> writes:
Another question, and I guess this is way off my original topic, but if
replaced the char ie A with a const char, then in theory there should
be no difference. Because when the mark is within a particular range,
it look up the const char and output its value. Is my thinking
correct?
I have no idea. Without context, I can't tell what you're asking; no
difference between what and what?

If you mean something like:

return 'A';

vs.

const char top_grade = 'A';
...
return top_grade;

there's no real difference.

That's what I thought
Read <http://cfaj.freeshell.org/google/>. *Always* provide context
when you post a followup.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.


Apr 15 '06 #25

P: n/a
"Gregc." <gr*********@bigpond.com> writes:
Keith Thompson wrote: [...] That's what I thought
Read <http://cfaj.freeshell.org/google/>. *Always* provide context
when you post a followup.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.


And *again*, please take the time to trim quoted material from
followups. Quote enough so your followup makes sense on its own, but
delete anything that isn't relevant. In particular, don't quote
signatures unless you're commenting on them. (I think you've been
told this before.)

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Apr 16 '06 #26

P: n/a
> And *again*, please take the time to trim quoted material from
followups. Quote enough so your followup makes sense on its own, but
delete anything that isn't relevant. In particular, don't quote
signatures unless you're commenting on them. (I think you've been
told this before.)

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>


I will. Thankyou for your help.

Greg

Apr 16 '06 #27

P: n/a
"Gregc." wrote:
And *again*, please take the time to trim quoted material from
followups. Quote enough so your followup makes sense on its own, but
delete anything that isn't relevant. In particular, don't quote
signatures unless you're commenting on them. (I think you've been
told this before.)

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>


I will. Thankyou for your help.


Then why did you fail to trim the Keith's sig from your reply?

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>

Apr 16 '06 #28

P: n/a
Gregc. wrote:
And again, please take the time to trim quoted material from
followups. Quote enough so your followup makes sense on its own,
but delete anything that isn't relevant. In particular, don't quote
signatures unless you're commenting on them. (I think you've been
told this before.)

--
Keith Thompson (The_Other_Keith) ks***@mib.org
<http://www.ghoti.net/~kst>


I will. Thankyou for your help.


Are you sure you know what a signature is? You left it in again. It's
that part from the -- on down.


Brian

Apr 16 '06 #29

P: n/a
"Gregc." <gr*********@bigpond.com> writes:
And *again*, please take the time to trim quoted material from
followups. Quote enough so your followup makes sense on its own, but
delete anything that isn't relevant. In particular, don't quote
signatures unless you're commenting on them. (I think you've been
told this before.)

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>


I will. Thankyou for your help.


The signature is everything following the "-- " line; you've again
quoted part of it. I'm guessing you did that to acknowledge that I
had written the material you quoted. The correct way to do that is to
leave the attribution line in place. For example, the line above:

"Gregc." <gr*********@bigpond.com> writes:

is an attribution line.

There should have been an attribution line with my name *above* the
quoted text.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Apr 16 '06 #30

This discussion thread is closed

Replies have been disabled for this discussion.