首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include <REGX52.H>
sbit speaker=P2^1;
 
unsigned char timer0h,timer0l,time;
//定义每个音阶的长度的数组 《世上只有妈妈好》
code unsigned char song_mother[]=
{
6,2,3,5,2,1 ,3,2,2,5,2,2, 1,3,2,6,2,1,5,2,1, 
6,2,4,3,2,2, 5,2,1, 6,2,1, 5,2,2, 3,2,1 ,2,2,1,1,2,1,
6,1,1,5,2,1, 3,2,1 ,2,2,4, 2,2,3, 3,2,1, 5,2,2,
5,2,1,6,2,1, 3,2,2 ,2,2,2 ,1,2,4, 5,2,3, 3,2,1 ,
2,2,1,1,2,1 ,6,1,1, 1,2,1, 5,1,6, 0,0,0  
......................
阅读全部 | tianjingjian 贴于 2020年1月21日 16:55     hide bbsi
package myapplet;
 import java.applet.*;
 import java.awt.*;
 public class Myaplt extends Applet{
     public void init()
     {
         System.out.println("init");
     }
     public void start()
     {
         System.out.println("start");
     }
......................
阅读全部 | tianjingjian 贴于 2020年1月21日 15:43     hide bbsi
#include <stdio.h>

int main() {
printf("我在编程中国学C语言\n\n");

// 练习一下循环的使用
int i;
for (i=1; i<=20; i++) {
printf("我爱编程中国 %d 次\n", i);
}

printf("\n\n编程中国送我一颗小心心:");
......................
阅读全部 | tianjingjian 贴于 2020年1月21日 15:31     hide bbsi
#include <stdio.h>

int main() {
printf("我在编程中国学C语言\n\n");

// 练习一下循环的使用
int i;
for (i=1; i<=20; i++) {
printf("我爱编程中国 %d 次\n", i);
}

printf("\n\n编程中国送我一颗小心心:");
......................
阅读全部 | bczg12525 贴于 2020年1月11日 19:48     hide bbsi
public class LCS {
public int findLCS(String A,String B){
int n = A.length();
int m = B.length();
char[] a = A.toCharArray();
char[] b = B.toCharArray();
int [][] dp = new int[n][m];
for(int i = 0;i<n;i++){//第一列
if(a[i] == b[0]){
dp[i][0] = 1;
for(int j = i+1;j<n;j++){
dp[j][0] = 1;
......................
阅读全部 | sugarbank 贴于 2020年1月9日 18:26     hide bbsi
public class LCS {
public int findLCS(String A,String B){
int n = A.length();
int m = B.length();
char[] a = A.toCharArray();
char[] b = B.toCharArray();
int [][] dp = new int[n][m];
for(int i = 0;i<n;i++){//第一列
if(a[i] == b[0]){
dp[i][0] = 1;
for(int j = i+1;j<n;j++){
dp[j][0] = 1;
......................
阅读全部 | sugarbank 贴于 2020年1月9日 18:25     hide bbsi
Dim cn As New ADODB.Connection, rs As New ADODB.Recordset
 cn.CursorLocation = adUseClient
 cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=" & App.Path & "\钢网清单.xls;Extended Properties='Excel 8.0;HDR=Yes'"
If rs.State = adStateOpen Then rs.Close
 rs.Open "select * from [sheet1$]", cn, adOpenDynamic, adLockOptimistic
 Set DataGrid1.DataSource = rs
 DataGrid1.AllowUpdate = True
阅读全部 | lsj253307 贴于 2020年1月8日 18:30     hide bbsi
//reduce数组去重
let arr = [1,2,3,4,5,2,3]
let res=arr.reduce((pre,cur)=>{
    if(!pre.includes(cur)){
        pre.push(cur)
    }
    return pre
},[])
console.log(res)
//reduce数组去重
let newArr = Array.from(new Set(arr));
console.log(newArr);
......................
阅读全部 | Wyl820108 贴于 2019年12月31日 15:09     hide bbsi
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <stdint.h>
#include <limits.h>
#include <float.h>

#define _CRT_SECURE_NO_WARNINGS
#define LN10    2.302585092994045684018
#define RLN10  0.43429448190325182765

#define  MAX_LEN  128
......................
阅读全部 | liangbch 贴于 2019年12月25日 09:07     hide bbsi
#include <bits/stdc++.h>

int main(){
    return 0;
}
阅读全部 | zfyybfq 贴于 2019年12月22日 16:40     hide bbsi
上一页 111 112 113 114 115 116 117 118 119 120 下一页