Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 30th, 2006, 7:11 AM   #381
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 8,069
Rep Power: 15 DaWei will become famous soon enoughDaWei will become famous soon enough
Alright, Jim!!! Something new!
Sorry for the interruption, next count will be 315.
__________________
The person who coined the phrase, "There's no such thing as a stupid question," hasn't hung around here much.

Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
Politically Incorrect
DaWei is offline   Reply With Quote
Old Jan 30th, 2006, 3:08 PM   #382
Klipt
Hobbyist Programmer
 
Join Date: Dec 2005
Posts: 118
Rep Power: 0 Klipt is an unknown quantity at this point
Quote:
Originally Posted by Jessehk
Scheme (which has a certain beauty to it)
MWaahaha! Next thing you know, you'll be a burnt out Lisp addict :p
Klipt is offline   Reply With Quote
Old Jan 30th, 2006, 5:05 PM   #383
niteice
Programmer
 
niteice's Avatar
 
Join Date: Aug 2005
Posts: 98
Rep Power: 6 niteice is on a distinguished road
Send a message via AIM to niteice
Don't forget your -lncurses!
#include <ncurses.h>
int main()
{
        int i;
        initscr();
        for (i = 1; i < 11; printw("%i ",i), refresh(), i++);
        endwin();
        return 0;
}
niteice is offline   Reply With Quote
Old Jan 30th, 2006, 10:31 PM   #384
Mocker
Hobbyist Programmer
 
Mocker's Avatar
 
Join Date: Oct 2005
Location: Indiana
Posts: 224
Rep Power: 0 Mocker is an unknown quantity at this point
Send a message via AIM to Mocker
I haven't checked this but

MAX_NUMBERS = 10;

function CountNumbers()
local lang = this.lang
for i=1, MAX_NUMBERS do
    SendChatMessage( i , "SAY", lang)
  end

end

That's a World of Warcraft macro, uses LUA for scripting
__________________
#programmingforums relay - http://thegupstudio.com/cgi-bin/pforelay.cgi
freelance scripts - http://ryanguthrie.com/index.html
Mocker is offline   Reply With Quote
Old Feb 13th, 2006, 10:08 PM   #385
Jessehk
The Oblivious One
 
Jessehk's Avatar
 
Join Date: May 2005
Location: Ontario, Canada
Posts: 661
Rep Power: 6 Jessehk is on a distinguished road
More scheme

(define (range s e)
  (if (= s e)
	(list s)
	(cons s
	        (range (+ s 1)
		         e))))
(range 1 10)
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS!
Jessehk is offline   Reply With Quote
Old Feb 23rd, 2006, 2:05 PM   #386
Amru_98
Newbie
 
Join Date: Feb 2006
Posts: 7
Rep Power: 0 Amru_98 is on a distinguished road
In C (My first code on this forum), this is fun

#include <stdio.h>

int main()
{
    int x;

    for(x=1; x<11; x++)
       
        printf("%d\n", x);
        printf("This was fun...");
        getchar();
    
}
Amru_98 is offline   Reply With Quote
Old Feb 26th, 2006, 11:21 PM   #387
Jessehk
The Oblivious One
 
Jessehk's Avatar
 
Join Date: May 2005
Location: Ontario, Canada
Posts: 661
Rep Power: 6 Jessehk is on a distinguished road
Ruby (which I'm just starting to look at)

(1..10).each { |x| print "#{x} "}
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS!
Jessehk is offline   Reply With Quote
Old Feb 27th, 2006, 4:12 AM   #388
zander
Newbie
 
zander's Avatar
 
Join Date: Jan 2006
Location: scotland
Posts: 3
Rep Power: 0 zander is on a distinguished road
Wink hmmm

wow this is really impressive but, man do you guys have too much time on your hands :p
zander is offline   Reply With Quote
Old Feb 27th, 2006, 7:02 AM   #389
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 8,069
Rep Power: 15 DaWei will become famous soon enoughDaWei will become famous soon enough
Some's impressive, some's not, a lot is duplicated, some is strained at. I'd still say doing it is less wasteful of time than picking at the contributors.
__________________
The person who coined the phrase, "There's no such thing as a stupid question," hasn't hung around here much.

Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
Politically Incorrect
DaWei is offline   Reply With Quote
Old Feb 27th, 2006, 7:06 AM   #390
ReggaetonKing
Pro
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: NJ
Posts: 894
Rep Power: 5 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
we all have our opinions
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:38 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC