- 博客(20)
- 问答 (4)
- 收藏
- 关注
原创 我自己想解答问题
在实际中,由于中小微企业规模相对较小,也缺少抵押资产,因此银行通常是依据信贷政策、企业的交易票据信息和上下游企业的影响力,向实力强、供求关系稳定的企业提供贷款,并可以对信誉高、信贷风险小的企业给予利率优惠。附件1~3分别给出了123家有信贷记录企业的相关数据、302家无信贷记录企业的相关数据和贷款利率与客户流失率关系的2019年统计数据。综合考虑附件2中各企业的信贷风险和可能的突发因素(例如:新冠病毒疫情)对各企业的影响,给出该银行在年度信贷总额为1亿元时的信贷调整策略。
2023-09-05 16:34:09 154
原创 c语言之结构体
结构体类型中的成员名可以和结构体外的变量名相同定义结构体和变量的同时直接为结构体变量赋值:struct student{int num;char name[20];float score;char department[30];}stu1 = {10001,“陈冲”,87.5,“计算机系”};定义结构体变量是为变量赋值:struct student{int num;char name[20];float score;char department[30];};struct st
2021-09-03 21:04:02 212
原创 c语言指针进阶
指针变量是一种变量,指针是一个地址错误写法:int *a,b,c;a是指针变量 b,c是普通变量在被调用函数(子函数)中,不可以通过修改指针的办法来修改原来变量的值,函数调用完成以后,形式参数被释放(总之:指针变量的值无法回去,只可以修改指针变量对应地址值)指针变量和原变量指针放在不同的内存里面他们只是指向同一个数,交换两个数的指针变量,原变量指针不发生变化,原变量也就不会发生变化数组名地址无法自增或自减,也不可以进行加减后取值,但是可以通过加一个数来作为判断数组结束依据...
2021-07-20 18:23:08 485
原创 c语言的指针学习笔记
%p表示输出这个指针%u表示无符号10进制整型%lu表示输出无符号长整型整数 (long unsigned)c++什么时候能连等第一种:int a=b=7;第二种:int a,b;a=b=7;第一种,如果b没有在前面定义就错,否则是对的第二种一定是对的任何没有定义的都不能使用 int a = b = 7; 只是定义了a,没定义bint a[] = {1,2,3};int b[];//等价于–>int * const b;//不可改变(不能再被赋值了),宏定义int *c;b
2021-06-28 19:07:16 301
原创 【蓝桥杯(51) STC15F2K60S2】之 “外部中断实验“
相关代码:#include “STC15F2K60S2.H”#include “intrins.h”sbit L1 = P0^0;sbit L8 = P0^7;void Delay1000ms() //@11.0592MHz{unsigned char i, j, k;_nop_();_nop_();i = 43;j = 6;k = 203;do{ do { while (--k); } while (--j);} while (--i);}void work
2021-06-24 16:32:22 691
原创 【蓝桥杯(51) STC15F2K60S2】之 “数码管实验“
相关代码:#include “STC15F2K60S2.h”unsigned char SMG_duanma[18]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x80,0xc6,0xc0,0x80,0x8e,0xbf,0x7f};unsigned char SMG_weima[8]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};unsigned char ScanIndex=0;uns
2021-06-24 16:31:25 343
原创 【蓝桥杯(51) STC15F2K60S2】之 “频率测量实验“
相关代码:#include “STC15F2K60S2.H”#include “absacc.h”unsigned char SMGNoDot_CA[10] = {0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};unsigned char count;unsigned char dat;unsigned char num;void config(){TH0 = 0XFF;TL0 = 0XFF;TH1 = (65535 - 50000
2021-06-24 16:30:26 422
原创 【蓝桥杯(51) STC15F2K60S2】之 “跑马灯实验“
相关代码:#include “STC15F2K60S2.H”#include “intrins.h”unsigned char i,j,k;void Delay100ms() //@11.0592MHz{unsigned char i, j, k;_nop_();_nop_();i = 5;j = 52;k = 195;do{ do { while (--k); } while (--j);} while (--i);}void InitHC138(unsign
2021-06-24 16:28:56 403
原创 【蓝桥杯(51) STC15F2K60S2】之 “秒表(定时器完成)实验“
相关代码:#include “STC15F2K60S2.h”#include “intrins.h”#define uchar unsigned charuchar bLoose ;//uchar Judge;unsigned int ms;uchar s;uchar m;//uchar ckey;//uchar cKeyCode;uchar cScanIndex;unsigned char SMG_duanma[18]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,
2021-06-24 16:27:29 750 2
原创 【蓝桥杯(51) STC15F2K60S2】之 “继电器与蜂鸣器实验“
相关代码://跑马灯的升级版!#include “STC15F2K60S2.h”//sbit H138_A=P2^5;//sbit H138_B=P2^6;//sbit H138_C=P2^7;void Delay(unsigned char t){while(t–);while(t–);}void InitH138(unsigned char n){switch(n){case 4://让Y4输出低电平。P2 = (P2 & 0x1f) | 0x80;//不打括号行
2021-06-23 22:46:00 644
原创 【蓝桥杯(51) STC15F2K60S2】之 “红外解码实验“
**## 相关代码:可以直接使用,记得接外部中断的IO口到红外接收口**#include <STC15F2K60S2.h> //包含51单片机相关的头文件#include <intrins.h>#include <absacc.h>#define uint unsigned int //重定义无符号整数类型#define uchar unsig
2021-06-23 22:45:03 1228
原创 【蓝桥杯(51) STC15F2K60S2】之 “独立按键实验“
相关代码:#include “STC15F2K60S2.H”unsigned char KeyNumber;unsigned char value;unsigned char code SMG_weixu[18] = {0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x80,0xc6,0xc0,0x86,0x8e,0xbf,0x7f};sbit R1 = P3^0;sbit R2 = P3^1;sbit R3 = P3^2;sb
2021-06-23 22:41:48 349
原创 【蓝桥杯(51) STC15F2K60S2】之 “小鸟归巢实验“
相关代码:#include “STC15F2K60S2.H”unsigned char time;unsigned char i;unsigned char a=7;unsigned char j=0;sbit HC138_A =P2^5;sbit HC138_B =P2^6;sbit HC138_C =P2^7;void LEDrunning(){HC138_A=0;HC138_B=0;HC138_C=1;if(time200){P0=~(0x01<<i++)
2021-06-23 22:40:55 723 3
原创 【蓝桥杯(51) STC15F2K60S2】之 “串口进阶实验“
相关代码:#include “STC15F2K60S2.H”unsigned char command = 0x00;void SendByte(unsigned char dat){SBUF = dat;while(TI == 0);TI = 0;}void Sendstring(unsigned char *str){while(*str != ‘\0’){SendByte(*str++);}}void Working(){if(command != 0x00){
2021-06-23 22:39:31 232
原创 【蓝桥杯(51) STC15F2K60S2】之 “串口简单通讯实验“
相关代码:#include “STC15F2K60S2.H” //上电时发送,按理应该第一次就发送呀,本人没有想出原因。unsigned char num;void SendByte(unsigned char dat){SBUF = dat;while(TI == 0);TI = 0;}void TNT0() interrupt 4{if(RI == 1){ RI = 0; num = SBUF; SendByte(num + 1);}}void main(){
2021-06-23 22:38:01 338
原创 【蓝桥杯(51) STC15F2K60S2】之 “储存器的映射扩展实验“
#include “STC15F2K60S2.H”#include “absacc.h”void Delay(unsigned int t){while(t–);while(t–);}void LEDRunning(){unsigned char i;for(i = 0; i<8; i++){XBYTE[0x8000] = ~(0x01 << i);Delay(60000);Delay(60000);}XBYTE[0x8000] = 0xff;}void
2021-06-23 22:36:18 132
原创 【蓝桥杯(51) STC15F2K60S2】之 “PWM调制灯光亮度实验“
相关代码:#include “STC15F2K60S2.h”sbit L1 = P0^0;sbit S7 = P3^0;unsigned char count;unsigned char pwm;unsigned char mode;void Delay(unsigned char t){while(t–);}void cKey(){if(S7 == 0){Delay(200);if(S7 == 0){switch(mode){case 0:pwm = 10;TR
2021-06-23 22:32:51 601
原创 【蓝桥杯(51) STC15F2K60S2】之 “DS1302“实验
相关代码:主函数部分:#include “STC15F2K60S2.H”#include “absacc.h”#include “ds1302.h”unsigned char SMGNoDot_CA[10] = {0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};unsigned char Write_DS1302[7] = {0x80,0x82,0x84,0x86,0x88,0x8a,0x8c};unsigned char Read_DS1
2021-06-23 22:30:21 313
原创 【蓝桥杯(51) STC15F2K60S2】之 “DS18B20实验“
【蓝桥杯(51) STC15F2K60S2】之 "DS18B20实验"相关代码:主函数模块:#include “STC15F2K60S2.H”#include “absacc.h”#include “onewire.h”unsigned char SMGNoDot_CA[10] = {0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};unsigned char SMGDot_CA[10] = {0x40,0x79,0x24,0x30,0x
2021-06-23 22:24:50 330
空空如也
搭建网站问题,报错先备案
2023-09-06
FPAG_IIC协议
2022-12-30
请问一下代码为什么会报错:类型不匹配:LnputBox
2021-09-06
共用体中元素覆盖问题
2021-09-03
wmware装虚拟机,请问一下为什么无法连上网
2021-08-24
TA创建的收藏夹 TA关注的收藏夹
TA关注的人