码迷,mamicode.com
首页 >  
搜索关键字:read case while    ( 57414个结果
Java switch case 语句
文章搬运,原文链接 switch case 语句判断一个变量与一系列值中某个值是否相等,每个值称为一个分支。 语法 switch case 语句语法格式如下: switch(expression){ case value : //语句 break; //可选 case value : //语句 br ...
分类:编程语言   时间:2021-02-18 13:32:17    阅读次数:0
并发编程的三个特征
1.原子性(Atomicity) 定义:不可再分割的操作 Java内存模型直接保证原子性变量操作包括:read、load、assign、use、store 和 write 这6个 2.可见性(Visibility) 定义:是指当一个线程修改了一个共享变量的值时,其他线程能够立即的指这个修改 java ...
分类:其他好文   时间:2021-02-18 13:27:59    阅读次数:0
(STM32) Internal Flash Access
Introdution STM32Fxxx 系列的MCU, 似乎有分類成 low-, medium-, high-, XL-density 4種不同Flash大小的產品。 個人是常常忘記所以在此筆記。 Flash : 通常放置程式碼, const常數變數, 掉電資料不消失。 存取速度較慢 RAM : ...
分类:数据库   时间:2021-02-18 13:22:05    阅读次数:0
RFC1925 The Twelve Networking Truths
(1) It Has To Work. (2) No matter how hard you push and no matter what the priority, you can't increase the speed of light. (2a) (corollary). No matte ...
分类:Web程序   时间:2021-02-18 13:21:47    阅读次数:0
解决C++编译程序后闪退的方法
解决C++编译程序后闪退的方法 1)在return 0;前添加一条while(1); 2)编译不直接用F5,而是Ctrl+F5。 以上两种方法皆可解决。 ...
分类:编程语言   时间:2021-02-18 13:15:50    阅读次数:0
Sheel 脚本接收键盘输入
一、通过read 接收 1. 通过vim 定义一个test.sh的脚本 vim test.sh 2. 编写shell脚本 #! /bin/bash read name echo "$name It is a test" 3. 添加脚本执行权限 chmod +x test.sh 4. 执行脚本 [ro ...
分类:其他好文   时间:2021-02-18 13:13:07    阅读次数:0
POJ3784 Running Median 题解
题目描述 For this problem, you will write a program that reads in a sequence of 32-bit signed integers. After each odd-indexed value is read, output the m ...
分类:其他好文   时间:2021-02-18 13:06:04    阅读次数:0
leetcode1539 第k个缺失的正整数
思路1: 暴力枚举。 实现1: 1 class Solution 2 { 3 public: 4 int findKthPositive(vector<int>& arr, int k) 5 { 6 int n = arr.size(); 7 vector<int> cnt(2001, 0); 8 ...
分类:其他好文   时间:2021-02-18 12:54:30    阅读次数:0
leetcode 82 删除排序列表中重复元素
没啥太难的思路,代码如下: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * List ...
分类:编程语言   时间:2021-02-18 12:53:10    阅读次数:0
JavaSE-统计字符在字符串中出现的次数
/** * 方法一:使用indexOf和subString方法,循环判断并截取 */ public static void getStrCount1(String str, String con) { int count = 0; while (str.indexOf(con) >= 0) { // ...
分类:编程语言   时间:2021-02-17 14:46:16    阅读次数:0
57414条   上一页 1 ... 62 63 64 65 66 ... 5742 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!