public class Applicaition { public static void main(String[] args) { //方法的调用只和左边,定义的数据类型有关 A a = new A(); a.test(); //父类的引用b指向了子类 //子类重写了父类的方法 B b = n ...
分类:
其他好文 时间:
2021-02-16 12:32:51
阅读次数:
0
1.小写输出 _str_t Val("AFSDFSasdfsdf"); cout<< Val.toLowerCase().data()<<endl; 2.中文输出 _str_t Val("中国人"); cout<< Val.data()<<endl; ...
分类:
其他好文 时间:
2021-02-16 12:29:18
阅读次数:
0
Getopts Let’s say you want to allow a user to pass a -v flag to turn on verbose logging in a script. Manually parsing out options passed to a script i ...
分类:
其他好文 时间:
2021-02-16 12:03:18
阅读次数:
0
{ path: '/teacher', component: Layout, redirect: '/teacher/table', //重定向跳转 name: '讲师管理', meta: { title: '讲师管理', icon: 'example' }, //title页面标题,icon头像 ...
分类:
其他好文 时间:
2021-02-15 12:11:54
阅读次数:
0
我遇到的tomcat乱码可以分几种: 测试代码: @RestController public class TestController { @RequestMapping("/a1") public String test(){ System.out.println("TestController ...
分类:
编程语言 时间:
2021-02-15 11:51:13
阅读次数:
0
java基本结构 顺序结构 一句一句往下执行,顺序结构是最简单的语法结构。 1 ? 2 public class Hello{ 3 public static void main(String []args) 4 { 5 System.out.println("Hello1"); 6 System. ...
分类:
编程语言 时间:
2021-02-15 11:49:33
阅读次数:
0
LeafTest.java package com.atguigu.java3; //总结:由父及子,静态先行 class Root{ static{ System.out.println("Root的静态初始化块"); } { System.out.println("Root的普通初始化块"); ...
分类:
其他好文 时间:
2021-02-10 13:16:03
阅读次数:
0
Given the root of a binary tree, return the leftmost value in the last row of the tree. Example 1: Input: root = [2,1,3] Output: 1 Example 2: Input: r ...
分类:
其他好文 时间:
2021-02-10 12:54:11
阅读次数:
0
Given a string s of '(' , ')' and lowercase English characters. Your task is to remove the minimum number of parentheses ( '(' or ')', in any position ...
分类:
其他好文 时间:
2021-02-09 12:12:28
阅读次数:
0
//更改I/O缓冲大小 //set_buffer.c#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <sys/socket.h>void error_handling(char*message); int main(i ...
分类:
其他好文 时间:
2021-02-09 12:11:39
阅读次数:
0