programming LEGO MINDSTORMS phần 2 doc

programming LEGO MINDSTORMS phần 2 doc

programming LEGO MINDSTORMS phần 2 doc

... sPort=null; Enumeration pList=null; www.syngress.com Continued 177 _LEGO_ Java_ 02. qxd 4 /2/ 02 12: 01 PM Page 35 177 _LEGO_ Java_01.qxd 4 /2/ 02 11:58 AM Page 30 48 Chapter 2 • The Java Communications API # Solaris Serial ... TestOwnership COM1 portID1: PORT_OWNED www.syngress.com Figure 2. 2 Continued 177 _LEGO_ Java_ 02. qxd 4 /2/ 02 12: 01 PM Page 40 62 Chapter 2 • The Java Com...

Ngày tải lên: 13/08/2014, 15:21

47 136 0
programming LEGO MINDSTORMS phần 5 doc

programming LEGO MINDSTORMS phần 5 doc

... with StringBuffer. Programming for the leJOS Environment • Chapter 6 20 5 177 _LEGO_ Java_06.qxd 4/3/ 02 12: 54 PM Page 20 5 The leJOS System • Chapter 5 20 1 The LEGO Java Operating System  LeJOS leverages the LEGO- provided ... have the Java 2 Enterprise Edition (J2EE), and then the Java 2 Standard Edition (J2SE).When it comes to the VM, J2EE is not different from www.syngress...

Ngày tải lên: 13/08/2014, 15:21

47 126 0
programming LEGO MINDSTORMS phần 7 doc

programming LEGO MINDSTORMS phần 7 doc

... used: $ lejos Main1,Main2 -o Main.bin Download this binary to the RCX: $ lejosrun Main.bin leJOS Internals • Chapter 8 29 1 177 _LEGO_ Java_08.qxd 4/3/ 02 10 :22 AM Page 29 1 29 6 Chapter 8 • leJOS Internals * ... LCD_DECIMAL_0); LCD.showProgramNumber (index); } } www.syngress.com Figure 8 .2 Continued 177 _LEGO_ Java_08.qxd 4/3/ 02 10 :22 AM Page 29 6 29 2 Chapter 8 • leJOS Internals...

Ngày tải lên: 13/08/2014, 15:21

47 124 0
programming LEGO MINDSTORMS phần 9 doc

programming LEGO MINDSTORMS phần 9 doc

... newsgroup specifically devoted to Java programming for the RCX www.syngress.com 177 _LEGO_ Java_AppA.qxd 4 /2/ 02 2:54 PM Page 400 360 Chapter 9 • Programming LEGO MINDSTORMS with Jini package shared; import ... other chapters in this book. Figure 9 .20 Two LEGO MINDSTORMS Interacting via Jini 177 _LEGO_ Java_09.eps 4/3/ 02 1:11 PM Page 393 378 Chapter 9 • Programming LEGO M...

Ngày tải lên: 13/08/2014, 15:21

47 144 0
Programming Linux Games phần 2 doc

Programming Linux Games phần 2 doc

... substitution: CC=gcc CFLAGS=-O2 -W -Wall -pedantic LIBS=-lSDL -lpthread program: file1.c file2.c graphics.a $(CC) $(CFLAGS) -c file1.c file2.c $(CC) file1.o file2.o graphics.a $(LIBS) -o program 34 CHAPTER 2 variables ... time to move on. The next chapter concerns the programming toolkits you’re likely to use for programming Linux games, and after that we’ll get into programming with...

Ngày tải lên: 06/08/2014, 09:20

46 294 0
Advanced 3D Game Programming with DirectX - phần 2 doc

Advanced 3D Game Programming with DirectX - phần 2 doc

... pixel Color = D3DCOLOR_XRGB( rand() %25 5, rand() %25 5, rand() %25 5 ); // Set the pixel at x,y to the color pData[ Pitch 32* y+x]= Color; } // PART 2: Draw 10 random rectangles RECT ... supports 16-, 24 -, and 32- bit formats if( bpp == 16 ) d3dpp.BackBufferFormat = D3DFMT_R5G6B5; else if( bpp == 24 ) d3dpp.BackBufferFormat = D3DFMT_X8R8G8B8; else if( bpp ==...

Ngày tải lên: 08/08/2014, 23:20

71 486 0
Beginning Linux Programming Third Edition phần 2 doc

Beginning Linux Programming Third Edition phần 2 doc

... which we’ll use here (i.e., a comma-separated variable, or CSV, file). 82 Chapter 2 b544977 Ch 02. qxd 12/ 1/03 8:55 AM Page 82 Here documents might seem a rather curious feature, but they’re very powerful ... Composer CD 123 Cool sax Jazz Bix CD234 Classic violin Classical Bach CD345 Hits99 Pop Various Its corresponding tracks file will look like this: Catalog Track No. Title CD 123 1 S...

Ngày tải lên: 09/08/2014, 14:21

89 509 0
Symbian OS Explained Effective C++ Programming for Smartphones phần 2 doc

Symbian OS Explained Effective C++ Programming for Smartphones phần 2 doc

... them, but can also help you reduce documentation and support-time further down the track. Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com 22 LEAVES: SYMBIAN OS EXCEPTIONS At ... Merge and Split Unregistered Version - http://www.simpopdf.com 16 LEAVES: SYMBIAN OS EXCEPTIONS 2. 2 Heap Allocation Using new (ELeave) Let’s take a closer look at the use of new (ELeave) to...

Ngày tải lên: 13/08/2014, 08:21

40 448 0
programming LEGO MINDSTORMS phần 3 ppt

programming LEGO MINDSTORMS phần 3 ppt

... 5.We’ll choose the double www.syngress.com 177 _LEGO_ Java_03.qxd 4 /2/ 02 12: 02 PM Page 87 177 _LEGO_ Java_ 02. qxd 4 /2/ 02 12: 01 PM Page 80 78 Chapter 2 • The Java Communications API  The BlackBox ... are win32com.dll www.syngress.com 177 _LEGO_ Java_04.qxd 4 /2/ 02 1: 12 PM Page 1 12 72 Chapter 2 • The Java Communications API } public CommPort getCommPort(String portName, in...

Ngày tải lên: 13/08/2014, 15:21

47 125 0
programming LEGO MINDSTORMS phần 4 pps

programming LEGO MINDSTORMS phần 4 pps

... { s1prevtouch=s1touch; System.out.println("reading sensor 1: "+s1touch); } s2light=Sensor.S2.readValue(); if(s2light!=s2prevlight) { s2prevlight=s2light; System.out.println("reading sensor 2: "+s2light); } s3touch=Sensor.S3.readBooleanValue(); if(s3touch!=s3prevtouch) ... file, which contains one entry, for example: port=COM1 www.syngress.com 177 _LEGO_ Java_04.qxd 4 /2/ 0...

Ngày tải lên: 13/08/2014, 15:21

47 138 0
w