1.实现动态显示当前计算机时间 #include <stdio.h> #include <time.h> int main() { int h = 0; int m = 0; int s = 0; int t = 0;//存储time函数的返回值 while(1){ t = time(0);//取得当前的时间(秒的总和) //将t拆分为时分秒 s = t%60; m = t%3600/60; h = (t%(24*3600)/3600 + 8)%24;//东8区 printf(&q
import java.awt.*; import java.applet.Applet; public class Blocks extends Applet implements Runnable { Dimension d; Font largefont= new Font("Helvetica", Font.BOLD, 28); Font smallfont= new Font("Helvetica", Font.BOLD, 10); Color textc