![]() |
Re: Programming Challenges?
Quote:
That does the trick. Many thanks. Never noticed the stuff in the top right before. Must be old age :o: |
Re: Programming Challenges?
When I was learning C in the 80's, I used to write programs to prove or disprove if a number is prime. Specifically the Lucas Lehmer test.
Easy to do in C. Re-writing in 8051 assembler will make you a real programmer. Moreso if you then re-write code to get your graphics card to do it using ultrafast VRAM. Dissassembling programs is also good practise. Compile a program to multiply two numbers, go and look at the generated code and try to work out what's going on. I personally always find assembly programming more challenging. Getting a floating point divide to work is easy. Not in 128bytes of stack in 512bytes of reserved code space it isn't. |
Re: Programming Challenges?
Quote:
|
Re: Programming Challenges?
Quote:
|
Re: Programming Challenges?
Quote:
For example the optimisations we were doing on Month Hall would have no noticeable effect, if you were doing a website and sending too much kb to the client it would be very notable. |
Re: Programming Challenges?
What's wrong with this c code?
Code:
#include <stdio.h> ---------- Post added at 10:19 ---------- Previous post was at 10:10 ---------- NVM - nothing wrong with the code, something wrong with Ubuntu. It doesn't include the standard libraries as part of the install, which means that the code above won't compile. Sorted now. |
Re: Programming Challenges?
This may be a good place to ask this question which is probably too simples to have a thread of it's very own. Working on upgrading our current flat db to a more complex relational db in order to speed things up both in use and data entry. This bit of code is the index of dates.
I have 2 tables - courses and dates and each course can be associated with many dates. This went well till a 4th date was added now I get an error. Quote:
Can anyone explain what I'm doing wrong? Code:
<?php |
Re: Programming Challenges?
I remember what heero was saying about microprogramming, so I thought this was worth posting. Its an IP stack (sort of) that fits inside a Twitter tweet.
http://www.sics.se/~adam/twip.html Code:
char b[140];unsigned short *s=b;*l=b;t;main(){while(1){read(0,b,140);b[20]=0;s[11]+=8;t=l[4];l[4]=l[3];l[3]=t;write(1,b,140);}} |
Re: Programming Challenges?
Bit of a bump, I stumbled on a great programming blog today (well judgng by the latest few articles anyway)
http://cafe.elharo.com/ Its aimed at experienced programmers but novice ones can learn a lot from those more experienced. |
Re: Programming Challenges?
Try Perl, nice easy and big following. Head over to Perlmonks for support, help and Perl chat.
|
Re: Programming Challenges?
I have to admit, I miss c++ programming. I used to write a lot of little utils for admin stuff in work (restarting machines remotely, monitoring them, that sort of thing) in c++, but the boss had this idea of centralising all our admin stuff on one website.
So, any utils I write now have to be created using ASP, PHP or Perl. Of course, I could write something in c++ that just interfaces with the site using CGI, but I don't think that would be allowed. |
All times are GMT +1. The time now is 03:40. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum