码迷,mamicode.com
首页 > 全部
实验三
任务一 #include<stdio.h> #include<math.h> int main(){ float a, b, c, x1, x2; float delta, real, imag; printf("Enter a, b, c: "); while(scanf("%f%f%f", &a ...
分类:其他好文   时间:2020-11-21 12:42:08    阅读次数:28
Codeforces Round #684 (Div. 2)【ABC1C2】
比赛链接:https://codeforces.com/contest/1440 A. Buy the String 题解 枚举字符串中 $0$ 或 $1$ 的个数即可。 代码 #include <bits/stdc++.h> using namespace std; int main() { io ...
分类:其他好文   时间:2020-11-21 12:41:54    阅读次数:32
MySQL与Oracle常用函数
日期转字符串 // Oracle to_char(sysdate,'yyyy-MM-dd HH24:mm:ss') // MySQL select date_format(now(),'%Y-%m-%d %H:%i:%s') 数字转字符串 //Oracle to_char(1) //MySQL se ...
分类:数据库   时间:2020-11-21 12:41:30    阅读次数:23
节点操作
父节点操作: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta htt ...
分类:其他好文   时间:2020-11-21 12:41:01    阅读次数:28
继承中的this
父类: public class Parent { //看这里的this指的是什么 public Parent() { this.say(); } protected void say() { System.out.println("father"); } } 子类: public class Su ...
分类:其他好文   时间:2020-11-21 12:40:44    阅读次数:24
springboot之Mongo
MongoDB是基于分布式文件存储的数据库。 MongoDB 是一个高性能,开源,无模式的文档型数据库,是当前 NoSql 数据库中比较热门的一种。 他支持的数据结构非常松散,是类似 json 的 bjson 格式,因此可以存储比较复杂的数据类型。 MongoDB 最大的特点是他支持的查询语言非常强 ...
分类:编程语言   时间:2020-11-21 12:40:28    阅读次数:25
C# 中大端序与小端序
C# 中大端序与小端序 static void Main(string[] args) { uint value = 0x12345678; Console.WriteLine("原始字节序:0x12345678"); byte[] bigLittleEndian = BitConverter.Ge ...
分类:Windows程序   时间:2020-11-21 12:40:13    阅读次数:25
Linux配置NTP时间同步
Linux配置NTP时间同步 一、ntp和ntpdate区别 两个服务都是centos自带的(centos7中不自带ntp)。ntp的安装包名是ntp;ntpdate的安装包是ntpdate。他们并非由一个安装包提供。 ntp守护进程为ntpd,配置文件是/etc/ntp.conf ntpdate用 ...
分类:系统相关   时间:2020-11-21 12:39:54    阅读次数:16
scanf和printf的格式
scanf()函数是通用终端格式bai化输入函数,du它从标准输入设备(键盘)读取输zhi入的信息。可以读入任dao何固有类型的数据并自动把数值变换成适当的机内格式。其调用格式为:scanf(“<格式化字符串>”,<地址表>);scanf()函数返回成功赋值的数据项数,出错时则返回EOF; 其控制串 ...
分类:其他好文   时间:2020-11-21 12:39:38    阅读次数:12
C++内联函数
@(C++内联函数) #include <iostream> using namespace std; inline int Max(int a, int b) { if (a > b) return a; else return b; } int main() { cout << Max(23, ...
分类:编程语言   时间:2020-11-21 12:39:21    阅读次数:17
java程序性能分析之thread dump和heap dump
java程序性能分析之thread dump和heap dump 博客分类: java基础 javajmapjstack 一.dump基本概念 在故障定位(尤其是out of memory)和性能分析的时候,经常会用到一些文件来帮助我们排除代码问题。这些文件记录了JVM运行期间的内存占用、线程执行等 ...
分类:编程语言   时间:2020-11-21 12:39:10    阅读次数:19
如何更正 VLOOKUP 函数中的 #N/A 错误
如何更正 VLOOKUP 函数中的 #N/A 错误 本主题介绍函数的错误结果的最常见的VLOOKUP原因,并提供改用INDEX和MATCH的建议。 提示: 另外,请参阅课程摘要卡: VLOOKUP 疑难解答提示,可在方便的 PDF 文件中呈现 #NA 问题的常见原因。 可与他人共享该 PDF 或将其 ...
分类:其他好文   时间:2020-11-21 12:38:48    阅读次数:14
全国高校程序设计大赛 素数和偶数
全国高校程序设计大赛 素数和偶数 题目描述 输入N个整数, 分2行分别输出其中的素数和偶数。 输入说明:第一行输入整数个数N; 第二行输入这N个整数; 输出说明:第一行输出素数, 第二_行输出偶数;备往:行如果没有任何数据,输出空行。 输入样例: 10 11 12 13 24 25 26 37 38 ...
分类:其他好文   时间:2020-11-21 12:38:37    阅读次数:11
java位运算符解释
public static void main(String[] args) { /** * 位运算符 * A = 0010 1100 * B = 0000 1101 * * A&B = 0000 1100 两个为1才为1 与 * A|B = 0011 1101 有一个为1就为1 或 * A^B = ...
分类:编程语言   时间:2020-11-21 12:38:16    阅读次数:16
4. 寻找两个正序数组的中位数 Median of Two Sorted Arrays
Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays. The overall run time complexity shou ...
分类:编程语言   时间:2020-11-21 12:37:58    阅读次数:15
数据库行转列、列转行、字段拼接
列转行 select prd_no_chg_y, SUBSTRING(t.prd_no_chg_y, number ,CHARINDEX(';',t.prd_no_chg_y+';',number)-number) prd_no_chg from tb t,master..spt_values s ...
分类:数据库   时间:2020-11-21 12:37:40    阅读次数:11
RESTful API
REST描述的是在网络中client和server的一种交互形式;REST本身不实用,实用的是如何设计 RESTful API(REST风格的网络接口); Server提供的RESTful API中,URL中只使用名词来指定资源,原则上不使用动词。“资源”是REST架构或者说整个网络处理的核心。比如 ...
分类:Windows程序   时间:2020-11-21 12:37:23    阅读次数:15
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!