java中的可变参数
package com.xiao.parameter; public class Demo { public static void main(String[] args) {
package com.xiao.parameter; public class Demo { public static void main(String[] args) {
死循环: for(;;){}
增强for循环 package com.xiao.demo; public class ForStrong { public static void&nb
源码:
package com.xiao.switchs; public class Demo { public static void main(String[] args) { &nbs
package com.xiao.scanner; import java.util.Scanner; public class Demo { public static void main(String[] args) {
当你在代码中加入文档注释时,运行Javadoc xxx.java就会生成文档,点击index.html就会在浏览器中看到
文档注释: /** * * @param name * @return */ /** * @author Xiaoxia
public class Demo1 { /* 实例变量:从属于对象;如果不自行初始化,这个类型的默认值 布尔值:默认值是false 除了基本类型,其余的默认值都是null &nb
#include "stm32f10x.h" #include "stdio.h" static GPIO_InitTypeDef GPIO_InitStructure; static NVIC_InitTypeDef NVIC_InitStructure;
void *memset(void *str, int c, size_t n) 复制字符 c(一个无符号字符)到参数 str 所指向的字符串的前 n 个字符。
原型:void *memset(void *str, int c, size_t n)
#include <string.h> main(){ char s[] = "ab-cd : ef;gh :i-jkl;mnop;qrs-tu: vwx-y;z"; char *delim
#include "stm32f10x.h" #include "stdio.h" static GPIO_InitTypeDef GPIO_InitStructure; static USART_InitTypeDef USART_InitStructure; #define&
#include "stm32f10x.h" #include "stdio.h" static GPIO_InitTypeDef GPIO_InitStructure; static NVIC_InitTypeDef NVIC_InitStructure;
#include "stm32f10x.h" #include "sys.h" static GPIO_InitTypeDef GPIO_InitStructure; static TIM_TimeBaseInitTypeDef TIM_TimeBaseStructure
#include "stm32f10x.h" #include "stdio.h" static GPIO_InitTypeDef GPIO_InitStructure; static NVIC_InitTypeDef NVIC_InitStructure;
代码不太完整,因为我的stm32板子的灯的引脚没有定时器所以就写个差不多的模板供以后参考
#include "stm32f10x.h" #include "sys.h" static GPIO_InitTypeDef GPIO_InitStructure; static TIM
#include "stm32f10x.h" static GPIO_InitTypeDef GPIO_InitStructure; static NVIC_InitTypeDef NVIC_InitStructure; static TIM_TimeBaseInitTypeD
#include "stm32f10x.h" static GPIO_InitTypeDef GPIO_InitStructure; #define PB5OUT(n) *(volatile uint32_t *)(0x42000000+((uint32_t
#include "stm32f10x.h" static GPIO_InitTypeDef GPIO_InitStructure; #define PB5OUT(n) *(volatile uint32_t *)(0x42000000+((uint32_t
#include "stm32f10x.h" static EXTI_InitTypeDef EXTI_InitStructure; static GPIO_InitTypeDef GPIO_InitStructure; static NVIC_InitTypeDef