![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#381 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 8,069
Rep Power: 15
![]() ![]() |
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 |
|
|
|
|
|
#382 | |
|
Hobbyist Programmer
Join Date: Dec 2005
Posts: 118
Rep Power: 0
![]() |
Quote:
|
|
|
|
|
|
|
#383 |
|
Programmer
|
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;
} |
|
|
|
|
|
#384 |
|
Hobbyist Programmer
|
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
endThat'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 |
|
|
|
|
|
#385 |
|
The Oblivious One
Join Date: May 2005
Location: Ontario, Canada
Posts: 661
Rep Power: 6
![]() |
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! |
|
|
|
|
|
#386 |
|
Newbie
Join Date: Feb 2006
Posts: 7
Rep Power: 0
![]() |
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();
} |
|
|
|
|
|
#387 |
|
The Oblivious One
Join Date: May 2005
Location: Ontario, Canada
Posts: 661
Rep Power: 6
![]() |
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS! |
|
|
|
|
|
#388 |
|
Newbie
Join Date: Jan 2006
Location: scotland
Posts: 3
Rep Power: 0
![]() |
wow this is really impressive but, man do you guys have too much time on your hands :p
|
|
|
|
|
|
#389 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 8,069
Rep Power: 15
![]() ![]() |
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 |
|
|
|
|
|
#390 |
|
Pro
|
we all have our opinions
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|