473,385 Members | 1,712 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,385 software developers and data experts.

writing program from a book

I wrote that program from a book that my compile that program
correctly under C++ compiler but I got those errors for compiling
under unix !!

Errors-
--------
part10_iti_r01_ch10_verbo_menu_driven_programs.c: In function `main':
part10_iti_r01_ch10_verbo_menu_driven_programs.c:6 : warning:
declaration of `argc' shadows a parameter
part10_iti_r01_ch10_verbo_menu_driven_programs.c:7 : warning:
declaration of `argv' shadows a parameter
part10_iti_r01_ch10_verbo_menu_driven_programs.c:2 2: syntax error
before '{' token

Program-
--------
#include <stdio.h>
//part10_iti_r01_ch10_verbo_menu_driven_programs.c

main (argc,argv)
{
int argc;
char *argv[50];
{
int option;
do
{
//Display menu
display_menu();

//Initite appropriate program or exit
if (option!=7) //exit
call_program(option,argv);
}
while (option!=7);
}
display_menu()
{
system("clear");
printf ("\n TV Rental system");
printf ("\n ----------------");
printf("\n\n 1 Set up new customer");
printf("\n\n 2 Change existing customer record");
printf("\n\n 3 Add new customer record");
printf("\n\n 4 Delete customer record");
printf("\n\n 5 Print customer bills");
printf("\n\n 6 display a customer record");
printf("\n\n 7 Exit");
}
user_selection()
{
int opt;
printf("\n\n Enter required option number (1-7) ");
scanf("%d",&opt);
return(opt);
}

call_program(opt,argv)
int opt;
char *argv[];
{
switch(opt)
{
case 1: spawnvp(0,"a.obj",argv);
delay();
break;

default:printf("\nError");
delay();
}
}
delay()
{
int i;
for (i=0;i<=20000;++i);
}
Nov 14 '05 #1
27 3189

"hp******@yahoo.com" <eh***********@yahoo.com> wrote in message
news:7e**************************@posting.google.c om...
I wrote that program from a book that my compile that program
correctly under C++ compiler but I got those errors for compiling
under unix !!

Errors-
--------
part10_iti_r01_ch10_verbo_menu_driven_programs.c: In function `main':
part10_iti_r01_ch10_verbo_menu_driven_programs.c:6 : warning:
declaration of `argc' shadows a parameter
part10_iti_r01_ch10_verbo_menu_driven_programs.c:7 : warning:
declaration of `argv' shadows a parameter
part10_iti_r01_ch10_verbo_menu_driven_programs.c:2 2: syntax error
before '{' token

Program-
--------
#include <stdio.h>
file://part10_iti_r01_ch10_verbo_menu_driven_programs.c

main (argc,argv)
{
int argc;
char *argv[50];
{
What language is this?? I can't imagine that this would compile under C++
or C. I think that you are trying to use old style function declarations
of the type:

foo(p1,p1)
int p1;
int p2;
{

...
}

You should change these to the newer style function declarations:

int foo(int p1,int p2)
{
...
}
So this would become:

int main(int argc, char ** argv)
{
int option;
....

}
int option;
do
{
file://Display menu
display_menu();

file://Initite appropriate program or exit
if (option!=7) file://exit
call_program(option,argv);
}
while (option!=7);
}
display_menu()
{
system("clear");
printf ("\n TV Rental system");
printf ("\n ----------------");
printf("\n\n 1 Set up new customer");
printf("\n\n 2 Change existing customer record");
printf("\n\n 3 Add new customer record");
printf("\n\n 4 Delete customer record");
printf("\n\n 5 Print customer bills");
printf("\n\n 6 display a customer record");
printf("\n\n 7 Exit");
}
user_selection()
{
int opt;
printf("\n\n Enter required option number (1-7) ");
scanf("%d",&opt);
return(opt);
}

call_program(opt,argv)
int opt;
char *argv[];
{
switch(opt)
{
case 1: spawnvp(0,"a.obj",argv);
delay();
break;

default:printf("\nError");
delay();
}
}
delay()
{
int i;
for (i=0;i<=20000;++i);
}


Same for call_program:

int call_program(int opt,char ** argv)
{
...
}

Sean


Nov 14 '05 #2
eh***********@yahoo.com (hp******@yahoo.com) writes:
I wrote that program from a book that my compile that program
correctly under C++ compiler but I got those errors for compiling
under unix !!

Errors-
--------
part10_iti_r01_ch10_verbo_menu_driven_programs.c: In function `main':
part10_iti_r01_ch10_verbo_menu_driven_programs.c:6 : warning:
declaration of `argc' shadows a parameter
part10_iti_r01_ch10_verbo_menu_driven_programs.c:7 : warning:
declaration of `argv' shadows a parameter
part10_iti_r01_ch10_verbo_menu_driven_programs.c:2 2: syntax error
before '{' token

Program-
--------
#include <stdio.h>
//part10_iti_r01_ch10_verbo_menu_driven_programs.c

main (argc,argv)
{
Get rid of that brace...
int argc;
char *argv[50];
.... and drop the old K&R style.
{
int option;
do
{
//Display menu
display_menu();

//Initite appropriate program or exit
if (option!=7) //exit
call_program(option,argv);
}
while (option!=7);
}
display_menu()
{
system("clear");
printf ("\n TV Rental system");
printf ("\n ----------------");
printf("\n\n 1 Set up new customer");
printf("\n\n 2 Change existing customer record");
printf("\n\n 3 Add new customer record");
printf("\n\n 4 Delete customer record");
printf("\n\n 5 Print customer bills");
printf("\n\n 6 display a customer record");
printf("\n\n 7 Exit");
}

user_selection()
{
int opt;
printf("\n\n Enter required option number (1-7) ");
scanf("%d",&opt);
return(opt);
}

call_program(opt,argv)
int opt;
char *argv[];
{
switch(opt)
{
case 1: spawnvp(0,"a.obj",argv);
What does spawnvp do?
delay();
break;

default:printf("\nError");
delay();
}
}

delay()
{
int i;
for (i=0;i<=20000;++i);
}


How ancient is this. That loop takes no time at all to run here.

--
Måns Rullgård
mr*@kth.se
Nov 14 '05 #3
eh***********@yahoo.com (hp******@yahoo.com) writes in comp.unix.solaris:
|I wrote that program from a book that my compile that program
|correctly under C++ compiler but I got those errors for compiling
|under unix !!
|
|Errors-
|--------
|part10_iti_r01_ch10_verbo_menu_driven_programs.c: In function `main':
|part10_iti_r01_ch10_verbo_menu_driven_programs.c: 6: warning:
|declaration of `argc' shadows a parameter
|part10_iti_r01_ch10_verbo_menu_driven_programs.c: 7: warning:
|declaration of `argv' shadows a parameter
|part10_iti_r01_ch10_verbo_menu_driven_programs.c: 22: syntax error
|before '{' token
|main (argc,argv)
|{
|int argc;
|char *argv[50];
|{

This should be
int main (int argc, char *argv[])
{

You've got too many {'s along with obsolete syntax. (As has been
mentioned before, it appears whatever book you're using should be
burned.)

--
__________________________________________________ ______________________
Alan Coopersmith al***@alum.calberkeley.org
http://www.CSUA.Berkeley.EDU/~alanc/ aka: Al**************@Sun.COM
Working for, but definitely not speaking for, Sun Microsystems, Inc.
Nov 14 '05 #4
In comp.unix.programmer Måns Rullgård <mr*@kth.se> wrote:
eh***********@yahoo.com (hp******@yahoo.com) writes:
I wrote that program from a book that my compile that program
correctly under C++ compiler but I got those errors for compiling
under unix !!

delay()
{
int i;
for (i=0;i<=20000;++i);
}

How ancient is this. That loop takes no time at all to run here.


And probably every self-respecting compiler will optimize out that
loop (i.e. throw it away because there's no result that's ever going
to be used) unless you declare 'i' as volatile. And even then the
time that delay will take is probably absolutely negligible. With
any modern computer the maximum delay you'll be getting is probably
somewhere in the order of a micro-second.

But how you got to compile this program with a C++ compiler is
completely beyond me. And even if you did, how is 'option' ever
to be changed? Shouldn'd there be a call of the user_selection()
function somewhere in main()s loop? And what's the switch in
call_program() good for? Is only the first menu option usable?
Or have you accidentally skipped a few pages in the book while
copying the program? I guess the best you can do is throw that
book away, all you can learn from it is either completely out-
dated or plain wrong.
Regards, Jens
--
\ Jens Thoms Toerring ___ Je***********@physik.fu-berlin.de
\__________________________ http://www.physik.fu-berlin.de/~toerring
Nov 14 '05 #5
hp******@yahoo.com wrote:
I wrote that program from a book that my compile that program
correctly under C++ compiler
Somehow, I doubt that.
but I got those errors for compiling
under unix !!


The code you transcribed here is /so/ wrong.

You are compiling bad K&R (pre-ANSI) C with ANSI C99 / C++ comments using a
C++ compiler, and expecting it to compile properly and execute.

1) This is not C++, so stop using a C++ compiler on it
2) This is not C99, so lose the C++style comments
3) There are logic errors in your code. Fix them
(for instance, you never assign a value to your 'options' variable,
you test the 'options' variable for a value that can never occur,
etc.)
4) You use platform-specific functions; either lose them or submit your
corrected code to a forum that has knowledge of them.
--
Lew Pitcher, IT Consultant, Application Architecture
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed here are my own, not my employer's)

Nov 14 '05 #6
On Wed, 28 Jan 2004, Alan Coopersmith wrote:
You've got too many {'s along with obsolete syntax. (As has been
mentioned before, it appears whatever book you're using should be
burned.)


Agreed. To the OP: Don't bother with "C for Dummies" either,
or any other book that thinks that "void main (...)" is valid.

I'm reading in this in comp.unix.solaris: I humbly submit that
my forthcoming book, Solaris Systems Prorgamming, should be on
your shopping list (in addition to a good C tutorial - my book
assumes some C knowledge).

One more tip: try to ask your questions in a more focussed group
of newsgroups.

--
Rich Teer, SCNA, SCSA

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-online.net
Nov 14 '05 #7
Lew Pitcher wrote:
You are compiling bad K&R (pre-ANSI) C with ANSI C99 / C++ comments using a
C++ compiler, and expecting it to compile properly and execute.

It's not even old-style C, because he has an opening brace before the
argc and argv declarations, which then turns them into local variables
(hence the error message).

The OP needs to go back to square one, get a good book and start again
with a few simple programs.


Brian Rodenborn
Nov 14 '05 #8
hp******@yahoo.com wrote:
I wrote that program from a book that my compile that program
correctly under C++ compiler
No, it didn't. Some other program did, probably one without the trivial
error below.
but I got those errors for compiling
under unix !!
Unix is irrelevant. Your code is broken.
#include <stdio.h>
//part10_iti_r01_ch10_verbo_menu_driven_programs.c

main (argc,argv)
{
int argc;
char *argv[50];
{


You are incorrectly using an outmoded style of specifying the arguments. If
you insist on using this style, it should be

int main(argc, argv)
int argc;
char *argv[];
{

Notice that the extra brace '{' is missing and the bogus '50' is missing.

The modern way to do this, if you consider the last 15 years to to be the
modern era, is
int main(int argc, char *argv[])
{

Since it is normal etiquette to check the FAQs and follow the traffic on a
newsgroup before posting, I suspect that you really knew these things. It
is impossible to read the FAQs for and follow all of comp.lang.c,
comp.unix.solaris, comp.unix.programmer, gnu.g++.help, and gnu.gcc.help
without seeing these simple things done correctly.
--
Martin Ambuhl
Nov 14 '05 #9
Martin Ambuhl <ma*****@earthlink.net> writes:
hp******@yahoo.com wrote:
I wrote that program from a book that my compile that program
correctly under C++ compiler

[snip]
You are incorrectly using an outmoded style of specifying the arguments. If
you insist on using this style, it should be

int main(argc, argv)
int argc;
char *argv[];
{


Actually, even that one won't work with C++ (remember, OP is using a C++
compiler).

E.g. the following program (saved in /tmp/p.cc file)

int main(argc, argv)
int argc;
char *argv[];
{
return 0;
}

produces the following errors:
% g++ -c /tmp/p.cc
/tmp/p.cc:1: error: `argc' was not declared in this scope
/tmp/p.cc:1: error: `argv' was not declared in this scope
/tmp/p.cc:2: error: initializer list being treated as compound expression
/tmp/p.cc:2: error: syntax error before `int'
/tmp/p.cc:3: error: storage size of `argv' isn't known
/tmp/p.cc:3: error: storage size of `argv' isn't known
/tmp/p.cc:4: error: parse error before `{' token

Bye, Dragan

--
Dragan Cvetkovic,

To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer

!!! Sender/From address is bogus. Use reply-to one !!!
Nov 14 '05 #10
>I wrote that program from a book that my compile that program
correctly under C++ compiler but I got those errors for compiling
under unix !!

main (argc,argv)
{
int argc;
char *argv[50];


since you're using the old K&R-style parameter declarations, remove
that "{" after main.
--
mac the naïf
Nov 14 '05 #11
This isn't right.

This isn't even wrong!
hp******@yahoo.com wrote:
I wrote that program from a book that my compile that program
correctly under C++ compiler but I got those errors for compiling
under unix !!

Errors-
--------
part10_iti_r01_ch10_verbo_menu_driven_programs.c: In function `main':
part10_iti_r01_ch10_verbo_menu_driven_programs.c:6 : warning:
declaration of `argc' shadows a parameter
part10_iti_r01_ch10_verbo_menu_driven_programs.c:7 : warning:
declaration of `argv' shadows a parameter
part10_iti_r01_ch10_verbo_menu_driven_programs.c:2 2: syntax error
before '{' token

Program-
--------
#include <stdio.h>
//part10_iti_r01_ch10_verbo_menu_driven_programs.c

main (argc,argv)
{
int argc;
char *argv[50];
{
int option;
do
{
//Display menu
display_menu();

//Initite appropriate program or exit
if (option!=7) //exit
call_program(option,argv);
}
while (option!=7);
}
display_menu()
{
system("clear");
printf ("\n TV Rental system");
printf ("\n ----------------");
printf("\n\n 1 Set up new customer");
printf("\n\n 2 Change existing customer record");
printf("\n\n 3 Add new customer record");
printf("\n\n 4 Delete customer record");
printf("\n\n 5 Print customer bills");
printf("\n\n 6 display a customer record");
printf("\n\n 7 Exit");
}
user_selection()
{
int opt;
printf("\n\n Enter required option number (1-7) ");
scanf("%d",&opt);
return(opt);
}

call_program(opt,argv)
int opt;
char *argv[];
{
switch(opt)
{
case 1: spawnvp(0,"a.obj",argv);
delay();
break;

default:printf("\nError");
delay();
}
}
delay()
{
int i;
for (i=0;i<=20000;++i);
}


--
"It is impossible to make anything foolproof because fools are so
ingenious" - A. Bloch

Nov 14 '05 #12
Dragan Cvetkovic wrote:
Actually, even that one won't work with C++ (remember, OP is using a C++
compiler).


I haven't a clue why he posted it to comp.lang.c, where we don't give a
flip about C++. I answered the post where I read it, in comp.lang.c.
There are many correct answers in comp.lang.c that don't work with C++.
And we don't care.


--
Martin Ambuhl
Nov 14 '05 #13
On Thu, 29 Jan 2004, Martin Ambuhl wrote:
There are many correct answers in comp.lang.c that don't work with C++.
And we don't care.


Ah, I was wondering when the typical warm and cuddly c.l.c.
comment would show up... ;-)

--
Rich Teer, SCNA, SCSA

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-online.net
Nov 14 '05 #14
On 28 Jan 2004 10:33:24 -0800, eh***********@yahoo.com
(hp******@yahoo.com) wrote in comp.lang.c:
I wrote that program from a book that my compile that program
correctly under C++ compiler but I got those errors for compiling
under unix !!

Errors-
--------
part10_iti_r01_ch10_verbo_menu_driven_programs.c: In function `main':
part10_iti_r01_ch10_verbo_menu_driven_programs.c:6 : warning:
declaration of `argc' shadows a parameter
part10_iti_r01_ch10_verbo_menu_driven_programs.c:7 : warning:
declaration of `argv' shadows a parameter
part10_iti_r01_ch10_verbo_menu_driven_programs.c:2 2: syntax error
before '{' token

Program-
--------
#include <stdio.h>
//part10_iti_r01_ch10_verbo_menu_driven_programs.c

main (argc,argv)
{
int argc;
char *argv[50];
{


1. Learn some manners and don't cross-post to so many unrelated
groups.

2. Burn that book, immediately.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Nov 14 '05 #15

"Jack Klein" <ja*******@spamcop.net> wrote in message
news:at********************************@4ax.com...
On 28 Jan 2004 10:33:24 -0800, eh***********@yahoo.com
(hp******@yahoo.com) wrote in comp.lang.c:
I wrote that program from a book that my compile that program
correctly under C++ compiler but I got those errors for compiling
under unix !!

Errors-
--------
part10_iti_r01_ch10_verbo_menu_driven_programs.c: In function `main':
part10_iti_r01_ch10_verbo_menu_driven_programs.c:6 : warning:
declaration of `argc' shadows a parameter
part10_iti_r01_ch10_verbo_menu_driven_programs.c:7 : warning:
declaration of `argv' shadows a parameter
part10_iti_r01_ch10_verbo_menu_driven_programs.c:2 2: syntax error
before '{' token

Program-
--------
#include <stdio.h>
//part10_iti_r01_ch10_verbo_menu_driven_programs.c

main (argc,argv)
{
int argc;
char *argv[50];
{

Lets see, the error messages say that there is a problem in function main.
Good place to start.
It then goes on to line 6, your "int argc;" line. mmmm what is wrong here?

Your function declaration is wrong. You are also attempting to use an old
style of C function delcarations. Try....

#include <stdio.h>

main(int argc; char **argv)
{

// Now you can continue with the code
1. Learn some manners and don't cross-post to so many unrelated
groups.
Agreed.
2. Burn that book, immediately.

Might not be such a bad idea if the code was correctly taken out of the book.

Brad
Nov 14 '05 #16
Brad wrote:

"Jack Klein" <ja*******@spamcop.net> wrote in message
news:at********************************@4ax.com...
On 28 Jan 2004 10:33:24 -0800, eh***********@yahoo.com
(hp******@yahoo.com) wrote in comp.lang.c:
I wrote that program from a book that my compile that program
correctly under C++ compiler but I got those errors for compiling
under unix !!

Errors-
--------
part10_iti_r01_ch10_verbo_menu_driven_programs.c: In function `main':
part10_iti_r01_ch10_verbo_menu_driven_programs.c:6 : warning:
declaration of `argc' shadows a parameter
part10_iti_r01_ch10_verbo_menu_driven_programs.c:7 : warning:
declaration of `argv' shadows a parameter
part10_iti_r01_ch10_verbo_menu_driven_programs.c:2 2: syntax error
before '{' token

Program-
--------
#include <stdio.h>
//part10_iti_r01_ch10_verbo_menu_driven_programs.c

main (argc,argv)
{
int argc;
char *argv[50];
{

Lets see, the error messages say that there is a problem in function main.
Good place to start.
It then goes on to line 6, your "int argc;" line. mmmm what is wrong here?

Your function declaration is wrong. You are also attempting to use an old
style of C function delcarations. Try....

#include <stdio.h>

main(int argc; char **argv)
{


You misspelled

int main(int argc, char **argv)

--
pete
Nov 14 '05 #17

"pete" <pf*****@mindspring.com> wrote in message
news:40***********@mindspring.com...
Brad wrote:

"Jack Klein" <ja*******@spamcop.net> wrote in message
news:at********************************@4ax.com...
On 28 Jan 2004 10:33:24 -0800, eh***********@yahoo.com
(hp******@yahoo.com) wrote in comp.lang.c:

> I wrote that program from a book that my compile that program
> correctly under C++ compiler but I got those errors for compiling
> under unix !!
>
> Errors-
> --------
> part10_iti_r01_ch10_verbo_menu_driven_programs.c: In function `main':
> part10_iti_r01_ch10_verbo_menu_driven_programs.c:6 : warning:
> declaration of `argc' shadows a parameter
> part10_iti_r01_ch10_verbo_menu_driven_programs.c:7 : warning:
> declaration of `argv' shadows a parameter
> part10_iti_r01_ch10_verbo_menu_driven_programs.c:2 2: syntax error
> before '{' token
>
> Program-
> --------
> #include <stdio.h>
> //part10_iti_r01_ch10_verbo_menu_driven_programs.c
>
> main (argc,argv)
> {
> int argc;
> char *argv[50];
> {

Lets see, the error messages say that there is a problem in function main.
Good place to start.
It then goes on to line 6, your "int argc;" line. mmmm what is wrong here?
Your function declaration is wrong. You are also attempting to use an old
style of C function delcarations. Try....

#include <stdio.h>

main(int argc; char **argv)
{


You misspelled

int main(int argc, char **argv)


Correct, thanx.

Brad

Nov 14 '05 #18
On Wed, 28 Jan 2004 20:36:18 GMT, Default User
<fi********@boeing.com.invalid> wrote:
Lew Pitcher wrote:

(re: main (argc, argv) /*spurious*/{ int argc; char *argv[50]; { etc.)
You are compiling bad K&R (pre-ANSI) C with ANSI C99 / C++ comments using a
C++ compiler, and expecting it to compile properly and execute.


It's not even old-style C, because he has an opening brace before the
argc and argv declarations, which then turns them into local variables
(hence the error message).

It is facially valid oldstyle C89 (or prestandard), because the
parameters argc and argv are implicitly int, as is the return from
main(); the parameters are then shadowed by locals which is perfectly
legal though rarely wise and (hence) was only a warning not an error.
The result is Undefined Behavior because main() is only defined to
work for zero arguments (void) or two arguments (int, char**),
although in practice on many (most?) implementations since the
parameters argc and argv are not (cannot be) accessed this would still
(sort of) work -- in the absence of the OP's *other* bugs.

- David.Thompson1 at worldnet.att.net
Nov 14 '05 #19
In article <FM**********************@bgtnsc05-news.ops.worldnet.att.net>,
Nick Landsberg <hu*****@att.net> wrote:
This isn't right.

This isn't even wrong!


Super quote!

What physicsist was it who originally said it?

David

Nov 14 '05 #20
David Combs <dk*****@panix.com> scribbled the following
on comp.lang.c:
In article <FM**********************@bgtnsc05-news.ops.worldnet.att.net>,
Nick Landsberg <hu*****@att.net> wrote:
This isn't right.

This isn't even wrong!
Super quote! What physicsist was it who originally said it?


Wolfgang Pauli.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"A bicycle cannot stand up by itself because it's two-tyred."
- Sky Text
Nov 14 '05 #21


David Combs wrote:
In article <FM**********************@bgtnsc05-news.ops.worldnet.att.net>,
Nick Landsberg <hu*****@att.net> wrote:
This isn't right.

This isn't even wrong!



Super quote!

What physicsist was it who originally said it?

David


It could have been Fermi, but I'm not sure.

--
Ñ
"It is impossible to make anything foolproof because fools are so
ingenious" - A. Bloch

Nov 14 '05 #22
Nick Landsberg <hu*****@att.net> writes:
David Combs wrote:
In article <FM**********************@bgtnsc05-news.ops.worldnet.att.net>,
Nick Landsberg <hu*****@att.net> wrote:
This isn't right.

This isn't even wrong!

Super quote!
What physicsist was it who originally said it?
David


It could have been Fermi, but I'm not sure.


If you put it that way, it could have been Heisenberg. 8-)}

(Most of the Google reference to the quote credit it to Pauli.)

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://www.sdsc.edu/~kst>
Schroedinger does Shakespeare: "To be *and* not to be"
Nov 14 '05 #23
David Combs wrote:
In article <FM**********************@bgtnsc05-news.ops.worldnet.att.net>,
Nick Landsberg <hu*****@att.net> wrote:
This isn't right.

This isn't even wrong!

Super quote!

What physicsist was it who originally said it?

David


Most physicists would not call themselves "physicsists" ;-)

And do physicists with tumours call themselves physicysts?

Nov 14 '05 #24
Beardy wrote:

What physicsist was it who originally said it?

David


Most physicists would not call themselves "physicsists" ;-)

And do physicists with tumours call themselves physicysts?


Only those with a sense of tumour.

--
Allin Cottrell
Department of Economics
Wake Forest University, NC
Nov 14 '05 #25

Allin Cottrell <co******@wfu.edu> writes:
Beardy wrote:

What physicsist was it who originally said it?

David


Most physicists would not call themselves "physicsists" ;-)

And do physicists with tumours call themselves physicysts?


Only those with a sense of tumour.


I admire your courage in posting this type of off-topic banter
to c.l.c. They should be releasing the hounds any time now. ;->

-SEan

Nov 14 '05 #26
Sean Burke wrote:

Allin Cottrell <co******@wfu.edu> writes:
Beardy wrote:
>>
>> What physicsist was it who originally said it?
>>
>> David
>>
>
> Most physicists would not call themselves "physicsists" ;-)
>
> And do physicists with tumours call themselves physicysts?


Only those with a sense of tumour.


I admire your courage in posting this type of off-topic banter
to c.l.c. They should be releasing the hounds any time now. ;->


We tend to be a bit more forgiving when the banter (a) arose out of a
topical discussion and (b) is genuinely interesting or amusing. The current
banter appears to qualify on both counts. (BTW my (a) and (b) are based on
my own interpretations of when OT banter is tolerated, and should not be
regarded as definitive.)

This subthread cannot be relevant anywhere but comp.lang.c. Followups set.

--
Richard Heathfield : bi****@eton.powernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #27
In <40******@news2.power.net.uk> Richard Heathfield <in*****@address.co.uk.invalid> writes:
Sean Burke wrote:

Allin Cottrell <co******@wfu.edu> writes:
Beardy wrote:

>>
>> What physicsist was it who originally said it?
>>
>> David
>>
>
> Most physicists would not call themselves "physicsists" ;-)
>
> And do physicists with tumours call themselves physicysts?

Only those with a sense of tumour.


I admire your courage in posting this type of off-topic banter
to c.l.c. They should be releasing the hounds any time now. ;->


We tend to be a bit more forgiving when the banter (a) arose out of a
topical discussion and (b) is genuinely interesting or amusing. The current
banter appears to qualify on both counts. (BTW my (a) and (b) are based on
my own interpretations of when OT banter is tolerated, and should not be
regarded as definitive.)


For the record, I agree with Richard's interpretation. Inserting an [OT]
tag in the subject line at some point wouldn't have hurt, but even
without it this kind of topic drift is perfectly OK.

And now, since we're discussing topicality, we're topical again, so there
no point in inserting the [OT] tag ;-)

Dan

PS But I should have changed the subject line...
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #28

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

Similar topics

40
by: post400 | last post by:
Hi, there is another famous book 'Writing solid code' but does it apply to Python ? Or it's usable only by Microsoft C programmers ? The author seems to be an ex-Microsoft guy ! Thanks ,...
8
by: Philipp | last post by:
Hello, I would like to print (cout) the binary representation of a double. ie the values of the bytes 1-8. A typical output would be something like (in hex) ff af 12 d3 ab 9f 3c 00 Is there a...
6
by: hpy_awad | last post by:
I am writing stings ((*cust).name),((*cust).address)to a file using fgets but rabish is being wrote to that file ? Look to my source please and help me finding the reason why this rabish is being...
9
by: 100 | last post by:
Has anybody read Steve Maguire's book "Writing solid code"? Do you think that the ideas in this book are not applicable in c# language? Does anybody find if(2 == i) istead of if(i == 2) as...
2
by: Nathan Sokalski | last post by:
I am an ASP.NET developer who would like to start learning about writing ASP.NET custom controls using VB.NET. I already have a reasonable amount of knowledge with making ASP.NET pages, and am...
22
by: JoeC | last post by:
I am working on another game project and it is comming along. It is an improvment over a previous version I wrote. I am trying to write better programs and often wonder how to get better at...
17
by: Hypnotik | last post by:
Hello everyone. I'm working on a program which uses a class (Shelf) and a struct (Book). In the main program we declare an array (Library) which is of type shelf. The program takes in various info...
20
by: Marin Brkic | last post by:
Hello all, please, let me apologize in advance. English is not my first language (not even my second one), so excuse any errors with which I'm about to embarass myself in front of the general...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...

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.