public class CircleMenuCanvas extends Canvas implements Runnable{
double pi = Math.PI
public final int MENURIGHT = 1
public final int MENULEFT = 0
Image menuImage[] = new Image[6]
int []jiaodu = {330,30,90,150,210,270}
String menuName[] = {"新游戏","继续游戏","游戏设置","高分榜","游戏帮助 ...
cordic methods describe essentially the same algorithm that with suitably chosen inputs can be used to calculate a whole range of scientific functions including sin, cos, tan, arctan, arcsin, arccos, sinh, cosh, tanh, arctanh, log, exp, square root and even multiply and divide.
the method dates ba ...
Enhanced version of the Serial Peripheral Interface available on Motorola s MC68HC11 family of CPUs.Enhancements include a wider supported operating frequency range, 4deep read and write fifos, and programmable transfer count dependent interrupt generation.
As with the SPI found in MC68HC11 processo ...
Program Description: The program asks the user to choice from the menu an option
A. Check to see if a number is prime.
B. Count the number of vowels in a line.
X. Exit the program.
This program sets up EVA Timer 1, EVA Timer 2, EVB Timer 3 and EVB Timer 4 to fire an interrupt on a period overflow. A count is kept each time each interrupt passes through the interrupt service routine. EVA Timer 1 has the shortest period while EVB Timer4 has the longest period.
This program sets up EVA Timer 1, EVA Timer 2, EVB Timer 3 and EVB Timer 4 to fire an interrupt on a period overflow. A count is kept each time each interrupt passes through the interrupt service routine.
HashTable实例
public class HashTable_msg {
public HashTable_msg()
{
String sum_sql="select mobilenum,count(*) from SJSJ_Msg where (left(in_date,6)=(select left(CONVERT(varchar(12) , getdate(), 112 ),6)))group by mobilenum"
Hashtable<String,Integer> ht = new Hashtable<String,Integer>() ...
This experiment uses the Blackfi n BF533/BF537 EZ-KIT to run a simple FIR fi lter on stereo
channels at a sampling frequency of 48 kHz. The
CYCLE register is embedded in the main
program (
process_data.c) to benchmark the time needed to process two FIR fi lters. A
background telemetry channel (B ...