码迷,mamicode.com
首页 >  
搜索关键字:char s    ( 35907个结果
String、StringBuffer、StringBuilder相关性质和面试题
String、StringBuffer、StringBuilder相关性质和面试题 String基本性质 可以字面量赋值,也可以通过new造对象赋值; String声明为final类型,不可继承,且具有不可变性; String底层用final修饰的value[]数组存储,在jdk8.0之前用char ...
分类:其他好文   时间:2021-02-20 12:35:36    阅读次数:0
调度场算法&&中缀表达式=>后缀表达式
#include<stdio.h> #include<string.h> int main(void){ char ch,stro[1001],stack[1001]; int numstack[1001]; int top=-1,head=-1; /************************ ...
分类:编程语言   时间:2021-02-20 12:11:32    阅读次数:0
C 语言不同类型变量与“零值”比较的 if 语句的规范写法
注意:这里的 “零值” 可以是 0、0.0、NULL(空指针)、空白符、空字符串等 不同的数据类型对应不同的 “零值”,切勿比较错误 #1 int i 与 “零值” 比较的 if 语句 int 类型对应的 “零值” 为整数 0 ##1.1 代码 if(i == 0) 或 if(i != 0) #2 ...
分类:编程语言   时间:2021-02-20 12:03:12    阅读次数:0
windows服务
windows服务 unit untserverinfo; interface uses Windows, Messages, SysUtils, Classes, Forms, WinSvc, SvcMgr, System.Win.Registry; function ServiceGetStat ...
分类:Windows程序   时间:2021-02-20 11:57:25    阅读次数:0
包装类型(十六)
包装类型(十六) 我们已经知道,Java的数据类型分为两种,基本类型和引用类型 基本类型有:byte short int long float double char boolean 引用类型有:类和接口 引用类型可以赋值为null,但基本类型不能赋值为null String s = null; i ...
分类:其他好文   时间:2021-02-19 13:47:14    阅读次数:0
在windows上安装mysql
mysql下载地址:https://dev.mysql.com/downloads/mysql/8.0.html 下载后解压: 新建my.ini文件 [Client] port = 3306 [mysqld] #设置3306端口 port = 3306 # 设置mysql的安装目录,注意斜杠,需要两 ...
分类:数据库   时间:2021-02-19 13:34:12    阅读次数:0
C++的sting类使用
一: string作为C++常用的一个类,得熟悉它的一些常用的方法。在使用这个类之前,得加上头文件 #include <string> #include <stdexcept> //标准的异常类的库 二: (1)获取string的元素个数方法,还有访问string中的每个元素的方法 void tes ...
分类:编程语言   时间:2021-02-19 13:29:26    阅读次数:0
电动汽车模块
cat electric_car.py 1 #! /usr/bin/python 2 # -*- coding:utf-8 -*- 3 4 from car import Car 5 6 class Battery(object): 7 """ 8 模拟电瓶 9 """ 10 def __init_ ...
分类:其他好文   时间:2021-02-19 13:19:52    阅读次数:0
list容器实现简易的学生管理系统
#include<iostream> #include<list> #include<string> #include<cstdio> using namespace std; //使用list(双向链表)容器对象实现简单的学生管理系统 //list简单使用 class Student{ //学生基 ...
分类:其他好文   时间:2021-02-19 13:03:05    阅读次数:0
我的第九个代码
我的第九个代码 #define _CRT_SECURE_NO_WARNINGS 1#include<stdio.h> struct Book{char name[20];short int price;}; int main(){struct Book b1 = { "C语言程序设计",45 };p ...
分类:其他好文   时间:2021-02-19 12:52:44    阅读次数:0
35907条   上一页 1 ... 32 33 34 35 36 ... 3591 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!