Welcome, Guest. Please login or register.

Author Topic: I don't think I can learn C....  (Read 10456 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Agafaster

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 1175
    • Show all replies
Re: I don't think I can learn C....
« on: April 04, 2003, 09:57:07 AM »
All for a good cause, too - top of the Group !

anyway, we are here to talk about one of me other favourite topics - C.

I had a go tidying up (ie: reformatting in an attempt to make more readable) the 1st program.
I came across summat I hadnt seen before there, and in Piru's program too - the use of a Comma. what does this signify ?
In particular for Piru's program in the 2nd for loop:

[color=000000]putchar(--l%80?i:10)[/color][color=00ccoo],[/color]o=D=l%80*.05-2[color=00ccoo],[/color]i=31

I presume it means many statements per line or something... :-?
\\"New Bruce here will be teaching Machiavelli, Bentham, Locke, Hobbes, Sutcliffe, Bradman, Lindwall, Miller, Hassett and Benaud.\\"
\\"Those are all cricketers, Bruce !\\"
A1XE G3/800MHz Radeon 7000 512MB
A1200 030/25MHz 8MB
 

Offline Agafaster

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 1175
    • Show all replies
Re: I don't think I can learn C....
« Reply #1 on: April 04, 2003, 11:45:17 AM »
Cheers Karlos, thats reet canny !

Casper, I am a Greater English Longhair meself.
now I know this I am well on the way to being leet !
(though super-leet is a long way off- I sit on the 2nd floor coding in PL/1 on our Mainframe - not as much fun as C !)
\\"New Bruce here will be teaching Machiavelli, Bentham, Locke, Hobbes, Sutcliffe, Bradman, Lindwall, Miller, Hassett and Benaud.\\"
\\"Those are all cricketers, Bruce !\\"
A1XE G3/800MHz Radeon 7000 512MB
A1200 030/25MHz 8MB
 

Offline Agafaster

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 1175
    • Show all replies
Re: I don't think I can learn C....
« Reply #2 on: April 04, 2003, 12:02:20 PM »
Quote

Karlos wrote:
Hey dude, I got my hair cut 2 years ago. My avatar image just old, that's all :-D


I havent - shame on you !

Quote

Actually, for C code, the comma operator is often useful in function-like macros that are supposed to 'return' a result and need to do several operations without ending the statement (ie with a semicolon).


Thats roughly what I guessed at - how useful is that ?! :-D
I'll have to mess about with it on me Handspring

Quote

A lot less useful in C++ where you just have an inline function.


I never really got to grips with C++.
it seems to overcomplicate a language based on simplicity and straightforward-ness (?!),
but then maybe I need to actually attempt to get something done in C++ rather than trying to pick up concepts from a book ! (from Bernard Babani)
\\"New Bruce here will be teaching Machiavelli, Bentham, Locke, Hobbes, Sutcliffe, Bradman, Lindwall, Miller, Hassett and Benaud.\\"
\\"Those are all cricketers, Bruce !\\"
A1XE G3/800MHz Radeon 7000 512MB
A1200 030/25MHz 8MB
 

Offline Agafaster

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 1175
    • Show all replies
Re: I don't think I can learn C....
« Reply #3 on: April 04, 2003, 12:10:06 PM »
So am I, even though its only 60 miles east of here...

Jus' get y'sel doon tha pub an' swally doon some o'that broon ale man.
Ye'll be aal reet after that !

(yes ! I learned everything I never needed to know about Novocastrian speak in Viz ! :-o
and having the p1ss taken by mates who were real geordies...  :-D )
\\"New Bruce here will be teaching Machiavelli, Bentham, Locke, Hobbes, Sutcliffe, Bradman, Lindwall, Miller, Hassett and Benaud.\\"
\\"Those are all cricketers, Bruce !\\"
A1XE G3/800MHz Radeon 7000 512MB
A1200 030/25MHz 8MB
 

Offline Agafaster

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 1175
    • Show all replies
Re: I don't think I can learn C....
« Reply #4 on: April 04, 2003, 02:57:07 PM »
ooh. wasnt he in Ghostbusters ?
\\"New Bruce here will be teaching Machiavelli, Bentham, Locke, Hobbes, Sutcliffe, Bradman, Lindwall, Miller, Hassett and Benaud.\\"
\\"Those are all cricketers, Bruce !\\"
A1XE G3/800MHz Radeon 7000 512MB
A1200 030/25MHz 8MB