![]() |
Re: Programming Challenges?
Quote:
Seriously though, still thinking about the format - gonna sit and take a look at it today :) |
Re: Programming Challenges?
Quote:
ah..... lisp.....next thing we know we'll have code in Occam and Prolog ---------- Post added at 07:27 ---------- Previous post was at 07:25 ---------- Quote:
well, again, Sun coding standards say that you should do : Code:
|
Re: Programming Challenges?
Quote:
|
Re: Programming Challenges?
Quote:
|
Re: Programming Challenges?
Probably better ways to do it.
Spoiler:
|
Re: Programming Challenges?
Quote:
Anyway, they're both essentially hacked versions of C... |
Re: Programming Challenges?
I think hacked is a unfair description..
|
Re: Programming Challenges?
Quote:
|
Re: Programming Challenges?
C#:
Spoiler:
VB.NET: Spoiler:
PHP: Spoiler:
BASIC: (Not actually 100% this works, hah!) Spoiler:
|
Re: Programming Challenges?
We need another challenge, of the Monty Hall Type...
|
Re: Programming Challenges?
Quote:
|
Re: Programming Challenges?
Quote:
|
Re: Programming Challenges?
BTW, Here's my attempt at the Monty Hall solution. I did via Object-Orientated programming, but its probably a bit more cumbersome than Damien's attempt. Still at least its good simple intro it using it as most of the important base principals are used. Its not pure OO though but thereabouts
Spoiler:
I'll have a go at the mortgage calculator tonight probably. |
Re: Programming Challenges?
Nice Punky. It's only not 'proper' OO because it's limited in scope (i.e the project is too small) to use many features. OO becomes more central to your application structure in bigger applications anyway. I mean all you can do is make door an object really...(which you did, smart).
You probably know this but when accessing a variable outside of it's containing class you should make it a property.. |
Re: Programming Challenges?
Got this so far, it appears to work...
Spoiler:
|
All times are GMT +1. The time now is 03:39. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum