⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fs.cpp

📁 一款运行于ARM上的文件系统
💻 CPP
字号:
// fs.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include<iostream.h>
#include"cfs\cfs.hpp"
cCFS fs;
char i2[]="i'm chenziya";
char i3[]="Origin of Source\
All YAFFS source is pulled from this sitewww.aleph1.co.uk/armlinux/projects\
/yaffs/The web CVS repository is located at:http:www.aleph1.co.uk/\
armlinux/cvsuse.htmlTo Repull the Source(quoted straight from the above site)\
If you want to use cvs directly thenread-only access is available,\
the pserver mechanism. Execute the following (bash) commands to \
OT=:pserver:anonymous@cvs.aleph1.co.uk:/home/aleph1/cvs\
cvs logonHitwhen asked for a password)\
cvs checkout <module> (see below for module names)";


char i1[]=" directly thenread-only access is available,\
the pserver mechanism. Execute the following (bash) commands to \
OT=:pserver:anonymous@cvs.aleph1.co.uk:/home/aleph1/cvs\
cvs logonHitwhen asked for a password)\
cvs checkout <module> (see below for module names)Origin of Source\
All YAFFS source is pulled from this sitewww.aleph1.co.uk/armlinux/projects\
/yaffs/The web CVS repository is located at:http:www.aleph1.co.uk/\
armlinux/cvsuse.htmlTo Repull the Source(quoted straight from the above site)\
If you want to use cvs";
int main(int argc, char* argv[])
{   
	int file1=0,file2=0,file3=3;
	char key;
	printf("Hello World!\n");
	fs.cfsinit();



	file2=fs.cfsopen("cfs.tr");
	fs.cfswrite(file2,i2,0);
	printf(fs.cfsread(file2));
	file2=fs.cfsopen("cfs.tr");
	fs.cfsclose(file2);



	file1=fs.cfsopen("abcd.t");
	fs.cfswrite(file1,i1,0);
	printf(fs.cfsread(file1));
	file1=fs.cfsopen("abcd.t");
	fs.cfsclose(file1);
	



	
	fs.cfsremove("cfs.tr");


	file3=fs.cfsopen("cfsabf.trrt");
	fs.cfswrite(file3,i3,0);
	printf(fs.cfsread(file3));
	file2=fs.cfsopen("cfs.tr");


	fs.cfsinit();
	cin>>key;
	return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -