11 2017 档案
摘要:#include<iostream> using namespace std ;int main (){int n,a, i,s,t;cout<<"请输入a,n"<<endl;cin>>a>>n;s=0;t=a;for(i=1;i<=n;i++){s+=t;t=t*10+a;}cout<<"s=a+
阅读全文
摘要:#include <stdio.h> #define N 1000 int num[N]; void gray(int n) { int k,i; if(n==1) {num[0]=0;num[1]=1;return;} gray(n-1); k=1<<(n-1); for(i=0;i<k;++i)
阅读全文
摘要:STACK1 SEGMENT STACK DW 256 DUP(?)STACK1 ENDS DATA SEGMENTMES1 DB 'The ascii code of decimal code are:$'BUF DB 30H,30H,30H,31H,32H DB 10H DUP(0)DDATA
阅读全文
摘要:STACK1 SEGMENT STACK DW 256 DUP(?)STACK1 ENDSDATA SEGMENT MES DB 'Press any key to exit!',0AH,0DH,0AH,0DH,'$'MES1 DB 'SHOW A AS HEX:',0AH,0DH,'$'SD DB
阅读全文
摘要:import java.awt.*;import java.awt.event.*;import javax.swing.*;public class ThreadFrame extends JFrame implements ActionListener { JTextField showWord
阅读全文
摘要:import java.awt.*;import javax.swing.*;import java.awt.event.*;public class Earth extends JLabel implements ActionListener { //标签类JLabel的子类--刻画地球 JLab
阅读全文
摘要:counter1.java: import java.awt.*;import java.awt.event.*;import java.applet.*; public class Counter1 extends Applet { // 定义一个Applet类的子类Counter1 privat
阅读全文
摘要:有异常: class Calculate1{ static void calculate(int num1,int num2){ int nResult; nResult=num1+num2; System.out.println("和="+nResult); nResult=num1-num2;
阅读全文
摘要:import java.util.Scanner;public class Day { public static void main(String[] args) { int[] days = {31,0,31,30,31,30,31,31,30,31,30,31}; Scanner in = n
阅读全文
摘要:计算货物质量并分成三类: interface ComputerWeight { //定义一个接口ComputerWeight public double computeWeight();}class Television implements ComputerWeight { //定义一个类Tele
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<stdlib.h>#include<time.h>#include<windows.h> void SSTF (int a[],int n){ int temp; int now; in
阅读全文
摘要:;T8254-1.asm ;查看端口资源分配情况,记录实验系统I/O端口始地址 INTR_IVADD EQU 003CH ;INTR对应的中断矢量地址 IOY0 EQU 0C000H ;片选IOY0对应的端口始地址MY8254_COUNT0 EQU IOY0+00H*2 ;8254计数器0端口地址M
阅读全文
摘要:#include "stdio.h" #include <stdlib.h> #include <conio.h> #include<windows.h> #define getpch(type) (type*)malloc(sizeof(type)) #define NULL 0 struct p
阅读全文

浙公网安备 33010602011771号