- 2025-01-06[读书日志]从零开始学习Chisel 第三篇:Scala面向对象编程——类和对象(敏捷硬件开发语言Chisel与数字系统设计)
3.Scala面向对象编程3.1类和对象3.1.1类类是用class开头的代码定义,定义完成后可以用new+类名的方式构造一个对象,对象的类型是这个类。类中定义的var和val类型变量称为字段,用def定义的函数称为方法。字段也称为实例变量,因为每个被构造出来的对象都有自己的字段,但所有的对象公
- 2025-01-05SQLite的下载与安装(简洁版),附带建表和四个基本的增删改查语句
1.下载SQLite安装包SQLiteDownloadPage下载后解压执行sqlite3.exe2.创建数据库.open[路径+数据库名字]【Tips:没有找到指定的数据库文件则会默认创建】.openckk.db3.建表和四个基本的增删改查语句数据类型常用的有:int整形、real浮点数、text文本、blob
- 2025-01-03SQL基础应用
MySQL内置的功能连接数据库-u-p-S-h-P-e<本地登录:mysql-uroot-p密码-S/tmp/mysql.sock远程登录:mysql-u用户名-p密码-hMySQLIP地址-P3306免交互执行sql语句:mysql-u用户名-p密码-e"showdatabases;"恢复数据:mysql-uroot-p123.com</root/world.sq
- 2024-12-30实验7
#include<stdio.h>intmain(){FILE*fp;intr=0,n=0;charc;fp=fopen("C:\\Users\\jhy12\\Desktop\\博客园文件\\data4.txt","r");if(fp==NULL){printf("failtoopenfile.\n");ret
- 2024-12-30实验7
#include<stdio.h>#include<stdlib.h>intis_word(charx);intmain(){FILE*fp;charch;inti,line=1,count=0;fp=fopen("d:\\data4.txt","r");if(!fp){printf("failtoopenfileto
- 2024-12-30实验7 文件应用编程
4.实验任务4:文件简单应用#include<stdio.h>intmain(){FILE*fp;charch;intline=0,num=0;fp=fopen("C:\\Users\\ASUS\\Desktop\\data4.txt","r");if(!fp){printf("fail");r
- 2024-12-30实验7 文件应用编程
实验四:#include<stdio.h>#defineN100intmain(){intm=0,i,num=0;chara[N];FILE*fp;fp=fopen("data4.txt","r");if(!fp){printf("failedtoopen...");return;}while(
- 2024-12-30实验7
task41#include<stdio.h>2#include<string.h>3intmain(){45FILE*fp;6fp=fopen("d:\\data4.txt","r");78if(fp==NULL){9printf("failtoopenfiletowrite\n");
- 2024-12-30实验7
Task.4程序:#include<stdio.h>#include<string.h>intmain(){FILE*fp;fp=fopen("d:\\data4.txt","r");if(fp==NULL){printf("failtoopenfiletowrite\n");return;}
- 2024-12-30实验7
实验任务4:源代码:1#include<stdio.h>2#include<string.h>3#defineN345voidwrite();67intmain(){8printf("date4.txt统计结果:");9printf("\n");10write();11return0;12}1314voidwrite()
- 2024-12-30实验七
4.1#include<stdio.h>2intmain(){3charch;4intline=0,num=0;5FILE*fp;6fp=fopen("data4.txt","r");7if(!fp){8printf("1");9return0;10}11while(!feof(fp)){12ch=fgetc(fp);13
- 2024-12-30实验7
#include<stdio.h>intmain(){inta=1,b=0;FILE*fp;fp=fopen("D:\\实验7数据文件及部分代码\\实验7数据文件及部分代码\\data4.txt","r");charf;if(fp==NULL){printf("failtoopenfiletowrite\n");
- 2024-12-30实验七
任务4:源代码:#include<stdio.h>intmain(){FILE*p;charch;intcnt_zf=0,cnt_hs=1;p=fopen("D:/democ.1/data4.txt","r");if(!p)printf("failtoopen");while((ch=fgetc(p))!=EOF)
- 2024-12-307
t4点击查看代码#include<stdio.h>chara[100005];intmain(){ FILE*fp; fp=fopen("C:\\Users\\ASUS\\Downloads\\213\\qq\\data4.txt","r"); if(fp==NULL){ printf("failtoopenfiletowrite\n"); re
- 2024-12-30实验7
实验7task.4源代码:1#define_CRT_SECURE_NO_WARNINGS2#include<stdio.h>3#defineN100004intmain(){5charch[N];6intline=1;7intn=0;8intj=0;9FILE*fp;10fp=fopen("data4.txt","r
- 2024-12-30实验七
2.//多了一行,且输出一个8。75-76行是判断文件指针是否已经指向文件结尾了,当number等于一时则已经结束,break。3.\'意义就是输出一个 ' 的符号。4. 1#include<stdio.h>2#defineN10034intmain(){5charstr[N];6inti,j,line;7FILE*fp;
- 2024-12-30实验7
任务4#include<stdio.h>#include<stdlib.h>intmain(){FILE*fp;charfilename[]="data4.txt";charch;intlines=0;intcharacters=0;fp=fopen(filename,"r");if(fp==NULL){
- 2024-12-30实验7
任务4代码1#include<stdio.h>234intmain(){5inthang=1,zi=0;6charch;7FILE*fp;8fp=fopen("data4.txt","r");9if(fp==NULL){10printf("failtoopenfiletoread\n");11
- 2024-12-29实验7
实验4:源码:#include<stdio.h>#include<stdlib.h>#defineN3#defineM100voidwrite();intfun1();intfun2();intmain(){write();printf("data4.txt统计结果:\n");printf("行数:%-20d\n",fun1());printf("字
- 2024-12-29实验7
实验任务4#include<stdio.h>intmain(){intx=0,y=1;charc;FILE*fp;fp=fopen("data4.txt","r");if(fp==NULL){printf("failtoopenfiletoread\n");return1;}while(!feof(fp)){
- 2024-12-29实验7
#include<stdio.h>#include<ctype.h>voidfun(int*line_Count,int*char_Count){FILE*fp;fp=fopen("C:\\Users\\Ciallo~\\Downloads\\实验7数据文件及部分代码\\ data4.txt","r");if(fp==NULL){
- 2024-12-29实验七
task41#include<stdio.h>2intmain(){3intwords=0,lines=0;4charch;5FILE*fp;6fp=fopen("d:\\data4.txt","r");7if(!fp){8printf("failtoopenfiletoread\n");9
- 2024-12-29实验7
任务4:源代码:1#include<stdio.h>2#include<ctype.h>3#defineN1004voidcount(constchar*name);56intmain(){7charname[N];89scanf("%s",name);1011count(name);1213return0;14}1516vo
- 2024-12-29实验7 文件应用编程
实验任务四:源代码:task4.c1#define_CRT_SECURE_NO_WARNINGS2#include<stdio.h>3#defineN1000045intmain(){6charch[N];7intline=1;8intn=0;9intj=0;10FILE*fp;11fp=fopen("C:/Users/lenovo
- 2024-12-29实验七
实验四#include<stdio.h>intmain(){FILE*fp;fp=fopen("data4.txt","r");if(fp==NULL){return-1;}chart;intline_count=0,char_count=0;while(feof(fp)==0){t=fget