473,394 Members | 1,709 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

PLEASE HELP ME ! PLEASE

I HAVE SOME SERIOUS PROBLEM , HOW TO MAKE A PROGRAM IN C
Q1:
Write a program using malloc function. In which you take input from
user and allocate memory equal to square of this number. Which
multiply numbers and draw a table in the following format?

Hint: User enters 3 then program allocates equal to 9 integer
memories.

Output:1

Enter a single digit number:
2
The multiplication table of 2 is:
1 2
----------------
1| 1 2
2| 2 4

Output:2

Enter a single digit number:
4
The multiplication table of 4 is:
1 2 3 4
--------------------------------
1| 1 2 3 4
2| 2 4 6 8
3| 3 6 9 12
4| 4 8 12 16
Q:2
Write a macros in which swap two number without using 3rd variable and
then call
Macro in main function.

Hint: a=4, b=2 after swapping a=2, b=4.
KINDLY HELP ME TO MADE THIS PRGRAM GUIDE ME OR GIVE ME CODE OF THE
ABOVE PROBLEM

Jun 5 '07 #1
62 2642
"vubaboota" <vu*******@gmail.comschrieb im Newsbeitrag
news:11*********************@n4g2000hsb.googlegrou ps.com...
>I HAVE SOME SERIOUS PROBLEM , HOW TO MAKE A PROGRAM IN C
Please don't shout at us. (hint: a sentence in all capitals is considered
shouteing in usenet)
Seems you had a serious problem in the classroom, paying attention to your
teacher.
Q1:
Write a program using malloc function. In which you take input from
user and allocate memory equal to square of this number. Which
multiply numbers and draw a table in the following format?

Hint: User enters 3 then program allocates equal to 9 integer
memories.

Output:1

Enter a single digit number:
2
The multiplication table of 2 is:
1 2
----------------
1| 1 2
2| 2 4

Output:2

Enter a single digit number:
4
The multiplication table of 4 is:
1 2 3 4
--------------------------------
1| 1 2 3 4
2| 2 4 6 8
3| 3 6 9 12
4| 4 8 12 16
Q:2
Write a macros in which swap two number without using 3rd variable and
then call
Macro in main function.

Hint: a=4, b=2 after swapping a=2, b=4.
KINDLY HELP ME TO MADE THIS PRGRAM GUIDE ME OR GIVE ME CODE OF THE
ABOVE PROBLEM
Try doing your homework yourself. Come back here if you have problems and
show what you've done so far.

Bye, Jojo
Jun 5 '07 #2
On Jun 5, 1:44 am, vubaboota <vubabo...@gmail.comwrote:
I HAVE SOME SERIOUS PROBLEM , HOW TO MAKE A PROGRAM IN C
Q1:
Write a program using malloc function. In which you take input from
user and allocate memory equal to square of this number. Which
multiply numbers and draw a table in the following format?

Hint: User enters 3 then program allocates equal to 9 integer
memories.

Output:1

Enter a single digit number:
2
The multiplication table of 2 is:
1 2
----------------
1| 1 2
2| 2 4

Output:2

Enter a single digit number:
4
The multiplication table of 4 is:
1 2 3 4
--------------------------------
1| 1 2 3 4
2| 2 4 6 8
3| 3 6 9 12
4| 4 8 12 16

Q:2
Write a macros in which swap two number without using 3rd variable and
then call
Macro in main function.

Hint: a=4, b=2 after swapping a=2, b=4.

KINDLY HELP ME TO MADE THIS PRGRAM GUIDE ME OR GIVE ME CODE OF THE
ABOVE PROBLEM
These problems seem relatively well described. Is there something
you're having trouble understanding? At least start on these problems,
yourself. That way, when you run into trouble, you can ask specific
questions and get useful answers. I wouldn't count on anybody doing
your homework for you.

Jun 5 '07 #3
vubaboota <vu*******@gmail.comwrites:
I HAVE SOME SERIOUS PROBLEM
Yes, you do. Do your own homework.

--
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."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jun 5 '07 #4
vubaboota wrote, On 05/06/07 07:44:
I HAVE SOME SERIOUS PROBLEM , HOW TO MAKE A PROGRAM IN C
Q1:
<snip>
KINDLY HELP ME TO MADE THIS PRGRAM GUIDE ME OR GIVE ME CODE OF THE
ABOVE PROBLEM
The best help anyone can give you is to tell you to attempt to do your
own homework. Well, that and DON'T SHOUT!
--
Flash Gordon
Jun 5 '07 #5
//swapping

#include"stdio.h"
int main()
{
int a,b;
printf("Enter values of a & b : ");
scanf("%d%d",&a,&b);
a=a+b; //if a=4,b=2 now a=a+b=6
b=a-b; //now b=a-b=6-2=4
a=a-b;//now a=6-4=2
printf("After swapping\n a=%d \t b=%d",a,b);
return 0;
}

//table (allocate memory by yourself!)
#include"stdio.h"
void main()
{
int j=1,k=1,l=1;
int a;
printf("Enter a single digit number: ");
scanf("%d",&a);
printf("\nThe multiplication table of %d is:\n",a);
//formatting
for(l=1;l<=a;l++)
printf("\t%d",l);
printf("\n");
for(l=1;l<=8*a;l++)
printf("-");
printf("\n");
//result
while(j<=a){
printf("%d|\t",k); //formatting
for(int i=1;i<=a;i++)
printf("%d\t",i*j);
printf("\n");k++;
j++;}
}

Jun 5 '07 #6
On 5 Jun, 07:44, vubaboota <vubabo...@gmail.comwrote:
I HAVE SOME SERIOUS PROBLEM , HOW TO MAKE A PROGRAM IN C
First point - don't type in CAPITALS. It is taken as SHOUTING and is
impolite. Many people will choose to ignore your post, or killfile you
(ensure that they don't see anything your post again).

Second point - this newsgroup is not "comp.lang.c.do.my.homework". We
are not here to make up for your lack of attention in class, your
unwillingness to approach your teacher for assistance or your complete
incompetence. If you are learning, you have to make some effort
yourself - write some initial attempts at solving the problems set,
and then you can, politely, ask the group for assistance when you
encounter difficulties with what _you_ have written.
Q1:
Write a program using malloc function. In which you take input from
user and allocate memory equal to square of this number. Which
multiply numbers and draw a table in the following format?
Odd english in the question, but still it's fairly clear what is
required.

How would you get input from the user? (Hint: I'd recommend not using
scanf()).
How do you convert the input to a numeric?
How would you square the number?

Producing the output is trivial, surely. A loop to do the headings,
followed by a loop, with a nested loop for each row.

What have you tried? What problem did you encounter?
>
Hint: User enters 3 then program allocates equal to 9 integer
memories.

Output:1

Enter a single digit number:
2
The multiplication table of 2 is:
1 2
----------------
1| 1 2
2| 2 4

Output:2

Enter a single digit number:
4
The multiplication table of 4 is:
1 2 3 4
--------------------------------
1| 1 2 3 4
2| 2 4 6 8
3| 3 6 9 12
4| 4 8 12 16

Q:2
Write a macros in which swap two number without using 3rd variable and
then call
Macro in main function.

Hint: a=4, b=2 after swapping a=2, b=4.
This was recently discussed in the group - a Google search would find
the discussion. It may also be discussed in the FAQ (Frequently Asked
Questions) at c-faq.com - it's so completely pointless and irrelevant
a task to what I do, that I haven't looked. I seem to recall the trick
involves XOR and I also seem to recall that there are shortcomings to
it, but as I say, I haven't spent a lot of time or energy on looking
into it.

Jun 5 '07 #7
Umesh wrote:
int a,b;
a=a+b; //if a=4,b=2 now a=a+b=6
b=a-b; //now b=a-b=6-2=4
a=a-b;//now a=6-4=2
Pointless pointless ungeneralisable pointless trickery, with the nice
possibility for undefined behaviour pointlessly thrown in for "free".

Now you've seen it, (a) never use it [1], (b) work out three ways why
it's a bad idea, (c) never use it.

[1] Unless there are utterly overwhelming reasons why you must; if there
ever are, come back here & tell us about them.

--
Is it a bird? It is a plane? No, it's: http://hpl.hp.com/conferences/juc2007/
WARNING. Various parts of this product may be more than one billion years old.

Hewlett-Packard Limited registered office: Cain Road, Bracknell,
registered no: 690597 England Berks RG12 1HN

Jun 5 '07 #8
On Jun 5, 1:17 am, Umesh <fraternitydispo...@gmail.comwrote:
//swapping

#include"stdio.h"
int main()
{
int a,b;
printf("Enter values of a & b : ");
scanf("%d%d",&a,&b);
a=a+b; //if a=4,b=2 now a=a+b=6
b=a-b; //now b=a-b=6-2=4
a=a-b;//now a=6-4=2
printf("After swapping\n a=%d \t b=%d",a,b);
return 0;

}
a^=b^=a; // could be still better than 3 statements.

But anyway Mr Umesh don't spoon feed askers. Don't think that we don't
know the answer, all are denying the answer to make these lazy asker
self-dependents.

Bye
Guru Jois
Jun 5 '07 #9
Umesh wrote:
//swapping

#include"stdio.h"
^^^^^^^^^
Unless you have your own private version of stdio.h, you should use the
standard header <stdio.h>.
int main()
{
int a,b;
printf("Enter values of a & b : ");
scanf("%d%d",&a,&b);
a=a+b; //if a=4,b=2 now a=a+b=6
// style comments in posted code is a bad idea. // style comments for
any pre-C99 compiler are just plain wrong.

This is very, very bad.
1) Suppose a+b INT_MAX. What do you think your code will do?
2) The OP wrote "Write a macros in which swap two number without using
3rd variable". What makes you think all numbers are ints?
3) This is not a macro.

The worst thing, of course, is not your program but the inane question.
The correct answer is "don't do that; don't even try."
b=a-b; //now b=a-b=6-2=4
a=a-b;//now a=6-4=2
printf("After swapping\n a=%d \t b=%d",a,b);
return 0;
}

//table (allocate memory by yourself!)
That's fair. Leave something for him to do himself.
#include"stdio.h"
^^^^^^^^^
see above
void main()
^^^^
This is silly. main returns an int in a hosted environment. There has
never been a standard for C in which main was defined as returning void.
{
int j=1,k=1,l=1;
int a;
printf("Enter a single digit number: ");
scanf("%d",&a);
Quite apart from the highly vulnerable form of input, with no error
checking, the above needs a fflush(stdout); after the prompt. I/O on
stdin and stdout need not be synchronous.

Note that a is not checked for being a single-digit number.
printf("\nThe multiplication table of %d is:\n",a);
//formatting
for(l=1;l<=a;l++)
printf("\t%d",l);
^^
*Never* use '\t' in output designed to be read by humans. Display
devices can interpret '\t' is widely differing ways and you have no idea
when you are writing your program what '\t' will end up as on output.
printf("\n");
for(l=1;l<=8*a;l++)
^^
You pulled that '8' out of empty air. You have no reason to expect
that 8 is an appropriate choice.
printf("-");
printf("\n");
//result
while(j<=a){
Don't rely on the initialization at the top of the block here. The
for(;;) construct is a much better approach.
printf("%d|\t",k); //formatting
^^
'k' is a superfluous variable. There is no information associated
with k not already present in the variable 'j'.
for(int i=1;i<=a;i++)
^^^
This is illegal for pre-C99 compilers. For C99 compilers, it creates
a needless confusion by shadowing the already declared 'i' with block scope.
printf("%d\t",i*j);
printf("\n");k++;
j++;}
}
To the original poster: If you turn in "Umesh"'s code, you will get the
grade you deserve. You will not like it.

Jun 5 '07 #10
Guru Jois wrote:
a^=b^=a; // could be still better than 3 statements.
No, it is horrid. The OP poster asked about swapping two number [sic].
The '^' operator requires operands of an integer type. And that's not
all that's wrong with it. This question has been beaten to death
before. If you really are committed to the silly XOR trick, check the
FAQ and the newsgroup archives to find out why you shouldn't be. You
might also find out why, even when the silly XOR trick works, writing it
as a single statement is a bad idea.
Jun 5 '07 #11
Martin Ambuhl <ma*****@earthlink.netwrites:
Guru Jois wrote:
> a^=b^=a; // could be still better than 3 statements.

No, it is horrid. The OP poster asked about swapping two number
[sic]. The '^' operator requires operands of an integer type. And
Don't be so ridiculous. By your rationale then the numbers to be swapped
could be different types and thus unswappable. At times it pays to maybe
consider the context the questions are asked in and give a cautious
reply along the lines of ...

"assuming we are talking about unsigned integers then one way might be ...."
that's not all that's wrong with it. This question has been beaten to
death before. If you really are committed to the silly XOR trick,
check the FAQ and the newsgroup archives to find out why you shouldn't
be. You might also find out why, even when the silly XOR trick works,
writing it as a single statement is a bad idea.
Students who come here asking these type of questions are rarely in the
position to slap their lecturers.
Jun 5 '07 #12
"Joachim Schmitz" <no*********@schmitz-digital.dewrites:
"vubaboota" <vu*******@gmail.comschrieb im Newsbeitrag
news:11*********************@n4g2000hsb.googlegrou ps.com...
>>I HAVE SOME SERIOUS PROBLEM , HOW TO MAKE A PROGRAM IN C
Please don't shout at us. (hint: a sentence in all capitals is considered
shouteing in usenet)
Seems you had a serious problem in the classroom, paying attention to your
teacher.
Is this a new record?

14 posts.

9 of them are discourteous warnings about posting style, homework and
things being off topic.
Jun 5 '07 #13
"Richard" <rg****@gmail.comschrieb im Newsbeitrag
news:87************@gmail.com...
"Joachim Schmitz" <no*********@schmitz-digital.dewrites:
>"vubaboota" <vu*******@gmail.comschrieb im Newsbeitrag
news:11*********************@n4g2000hsb.googlegro ups.com...
>>>I HAVE SOME SERIOUS PROBLEM , HOW TO MAKE A PROGRAM IN C
Please don't shout at us. (hint: a sentence in all capitals is considered
shouteing in usenet)
Seems you had a serious problem in the classroom, paying attention to
your
teacher.

Is this a new record?

14 posts.

9 of them are discourteous warnings about posting style, homework and
things being off topic.
Where have I been discourteous?
My answer was the first (according to the timestapms I can see), so why are
you apparently atacking me for the # of posts?
Jun 5 '07 #14
In article <87************@gmail.com>, Richard <rg****@gmail.comwrites
>"Joachim Schmitz" <no*********@schmitz-digital.dewrites:
>"vubaboota" <vu*******@gmail.comschrieb im Newsbeitrag
news:11*********************@n4g2000hsb.googlegro ups.com...
>>>I HAVE SOME SERIOUS PROBLEM , HOW TO MAKE A PROGRAM IN C
Please don't shout at us. (hint: a sentence in all capitals is considered
shouteing in usenet)
Seems you had a serious problem in the classroom, paying attention to your
teacher.

Is this a new record?
No
>14 posts.
9 of them are discourteous warnings about posting style, homework and
things being off topic.
What has happened is we are getting far more posts of the "PLS DO MY
HOMEWORK URGENT" type.

These are clearly from people that use this NG as a start point without
reading any other posts here or doing an online search first.

Their lack of effort is therefore rewarded in kind.
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Jun 5 '07 #15
In article <5c*************@mid.individual.net>, Martin Ambuhl
<ma*****@earthlink.netwrites
>Umesh wrote:
>//swapping
#include"stdio.h"
^^^^^^^^^
Unless you have your own private version of stdio.h, you should use the
standard header <stdio.h>.
The whole point of this code is that if the student uses it without
understanding it they will get spotted as a CHEAT
>To the original poster: If you turn in "Umesh"'s code, you will get
the grade you deserve. You will not like it.
Correct..... If they want to cheat they have to take the consequences.
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Jun 5 '07 #16
"Joachim Schmitz" <no*********@schmitz-digital.dewrites:
"Richard" <rg****@gmail.comschrieb im Newsbeitrag
news:87************@gmail.com...
>"Joachim Schmitz" <no*********@schmitz-digital.dewrites:
>>"vubaboota" <vu*******@gmail.comschrieb im Newsbeitrag
news:11*********************@n4g2000hsb.googlegr oups.com...
I HAVE SOME SERIOUS PROBLEM , HOW TO MAKE A PROGRAM IN C
Please don't shout at us. (hint: a sentence in all capitals is considered
shouteing in usenet)
Seems you had a serious problem in the classroom, paying attention to
your
teacher.

Is this a new record?

14 posts.

9 of them are discourteous warnings about posting style, homework and
things being off topic.
Where have I been discourteous?
My answer was the first (according to the timestapms I can see), so why are
you apparently atacking me for the # of posts?
Where did I attack you?

And personally, I think (and I quote)

"Seems you had a serious problem in the classroom, paying attention to
your teacher."

Is pretty discourteous.
Jun 5 '07 #17
Chris Hills <ch***@phaedsys.orgwrites:
In article <87************@gmail.com>, Richard <rg****@gmail.comwrites
>>"Joachim Schmitz" <no*********@schmitz-digital.dewrites:
>>"vubaboota" <vu*******@gmail.comschrieb im Newsbeitrag
news:11*********************@n4g2000hsb.googlegr oups.com...
I HAVE SOME SERIOUS PROBLEM , HOW TO MAKE A PROGRAM IN C
Please don't shout at us. (hint: a sentence in all capitals is considered
shouteing in usenet)
Seems you had a serious problem in the classroom, paying attention to your
teacher.

Is this a new record?

No
>>14 posts.
9 of them are discourteous warnings about posting style, homework and
things being off topic.

What has happened is we are getting far more posts of the "PLS DO MY
HOMEWORK URGENT" type.
The why dont "we" agree that only ONE reply is enough. Why is there the
constant feeding frenzy. Leave it alone to see if someone else replies
or ignore it.
>
These are clearly from people that use this NG as a start point
without reading any other posts here or doing an online search
first.

Their lack of effort is therefore rewarded in kind.
--
Jun 5 '07 #18
On Jun 5, 12:04 pm, Richard <rgr...@gmail.comwrote:
"Joachim Schmitz" <nospam.j...@schmitz-digital.dewrites:
"vubaboota" <vubabo...@gmail.comschrieb im Newsbeitrag
news:11*********************@n4g2000hsb.googlegrou ps.com...
>I HAVE SOME SERIOUS PROBLEM , HOW TO MAKE A PROGRAM IN C
Please don't shout at us. (hint: a sentence in all capitals is considered
shouteing in usenet)
Seems you had a serious problem in the classroom, paying attention to your
teacher.

Is this a new record?

14 posts.

9 of them are discourteous warnings about posting style, homework and
things being off topic.

Oh please give it a break, Richard. While others on this NG
help out giving topical answers and telling people when they
are offtopic, you only seem to spewing out complaints about
answers all the time. Why don't you just do like others and
help people with C, that's what this group is for, like you say.
Much more helpful.

You have been told this before. And I'll just killfile you
if you continue, just wanted to say this before that.

Jun 5 '07 #19
Martin Ambuhl said:
Guru Jois wrote:
> a^=b^=a; // could be still better than 3 statements.

No, it is horrid. The OP poster asked about swapping two number
[sic].
The '^' operator requires operands of an integer type. And that's
not
all that's wrong with it. This question has been beaten to death
before. If you really are committed to the silly XOR trick, check the
FAQ and the newsgroup archives to find out why you shouldn't be. You
might also find out why, even when the silly XOR trick works, writing
it as a single statement is a bad idea.
And if he must do this really stupid thing, he ought at least to do this
really stupid thing properly. The above is broken in more than the
usual number of ways.

Martin, I note from your reply and from another in this thread that both
Umesh and Guru Jois have started dispensing idiotic C advice. I guess
it's time for them to come *out* of my killfile. Things have come to a
pretty pass when one actually feels obliged to unplonk people for being
even more stupid than normal.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Jun 5 '07 #20
ba******@hushmail.com writes:
On Jun 5, 12:04 pm, Richard <rgr...@gmail.comwrote:
>"Joachim Schmitz" <nospam.j...@schmitz-digital.dewrites:
"vubaboota" <vubabo...@gmail.comschrieb im Newsbeitrag
news:11*********************@n4g2000hsb.googlegro ups.com...
I HAVE SOME SERIOUS PROBLEM , HOW TO MAKE A PROGRAM IN C
Please don't shout at us. (hint: a sentence in all capitals is considered
shouteing in usenet)
Seems you had a serious problem in the classroom, paying attention to your
teacher.

Is this a new record?

14 posts.

9 of them are discourteous warnings about posting style, homework and
things being off topic.


Oh please give it a break, Richard. While others on this NG
help out giving topical answers and telling people when they
are offtopic, you only seem to spewing out complaints about
answers all the time. Why don't you just do like others and
help people with C, that's what this group is for, like you say.
Much more helpful.

I frequently do and have done so.

But the pollution level in this NG is second to none. There has
developed a policy of elitist competition between show offs and
wannabees. I find it faintly embarrassing as well as highly
distasteful. And it is getting worse.

There is a big difference between being a savager of nOObs and someone
who pleas for a bit of sanity.

Killfile me for all I care. I really don't mind.

I would also suggest you add posters whose net nanny to help ratio is
more than 1:1.
Jun 5 '07 #21
Richard said:

<snip>
The why dont "we" agree that only ONE reply is enough.
Didn't you hear? Usenet's gone all asynchronous.
Why is there the constant feeding frenzy.
What makes you think any one person who replies has seen any of the
other replies? Maybe you get to see them as they come in - maybe you
have a great newsfeed - but not everyone is that lucky.
Leave it alone to see if someone else replies or ignore it.
Why should we pay you the slightest bit of attention? I don't recall
seeing you giving any C help whatsoever, and if you do give any that
I've missed, it's completely swamped out by your constant whining. Give
it a rest, or balance it with some clueful help.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Jun 5 '07 #22
In article <87************@gmail.com>, Richard <rg****@gmail.comwrites
>Chris Hills <ch***@phaedsys.orgwrites:
>In article <87************@gmail.com>, Richard <rg****@gmail.comwrites
>>>"Joachim Schmitz" <no*********@schmitz-digital.dewrites:

"vubaboota" <vu*******@gmail.comschrieb im Newsbeitrag
news:11*********************@n4g2000hsb.googleg roups.com...
>I HAVE SOME SERIOUS PROBLEM , HOW TO MAKE A PROGRAM IN C
Please don't shout at us. (hint: a sentence in all capitals is considered
shouteing in usenet)
Seems you had a serious problem in the classroom, paying attention to your
teacher.

Is this a new record?

No
>>>14 posts.
9 of them are discourteous warnings about posting style, homework and
things being off topic.

What has happened is we are getting far more posts of the "PLS DO MY
HOMEWORK URGENT" type.

The why dont "we" agree that only ONE reply is enough. Why is there the
constant feeding frenzy. Leave it alone to see if someone else replies
or ignore it.

Then please don't post. Leave it to the others.

Also you will find that most of us regard anyone who ignores netiquette
and starts off inappropriately is fair game.

As you point out there is a "constant feeding ferenzy" so anyone with
any intelligence who looks around the NG before positing should know
not to post homework questions...

The problem is it has got a LOT worse over the last 2-3 years. It is
getting like spam.

They don't research either the problem or the NG they are posting to.
They are fair game on a quiet afternoon. If you don't like the way this
NG works go somewhere else.

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Jun 5 '07 #23
Guru Jois wrote:
On Jun 5, 1:17 am, Umesh <fraternitydispo...@gmail.comwrote:
>//swapping

#include"stdio.h"
int main()
{
int a,b;
printf("Enter values of a & b : ");
scanf("%d%d",&a,&b);
a=a+b; //if a=4,b=2 now a=a+b=6
b=a-b; //now b=a-b=6-2=4
a=a-b;//now a=6-4=2
printf("After swapping\n a=%d \t b=%d",a,b);
return 0;

}
a^=b^=a; // could be still better than 3 statements.
The statements above smell of undefined behaviour; your replacement
is doomed to it.

--
The shortcuts are all full of people using them.

Hewlett-Packard Limited registered no:
registered office: Cain Road, Bracknell, Berks RG12 1HN 690597 England

Jun 5 '07 #24
In article <f4**********@murdoch.hpl.hp.com>, Chris Dollin
<ch**********@hp.comwrites
>Guru Jois wrote:
>On Jun 5, 1:17 am, Umesh <fraternitydispo...@gmail.comwrote:
>>//swapping

#include"stdio.h"
int main()
{
int a,b;
printf("Enter values of a & b : ");
scanf("%d%d",&a,&b);
a=a+b; //if a=4,b=2 now a=a+b=6
b=a-b; //now b=a-b=6-2=4
a=a-b;//now a=6-4=2
printf("After swapping\n a=%d \t b=%d",a,b);
return 0;

}
a^=b^=a; // could be still better than 3 statements.

The statements above smell of undefined behaviour; your replacement
is doomed to it.
"Solutions" on here usually require more work from the student than the
original homework task. :-)

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Jun 5 '07 #25
On Jun 5, 2:21 pm, Chris Hills <c...@phaedsys.orgwrote:
The problem is it has got a LOT worse over the last 2-3 years. It is
getting like spam.

They don't research either the problem or the NG they are posting to.
They are fair game on a quiet afternoon. If you don't like the way this
NG works go somewhere else.
Why not create a NG comp.lang.c.homework? We can point the posters to
this newsgroups (and hopefully get rid of them) and maybe some of them
will post there directly, and people who like to show off can post
solutions in there. The best would be that those "students" start
helping each other out (I know, the chance of this happening are
almost NULL).

Others (who don't like these threads) can just ignore this group (or
link it to /dev/null).

Kind regards,
Johan

Jun 5 '07 #26
Richard Heathfield <rj*@see.sig.invalidwrites:
Richard said:

<snip>
>The why dont "we" agree that only ONE reply is enough.

Didn't you hear? Usenet's gone all asynchronous.
You don't say. Then assume that and dont bother posting yet another
reproach assuming (certainly for sure) that someone else will have
beaten you to the punch.
>
>Why is there the constant feeding frenzy.

What makes you think any one person who replies has seen any of the
other replies? Maybe you get to see them as they come in - maybe you
have a great newsfeed - but not everyone is that lucky.
>Leave it alone to see if someone else replies or ignore it.

Why should we pay you the slightest bit of attention? I don't recall
Because, smartypants, maybe I am following the threads to see the
*answer* to the question too? And am sick to death of reading repeated
"off topic" "no homework done here" "wrong platform" "we dont help
people who dont speak english" etc etc etc - time, after time after
time. I await with glee the answer "then we dont need to help you go
somewhere else".
seeing you giving any C help whatsoever, and if you do give any that
I recall you preening and strutting a lot. I have also given help here -
just not recently and not necessarily from this account. Although what
that has to do with you I don't know. Even assuming a lack of posts, I
fail to see what that has to do with polluting the threads with
*repeated* warning on language, homework and topicality. I am well aware
that you think you are deserving of hero worship because of your
longevity and I also admit you are very knowledgeable - when it suits
you. It strikes me that you in particular are more interested in
swamping the nOOb and proving how clever you are rather than actually
walking a nOOb through the parts which can give them a springboard onto
further understanding.
I've missed, it's completely swamped out by your constant whining. Give
it a rest, or balance it with some clueful help.
You're a twit.
Jun 5 '07 #27
In article <11********************@p77g2000hsh.googlegroups.c om>,
bo******@gmail.com writes
>On Jun 5, 2:21 pm, Chris Hills <c...@phaedsys.orgwrote:
>The problem is it has got a LOT worse over the last 2-3 years. It is
getting like spam.

They don't research either the problem or the NG they are posting to.
They are fair game on a quiet afternoon. If you don't like the way this
NG works go somewhere else.

Why not create a NG comp.lang.c.homework?
Go on then.
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Jun 5 '07 #28
Chris Hills <ch***@phaedsys.orgwrites:
In article <87************@gmail.com>, Richard <rg****@gmail.comwrites
>>Chris Hills <ch***@phaedsys.orgwrites:
>>In article <87************@gmail.com>, Richard <rg****@gmail.comwrites
"Joachim Schmitz" <no*********@schmitz-digital.dewrites:

"vubaboota" <vu*******@gmail.comschrieb im Newsbeitrag
news:11*********************@n4g2000hsb.google groups.com...
>>I HAVE SOME SERIOUS PROBLEM , HOW TO MAKE A PROGRAM IN C
Please don't shout at us. (hint: a sentence in all capitals is considered
shouteing in usenet)
Seems you had a serious problem in the classroom, paying attention to your
teacher.

Is this a new record?

No

14 posts.
9 of them are discourteous warnings about posting style, homework and
things being off topic.

What has happened is we are getting far more posts of the "PLS DO MY
HOMEWORK URGENT" type.

The why dont "we" agree that only ONE reply is enough. Why is there the
constant feeding frenzy. Leave it alone to see if someone else replies
or ignore it.


Then please don't post. Leave it to the others.
I'm not sure that makes sense when I am suggesting people IGNORE posts
they deem unsuitable - they can leave the reply to people who might be
able to constructively help.

It is no joke reading a thread to find 9 pompous rejoinders and only one
reply of substance. The point about "asynchronous" is about as valid as
saying we all use 386s. Sure, for some it might be ... very, very few.
Also you will find that most of us regard anyone who ignores
netiquette and starts off inappropriately is fair game.
No, its not most. Its a loud minority. I see a lot of regulars who do
reply with pointers and suggestions despite the "shove off" replies from
the loud minority.
>
As you point out there is a "constant feeding ferenzy" so anyone with
any intelligence who looks around the NG before positing should know
not to post homework questions...

The problem is it has got a LOT worse over the last 2-3 years. It is
getting like spam.
I would suggest it is just that - people pulling strings to see the
regulars dance.
>
They don't research either the problem or the NG they are posting
to. They are fair game on a quiet afternoon. If you don't like the
way this NG works go somewhere else.
No. Because this NG can help people regardless of the petty jobs worths
who patrol the corridoors. No other NG that I am aware of has the same
level of "feeding frenzy". I find it dispiriting and inappropriate that
skilled qualified people like yourselves should deem it appropriate
behaviour in a public help news group.

I know I'm not the first to mention this and am sure I wont be the last.

I am also equally sure that the loud minority are so full of themselves
that this plea is akin to trying to squeeze blood from a stone.
--
Jun 5 '07 #29
In article <87************@gmail.com>, Richard <rg****@gmail.comwrites
>Richard Heathfield <rj*@see.sig.invalidwrites:
>Richard said:

<snip>
>>The why dont "we" agree that only ONE reply is enough.

Didn't you hear? Usenet's gone all asynchronous.

You don't say. Then assume that and dont bother posting yet another
reproach assuming (certainly for sure) that someone else will have
beaten you to the punch.
He keeps going on: saying we shouldn't post.....
>>
>>Why is there the constant feeding frenzy.

What makes you think any one person who replies has seen any of the
other replies? Maybe you get to see them as they come in - maybe you
have a great newsfeed - but not everyone is that lucky.
>>Leave it alone to see if someone else replies or ignore it.

Why should we pay you the slightest bit of attention? I don't recall

Because, smartypants, maybe I am following the threads to see the
*answer* to the question too?
So are the rest of us and when no one else replies we do so that there
is at least one answer...
And am sick to death of reading repeated
"off topic"
That I agree with.
"no homework done here"
No that one needs to be put up in lights... In fact I think it is in the
FAQ's and I know my notes on a "model home work question" that has been
posted here several times made it onto a couple of FAQ's and the like.

If you trample over the rules of the club you will be treated
accordingly.

This is not an NG for homework. However people will try to help anyone
who has made an effort.

If any of the "homework" posters had even bothered to look at the NG
before posting would have discovered what not to do.
"wrong platform" "we dont help
people who dont speak english" etc etc etc - time, after time after
time. I await with glee the answer "then we dont need to help you go
somewhere else".
The vast majority on here only read/write English. There is nothing
wrong with posting in Spanish, latin German, French or American but it
will limit the number of people who can read, let alone understand the
question.

>
>seeing you giving any C help whatsoever, and if you do give any that

I recall you preening and strutting a lot. I have also given help here -
just not recently and not necessarily from this account.
Actually he does help a lot. .
>I've missed, it's completely swamped out by your constant whining. Give
it a rest, or balance it with some clueful help.

You're a twit.
Can we have a vote on that?
:-)

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Jun 5 '07 #30
Richard said:
Richard Heathfield <rj*@see.sig.invalidwrites:
>Richard said:

<snip>
>>The why dont "we" agree that only ONE reply is enough.

Didn't you hear? Usenet's gone all asynchronous.

You don't say. Then assume that and dont bother posting yet another
reproach assuming (certainly for sure) that someone else will have
beaten you to the punch.
In case you hadn't noticed, I rarely bother.

>Why should we pay you the slightest bit of attention? I don't recall

Because, smartypants, maybe I am following the threads to see the
*answer* to the question too? And am sick to death of reading repeated
"off topic" "no homework done here" "wrong platform" "we dont help
people who dont speak english" etc etc etc - time, after time after
time. I await with glee the answer "then we dont need to help you go
somewhere else".
Such responses can be rather tiresome, it's true. Nevertheless, no OP is
well-served by a well-meaning but incompetent answer to an off-topic
question that, had it been posted in a newsgroup where it's topical,
would have stood a much better chance of being properly corrected by
the experts local to that group.
>
>seeing you giving any C help whatsoever, and if you do give any that

I recall you preening and strutting a lot.
Sticks and stones.
I have also given help here
- just not recently and not necessarily from this account.
Really.
Although what that has to do with you I don't know.
No more than the responses of other contributors to this group has
anything whatsoever to do with you. If you retain the right to say what
you like, accord them the same privilege. If you want the right to
whine even when people ask you not to, that's fine, but don't expect
other people to pay attention to you when you don't pay any attention
to them.
Even assuming a lack of
posts, I fail to see what that has to do with polluting the threads
with *repeated* warning on language, homework and topicality. I am
well aware that you think you are deserving of hero worship
Rubbish. There are plenty of people here who know far more about C than
I do.
It strikes me that you in particular are more interested in
swamping the nOOb and proving how clever you are rather than actually
walking a nOOb through the parts which can give them a springboard
onto further understanding.
Really. I suggest you read my articles more closely in future.
>I've missed, it's completely swamped out by your constant whining.
Give it a rest, or balance it with some clueful help.

You're a twit.
I love you too.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Jun 5 '07 #31
//multiplication table version 2
#include<iostream.h>
void main()
{
long int a,i,j;
cout<<"Enter a single digit number: ";
cin>>a;
cout<<"\nThe multiplication table of "<<a<<" is:\n\n";
for(i=1;i<=a;i++)
cout<<"\t"<<i;
cout<<"\n";
for(i=1;i<=8*a;i++)
cout<<"-";
cout<<"\n";
for(i=1;i<=a;i++)
{
cout<<i<<"|\t";
for(j=1;j<=a;j++)
cout<<i*j<<"\t";
cout<<"\n";
}

}

Jun 5 '07 #32
Umesh wrote:
//multiplication table version 2
#include<iostream.h>
Not C.
void main()
Not (portable, Standard) C.
{
long int a,i,j;
cout<<"Enter a single digit number: ";
NOT C.

Here, we are for C. C. C. Not not-C.

[And why a /long/ int when the maximum accessible value is 81? Not, of
course, that there's a /check/ for the value of `a`, assuming that the
shifts are supposed to be some sort of process-communication syntax.]

--
"What I don't understand is this ..." Trevor Chaplin, /The Beiderbeck Affair/

Hewlett-Packard Limited registered office: Cain Road, Bracknell,
registered no: 690597 England Berks RG12 1HN

Jun 5 '07 #33
In article <BP*********************@bt.com>, Richard Heathfield
<rj*@see.sig.invalidwrites
>Richard said:
>Richard Heathfield <rj*@see.sig.invalidwrites:
>>Richard said:

<snip>
Really. I suggest you read my articles more closely in future.
>>I've missed, it's completely swamped out by your constant whining.
Give it a rest, or balance it with some clueful help.

You're a twit.

I love you too.
You two timing tart!!! I thought I was the only one!
I 'll sulk!
:-)
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Jun 5 '07 #34
bo******@gmail.com wrote:
On Jun 5, 2:21 pm, Chris Hills <c...@phaedsys.orgwrote:
The problem is it has got a LOT worse over the last 2-3 years. It is
getting like spam.

They don't research either the problem or the NG they are posting
to. They are fair game on a quiet afternoon. If you don't like
the way this NG works go somewhere else.

Why not create a NG comp.lang.c.homework?
It's not easy to create a big eight newsgroup (for good reasons).
There's a lot of work involved, and a fairly good chance it would end
up voted down after all that. An alt group is easy, but would have
troubles getting carried.

Brian

Jun 5 '07 #35
Joachim Schmitz wrote:
"Richard" <rg****@gmail.comschrieb im Newsbeitrag
news:87************@gmail.com... >"Joachim Schmitz"
<no*********@schmitz-digital.dewrites:
>"vubaboota" <vu*******@gmail.comschrieb im Newsbeitrag
news:11*********************@n4g2000hsb.googlegrou ps.com...
I HAVE SOME SERIOUS PROBLEM , HOW TO MAKE A PROGRAM IN C
Please don't shout at us. (hint: a sentence in all capitals is
considered shouteing in usenet)
Seems you had a serious problem in the classroom, paying
attention to your teacher.
Is this a new record?

14 posts.

9 of them are discourteous warnings about posting style, homework
and things being off topic.
Where have I been discourteous?
My answer was the first (according to the timestapms I can see), so
why are you apparently atacking me for the # of posts?

He's trolling. Just killfile him.


Brian
Jun 5 '07 #36
Richard wrote:
>
9 of them are discourteous warnings about posting style, homework and
things being off topic.
It is extremely rude, completely incorrect, and improperly authoritarian
for you to call "discourteous" completely proper posts which request the
poster not to shout, point out that we don't do homework, and warning
that posts that are not topical will not be given serious consideration.

If insist on passing judgment on other's posts, do try to be at least
close to being right. Then we would know that while you might be a
self-righteous prick, at least you would correct.
Jun 5 '07 #37
On Tue, 05 Jun 2007 15:46:51 +0200, in comp.lang.c , Richard
<rg****@gmail.comwrote:
>Richard Heathfield <rj*@see.sig.invalidwrites:
>Richard said:

<snip>
>>The why dont "we" agree that only ONE reply is enough.

Didn't you hear? Usenet's gone all asynchronous.

You don't say. Then assume that and dont bother posting yet another
reproach
I see - the "someone else will fix it" approach. Top marks for
laziness.
>Why should we pay you the slightest bit of attention? I don't recall

Because, smartypants, maybe I am following the threads to see the
*answer* to the question too?
This isn't an answer to the questio about why we should pay you teh
slightest attention.
>And am sick to death of reading repeated
"off topic" "no homework done here" "wrong platform" "we dont help
people who dont speak english"
Get used to it - its what keeps the group relatively clear of offtopic
and unanswerable or unconfirmable garbage.

If you really dislike seeing it, you can of course killfile all the
people who make the posts - be warned however that you'll find it gets
very very quiet in here.
>seeing you giving any C help whatsoever, and if you do give any that

I recall you preening and strutting a lot.
Preening and strutting ????? I think not. I've had my disagreements
with Richard, but he's still one of hte most clueful posters here, and
even if he occasionally thlips up, I'm not going to take the hump too
much....
>I have also given help here -
just not recently and not necessarily from this account. Although what
that has to do with you I don't know.
Like many groups and indeed like real life, CLC works by people
earning credit by virtue of their history.
>You're a twit.
And you're a fool.

*plonk*

--
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
Jun 5 '07 #38
Richard wrote:
Martin Ambuhl <ma*****@earthlink.netwrites:
>Guru Jois wrote:
>> a^=b^=a; // could be still better than 3 statements.
No, it is horrid. The OP poster asked about swapping two number
[sic]. The '^' operator requires operands of an integer type. And

Don't be so ridiculous. By your rationale then the numbers to be swapped
could be different types and thus unswappable.
Is this Richard just incredibly stupid or is he a troll? The silly XOR
trick works only with integer operands. It is undefined on anything
else. To point that out says nothing at all about what numbers are
"swappable". To claim that "By your rationale then the numbers to be
swapped could be different types and thus unswappable" requires a high
level of dishonesty or a very low level of intelligence. If one
concedes that two doubles might be meaningfully swapped, then one must
concede that the silly XOR trick is not the right approach.

At times it pays to maybe
consider the context the questions are asked in and give a cautious
reply along the lines of ...

"assuming we are talking about unsigned integers then one way might be ...."
>that's not all that's wrong with it. This question has been beaten to
death before. If you really are committed to the silly XOR trick,
check the FAQ and the newsgroup archives to find out why you shouldn't
be. You might also find out why, even when the silly XOR trick works,
writing it as a single statement is a bad idea.

Students who come here asking these type of questions are rarely in the
position to slap their lecturers.
At no point did I suggest slapping anyone. Take your creative reading
technique somewhere else.

Jun 5 '07 #39
On Tue, 05 Jun 2007 15:53:40 +0200, in comp.lang.c , Richard
<rg****@gmail.comwrote:
>I'm not sure that makes sense when I am suggesting people IGNORE posts
they deem unsuitable - they can leave the reply to people who might be
able to constructively help.
This has been tried in the past, many times, and found disastrous. If
offtopic posts aren't redirected, more and more and more are posted
till eventually there's only noise, and all the knowledgeable people
leave. I recall this happening in CLC++ a while back, and I've seen it
in many other groups too - uk.sci.astronomy has suffered from this
recently.
>It is no joke reading a thread to find 9 pompous rejoinders
You too can skip posts you don't like.
>The point about "asynchronous" is about as valid as
saying we all use 386s. Sure, for some it might be ... very, very few.
You're extremely mistaken. Seriously.

You may have the pleasure of a good news provider, but most folk ain't
so lucky. Mine misses posts, gets 'em in the wrong order and sometimes
decides the entire history is either nonexistent, or all new posts.
>They don't research either the problem or the NG they are posting
to. They are fair game on a quiet afternoon. If you don't like the
way this NG works go somewhere else.

No. Because this NG can help people regardless of the petty jobs worths
who patrol the corridoors.
So its ok for /you/ to police the corridors, shouting at anyone who
disagrees with your views and hurling abuse at the staffers, but its
not ok for others?

Egad you're a pompous prat. And a hypocrite.
>I am also equally sure that the loud minority are so full of themselves
that this plea is akin to trying to squeeze blood from a stone.
And of course, you exclude yourself from the "full of themselves"
brigade....

--
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
Jun 5 '07 #40
Umesh said:
//multiplication table version 2
#include<iostream.h>
No such header.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Jun 5 '07 #41
On Tue, 05 Jun 2007 14:19:49 +0200, in comp.lang.c , Richard
<rg****@gmail.comwrote:
>ba******@hushmail.com writes:
>>
Oh please give it a break, Richard. While others on this NG
help out giving topical answers and telling people when they
are offtopic, you only seem to spewing out complaints about
answers all the time.

I frequently do and have done so.
There's no evidence to that effect, though I'm happy to belive it.
>But the pollution level in this NG is second to none.
Mainly, of late, because /you/ insist on posting time after time
complaining about everyone else. Perhaps you should take your own
advice and shut the .... up?
>Killfile me for all I care. I really don't mind.
>I would also suggest you add posters whose net nanny to help ratio is
more than 1:1.
Like, eg, yourself. Work it out, einstein.
--
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
Jun 5 '07 #42
On Tue, 05 Jun 2007 12:02:56 +0200, in comp.lang.c , Richard
<rg****@gmail.comwrote:
>Martin Ambuhl <ma*****@earthlink.netwrites:
>Guru Jois wrote:
>> a^=b^=a; // could be still better than 3 statements.

No, it is horrid. The OP poster asked about swapping two number
[sic]. The '^' operator requires operands of an integer type. And

Don't be so ridiculous.
Did you bother to read the FAQ?
>death before. If you really are committed to the silly XOR trick,
check the FAQ and the newsgroup archives to find out why you shouldn't
be.

Students who come here asking these type of questions are rarely in the
position to slap their lecturers.
Nobody suggested he should slap his lecturer. Are you confusing this
with a differnt thread?

--
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
Jun 5 '07 #43
Mark McIntyre wrote:
On Tue, 05 Jun 2007 15:53:40 +0200, in comp.lang.c , Richard
<rg****@gmail.comwrote:
I'm not sure that makes sense when I am suggesting people IGNORE
posts they deem unsuitable - they can leave the reply to people who
might be able to constructively help.

This has been tried in the past, many times, and found disastrous.
You'll notice also that Richard doesn't seem to find his own advice
very compelling.


Brian
Jun 5 '07 #44
Chris Dollin <ch**********@hp.comwrote:
Umesh wrote:
(a bunch of grotesque C++-flavored crap)
NOT C.
Here, we are for C. C. C. Not not-C.
After that post, and given that "Umesh" is posting from an e-mail
address called "fraternitydisposal", I find it less credible that the
entity is not a troll.

--
C. Benson Manica | I *should* know what I'm talking about - if I
cbmanica(at)gmail.com | don't, I need to know. Flames welcome.
Jun 5 '07 #45
Christopher Benson-Manica wrote:
Chris Dollin <ch**********@hp.comwrote:
Umesh wrote:
(a bunch of grotesque C++-flavored crap)
NOT C.
Here, we are for C. C. C. Not not-C.

After that post, and given that "Umesh" is posting from an e-mail
address called "fraternitydisposal", I find it less credible that the
entity is not a troll.

Troll or unredeemably clueless. I killfiled him long ago.


Brian
Jun 5 '07 #46
Martin Ambuhl <ma*****@earthlink.netwrote:
Is this Richard just incredibly stupid or is he a troll?
He seems to be a somewhat more acerbic version of E. Robert Tisdale.

--
C. Benson Manica | I *should* know what I'm talking about - if I
cbmanica(at)gmail.com | don't, I need to know. Flames welcome.
Jun 5 '07 #47
Chris Hills <ch***@phaedsys.orgwrites:
In article <5c*************@mid.individual.net>, Martin Ambuhl
<ma*****@earthlink.netwrites
>>Umesh wrote:
>>//swapping
#include"stdio.h"
^^^^^^^^^
Unless you have your own private version of stdio.h, you should use
the standard header <stdio.h>.

The whole point of this code is that if the student uses it without
understanding it they will get spotted as a CHEAT
[...]

Do you seriously believe that Umesh knows enough to post deliberately
bad code in an attempt to trip up someone asking for us to do his
homework?

Take a look at his posting history. Either he's a deliberate troll,
or he persists in using void main() and #include"stdio.h" because he
doesn't know any better, despite the fact that he's been told
repeatedly that they're wrong, and why they're wrong, and how to
correct them.

If you haven't been paying close attention (you're certainly not
required to), or if you've already killfiled Umesh and didn't notice
his name in the attribution line, then your misunderstanding is quite
understandable; the code is bad enough that parody is a plausible
explanation for it.

--
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."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jun 5 '07 #48
bo******@gmail.com writes:
On Jun 5, 2:21 pm, Chris Hills <c...@phaedsys.orgwrote:
>The problem is it has got a LOT worse over the last 2-3 years. It is
getting like spam.

They don't research either the problem or the NG they are posting to.
They are fair game on a quiet afternoon. If you don't like the way this
NG works go somewhere else.

Why not create a NG comp.lang.c.homework?
Because it wouldn't work. The people who write the DO MY HOMEWORK
posts aren't going to expend the effort required to find such a
newsgroup, even if it were created.
We can point the posters to
this newsgroups (and hopefully get rid of them) and maybe some of them
will post there directly, and people who like to show off can post
solutions in there. The best would be that those "students" start
helping each other out (I know, the chance of this happening are
almost NULL).
So students who *correctly* ask for help, by showing what they've
already done and asking specific questions about where it's going
wrong, can get incompetent help. I don't think that would be an
improvement.

--
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."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jun 5 '07 #49
Richard wrote:
"Joachim Schmitz" <no*********@schmitz-digital.dewrites:
>"vubaboota" <vu*******@gmail.comschrieb im Newsbeitrag
>>I HAVE SOME SERIOUS PROBLEM , HOW TO MAKE A PROGRAM IN C

Please don't shout at us. (hint: a sentence in all capitals is
considered shouteing in usenet). Seems you had a serious
problem in the classroom, paying attention to your teacher.

Is this a new record?

14 posts.

9 of them are discourteous warnings about posting style, homework
and things being off topic.
I count 43 posts. All are about to be killed.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Jun 6 '07 #50

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Numberwhun | last post by:
Hello everyone! I am trying to learn java and have run into kind of a snag. Here is the code that I have so far: ------ <begin_code> ---------- import javax.swing.*; import...
1
by: HolaGoogle | last post by:
Hi all, Please help me with the following..it's realy urgent and i tried everything i could and i can't get it work properly!! Thanks in advance. Here's what i'm trying to accomplish: in my...
0
by: s_erez | last post by:
Hi, This is a realy tricky one. I have an ASP.NET application where some pages are reading data from a DB and presenting reports. In order for the user to wait while the page is reading data from...
2
by: rked | last post by:
I get nameSPAN1 is undefined when I place cursor in comments box.. <%@ LANGUAGE="VBScript" %> <% DIM ipAddress ipAddress=Request.Servervariables("REMOTE_HOST") %> <html> <head> <meta...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
4
by: pshindle | last post by:
DB2 Team - I just downloaded and unzipped the new Fixpack 9 for DB2 ESE V8 for Windows (FP9_WR21350_ESE.exe). I then burned the unzipped Fixpack files to a CD. I proceded to install this...
23
by: Jason | last post by:
Hi, I was wondering if any could point me to an example or give me ideas on how to dynamically create a form based on a database table? So, I would have a table designed to tell my application...
1
PEB
by: PEB | last post by:
POSTING GUIDELINES Please follow these guidelines when posting questions Post your question in a relevant forum Do NOT PM questions to individual experts - This is not fair on them and...
4
by: fatboySudsy | last post by:
Hi, I have constructed a client program that has given me some error codes that i just cannot see. I was wondering if a different set of eyes with much more experience than me could help me out. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.