首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
function makeTree()
        {
            $areas = $this->arr();
            $areaTree = [];
            foreach ($areas as $id=>$area)
            {
                if(isset($areas[$area["pid"]]))
                {
                    $areas[$area["pid"]]["children"][] = &$areas[$id];
                } 
                else 
                {
......................
阅读全部 | 小轩88 贴于 2020年9月2日 16:07     hide bbsi
package com.wzq.demo01;

/**
 * 业务接口
 * 
 * @author Muscleape
 *
 */
public interface UserService {
/**
 * 增加一个用户
 */
......................
阅读全部 | YT_zhai 贴于 2020年9月1日 10:41     hide bbsi
%  程序说明:目标跟踪程序,实现运动弹头对运动物体的三维跟踪,主函数
%  状态方程: x(t)=Ax(t-1)+Bu(t-1)+w(t)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 clc;
 clear;
 close all;

delta_t=0.01;     %测量周期,采样周期
longa=10000;      %机动时间常数的倒数,即机动频率
tf=6;   
T=tf/delta_t;     %时间长度3.7s,一共采用T=370次
%状态转移矩阵,用F表示
......................
阅读全部 | jmzhp 贴于 2020年8月30日 15:49     hide bbsi
#include<cstdio>
char st[100];
int main()
{
        
                scanf("%s",st);
                for (int i = 0;st[i];++i)                                                    
                    {
                            if('A' <= st[i] <= 'Z')
                            st[i] += 1;
                    }                                                            
                      printf("%s\n",st)
......................
阅读全部 | Ivan0610 贴于 2020年8月19日 12:54     hide bbsi
#include <iostream>
using namespace std;

string res(string s)
{
    int i = 0; 
    int j = s.length() - 1;
    while (i < j)
    {
        swap(s[i], s[j]);
        i++;
        j--;
......................
阅读全部 | 楚煜 贴于 2020年8月12日 21:37     hide bbsi
#include <stdio.h>

int main()
{
    int n[30][30],i,k,j;
    
    while(scanf("%d",k)!=EOF){
        
        for(i=0;i<k;i++){
            n[i][0]=1;
            for(j=0;j<k;j++){
                if(j==i)
......................
阅读全部 | miracle1114 贴于 2020年8月10日 10:43     hide bbsi
#include <iostream>
using namespace std;

template <class T>
T accumulator(int count)
{
    T d, sum = 0;
    for (int i = 0; i < count; ++i){
        cout << "data" << i << " = ";
        cin >> d;
        sum += d;
    }
......................
阅读全部 | gougoudan 贴于 2020年8月10日 10:18     hide bbsi
#include <iostream>
#include <string>
using namespace std;

class line
{
public:
    line() { setValues(); };    // default constructor which calls setValues()
    line(const line &n) :a(n.a), b(n.b), c(n.c){}; // copy constructor
    void setValues();           // prompts users to input coefficients
    void printEquation();       // print the equation
    friend void calIntersection(line &l1, line &l2); // calculate the intersection of two lines
......................
阅读全部 | gougoudan 贴于 2020年8月10日 10:06     hide bbsi
#include <iostream>
#include <string>
using namespace std;

class CPU
{
public:
    CPU(float freq, float price);
    void upgradeCPU();
    void printCPUInfo();
private:
    float CPU_Frequency;
......................
阅读全部 | gougoudan 贴于 2020年8月10日 09:44     hide bbsi
#include <iostream>
using namespace std;
class Mortgage
{
protected:
    double  Payment;        // the monthly payment
    double  Loan;           // the dollar amount of the loan
    double  Rate;           // the annual interest rate
    double  Years;          // the number of years of the loan

public:
    Mortgage()
......................
阅读全部 | gougoudan 贴于 2020年8月10日 09:20     hide bbsi
上一页 84 85 86 87 88 89 90 91 92 93 下一页