Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

US Job listings




   Misc

   Amazon

   Links

    


Walking LEDS up version 
 

 

 

Code

#include <conio.h>
#include <stdio.h>
#include <stdlib.h>

int main()
{
int leds[9] = {0,1,2,4,8,16,32,64,128};
int i;
for(i=0;i<9;i++)
{
_outp(0x378,leds[i]);
_sleep(1000);

}
return 0;
}

Description

This example stores all the values to be outputted in an array . We then loop through the array .

Download

walkingledsup.txt

 

 

 

 

 

 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
Open a file and display contents(C++)
decimal to octal conversion(PHP)
Free disk space : Windows 95 and 98(C)
Drawing example(ASP.net)
flash the forms title bar(VB)
Background sound supported(ASP.net)
Send an email(ASP)
check a directory exists(C Sharp)

    




Copyright © 2003 by programmershelp.co.uk