码迷,mamicode.com
首页 >  
搜索关键字:nginx main    ( 89968个结果
golang 1. hello.go
package main //程序的包名 /* import "fmt" import "time" */ import ( "fmt" "time" ) //main函数 func main() { //函数的{ 一定是 和函数名在同一行的,否则编译错误 //golang中的表达式,加";", 和 ...
分类:其他好文   时间:2021-06-28 20:07:48    阅读次数:0
golang 2. 变量
package main /* 四种变量的声明方式 */ import ( "fmt" ) //声明全局变量 方法一、方法二、方法三是可以的 var gA int = 100 var gB = 200 //用方法四来声明全局变量 // := 只能够用在 函数体内来声明 //gC := 200 fun ...
分类:其他好文   时间:2021-06-28 20:02:14    阅读次数:0
Springboot学习(一) 自动配置特性
一、 在主程序中配置 @SpringBootApplication 相当于: //@SpringBootConfiguration //@EnableAutoConfiguration //@ComponentScan("spring.main.spring"), //SpringBootAppli ...
分类:编程语言   时间:2021-06-28 19:53:22    阅读次数:0
GO的Rand随机数不一样
package main import ( "fmt" "math/rand" "sync" "time" ) var wg sync.WaitGroup func f1(i int) { wg.Done() fmt.Println(i) } func main() { rand.Seed(time ...
分类:其他好文   时间:2021-06-28 19:53:07    阅读次数:0
[部署日记]GO在Visual Studio Code初次运行时提示go: go.mod file not found in current directory or any parent directory; see 'go help modules'
我裂开,一波未平一波又起... 按照MS教程上填写 package main import "fmt" func main() { fmt.Println("Hello World!") } 然后无脑搜索教程,其中修改了launch.json无济于事,按理来说新手入门的话应该VSC的配置文件是不需要 ...
分类:其他好文   时间:2021-06-28 19:44:16    阅读次数:0
Java-IO流系列-FileReader与FileWriter
FileReader读取文件 查看文件的相对路径 示例一:查看文件的相对路径 package com.dreamcold.io; import java.io.File; public class Demo01 { public static void main(String[] args) { F ...
分类:编程语言   时间:2021-06-28 19:39:13    阅读次数:0
9.求整数序列中的主元素
1.题目如下 2.解题代码 #include<stdio.h> int majority(int a[],int n){ int i,count=1,c=a[0]; for(i=1;i<n;i++) { if(a[i]==c) count++; else { if(count>0) count--; ...
分类:其他好文   时间:2021-06-28 19:33:29    阅读次数:0
C++二叉树探究
本文将对C++二叉树进行分析和代码实现。 树 定义 **树(Tree)**是n(n>=0)个结点的有限集。n=0时称为空树。在任意一颗非空树中: 1)有且仅有一个特定的称为根(Root)的结点; 2)当n>1时,其余结点可分为m(m>0)个互不相交的有限集T1、T2、......、Tn,其中每一个集 ...
分类:编程语言   时间:2021-06-28 19:12:51    阅读次数:0
一个新的发现
发现自己的基础太不牢固了 #include<bits/stdc++.h> using namespace std; int cnt=0; int dfs(int x) { if(x>=100)return x; dfs(x+1); dfs(x+2); } int main() { cout<<dfs ...
分类:其他好文   时间:2021-06-28 19:03:09    阅读次数:0
IfElsePractise
/* 指定考试成绩,判断成绩的等级。 90-100 优秀 80-89 好 70-79 良 60-69 及格 60以下 不及格 */ public class IfElsePractise{ public static void main(String[] args){ int score = 98; ...
分类:其他好文   时间:2021-06-28 19:00:36    阅读次数:0
89968条   上一页 1 ... 7 8 9 10 11 ... 8997 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!