ICode9

精准搜索请尝试: 精确搜索
  • while (true) 循环2022-07-12 18:04:55

    //这是查询是否有上级public static function getPaddress($address){ $res = self::where(['address'=>$address])->find(); if($res && $res['paddress']){ return $res['paddress']; }else{

  • 自定义数组2022-02-24 21:02:23

    我的初衷使用模板自定义一个数组,可以存储内置数据类型和自定义数据类型 首先,内置数据类型int测试是成功的 #include<iostream> using namespace std; template<class T> class MyArray { public: MyArray(int capacity) { cout << "有参构造调用" << endl; this->m_capaci

  • 数组类的封装(代码实现) ——c++2022-02-08 11:03:56

    (强换训练)数组类封装 通过代码实现数组类的封装: 这个时候如果想访问数组的元素,那么就得调用数组的接口 #pragma once #define _CRT_SECURE_NO_WARNINGS 1 #include<iostream> using namespace std; class myarray { public: myarray()//默认构造 可以给100容量 { cout

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有