登录
首页 » C# » 用C语言作为编程语言,用结构体作为文件和目录等的编程结构;对于文件,其结构体中包括文件名、属性、文件内容、文件长度、指向父目录的指针、指向子目录的指针、指向同层...

用C语言作为编程语言,用结构体作为文件和目录等的编程结构;对于文件,其结构体中包括文件名、属性、文件内容、文件长度、指向父目录的指针、指向子目录的指针、指向同层...

于 2022-12-02 发布 文件大小:3.54 kB
0 97
下载积分: 2 下载次数: 1

代码说明:

用C语言作为编程语言,用结构体作为文件和目录等的编程结构;对于文件,其结构体中包括文件名、属性、文件内容、文件长度、指向父目录的指针、指向子目录的指针、指向同层目录或文件的指针。 目录结构和文件结构相似,只是没有内容,其只有子目录和子文件。 用户结构包括用户名、指向其文件目录的指针、指向下一个用户的指针。设置的文件操作命令有17条:新建文件、新建目录、删除文件、删除目录、在当前目录下指定目录新建子目录、在当前目录下指定目录新建子文件、打开文件、关闭文件、读文件、写文件、修改文件名、修改目录名、修改文件属性、进入指定目录、返回父目录、显示当前目录的信息、显示当前所在目录的路径等。-C language as a programming language, the structure used as a file and directory structure of the program; The document, the body structure, including file name, attribute, the contents of the documents, document length, point to the parent directory pointer subdirectory pointer with directory or file level indicator . Directory structure and the structure of the document is similar, but no, and their only son and subdirectories document. Users structure includes user name, at its directory pointer under a user"s guide. Set up in the paper commands a 17 : new document, the new directory, delete files, delete directory, the current directory specified directory new subdirectories in the current

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 自动登录qq空间,获取最近访客列表.
    自动登录qq空间,获取最近访客列表.using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace WindowsFormsApplication1{ public partial class Form1 : Form { Timer terAutologin = new Timer(); public Form1() { InitializeComponent(); terAutologin.Enabled = true; terAutologin.Interval = 3 * 1000; terAutologin.Tick = ter_Tick; } void ter_Tick(object sender, EventArgs e) { if(wb1.Document==null) { return; } HtmlElement dialog_content_1 = wb1.Document.GetElementById("dialog_content_1"); if (dialog_content_1 == null) { return; } var frame = wb1.Document.Window.Frames[0]; if (frame==null) { return; } if (frame.Document==null) { return; } // iframe HtmlElement u = frame.Document.GetElementById("u"); u.InnerText = "171586098"; HtmlElement p = frame.Document.GetElementById("p"); p.InnerText = "*************"; p.SetAttribute("value", "********"); HtmlElement login_button = frame.Document.GetElementById("login_button"); login_button.InvokeMember("click"); terAutologin.Stop(); } private void Form1_Load(object sender, EventArgs e) { ssl1.Text = string.Empty; txtUrl.Text = "http://user.qzone.qq.com/14371939"; wb1.ScriptErrorsSuppressed = true; wb1.Navigate("http://user.qzone.qq.com/14371939/main"); } private void btnGO_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(txtUrl.Text)) { wb1.Navigate(txtUrl.Text); ssl1.Text = txtUrl.Text " Navigated"; } } private void wb1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { System.Diagnostics.Trace.WriteLine(e.Url.ToString()); // http://g.cnc.qzone.qq.com/cgi-bin/friendshow/cgi_get_visitor_simple?uin=4371939&type=1&mask=3&rd=0.7801240284461528&_=1397644130601&g_tk=9281770 ssl1.Text = e.Url.ToString() " Completed"; tryRead(); } private void btnTest_Click(object sender, EventArgs e) { tryRead(); } private void tryRead() { if (wb1.Document == null) { return; } HtmlElement pagediv = wb1.Document.GetElementById("visitor_list_page_con"); if (pagediv==null) { return; } //若分页内容存在,则表示已经加载过了. if(pagediv.Children.Count>0) { handlerAbc(null,null); return; } //模拟点击 "最近访客" var aa = pagediv.Parent.Parent.FirstChild.Children[2]; aa.InvokeMember("click"); //给访问列表的容器绑定一个事件...回调时就能获取到. HtmlElement guestlist = pagediv.Parent.FirstChild; //ul.RaiseEvent guestlist.AttachEventHandler("onpropertychange", new EventHandler(handlerAbc)); } private void handlerAbc(Object sender, EventArgs e) { HtmlElement div = wb1.Document.GetElementById("visitor_list_page_con"); HtmlElement guestlist = div.Parent.FirstChild; if (guestlist.InnerHtml.IndexOf("QZONE.FrontPage.showLoginBox") > -1) { HtmlElement alogin = guestlist.GetElementsByTagName("a")[0]; alogin.InvokeMember("click"); // 使用定时器.检测登录窗口的出现.. terAutologin.Start(); return; } else { System.Text.StringBuilder sb = new StringBuilder(); // 取回里面的内容? foreach (HtmlElement li in guestlist.Children) { string qq = li.GetAttribute("uin"); string visitname = li.Children[1].FirstChild.InnerText; string visittime = li.Children[1].Children[1].InnerText; sb.AppendLine(qq visitname visittime); } MessageBox.Show(sb.ToString()); } } }}
    2014-04-18下载
    积分:1
  • 51黑论坛_STM32_OLED_三级菜单框架
    说明:  本实验通过代码控制开发板上的两个LED:DS0和DS1交替闪烁,实现类似跑马灯的效果。(In this experiment, two LEDs on the development board, DS0 and DS1, flash alternately by code control, to achieve the effect similar to the horse lantern.)
    2020-08-15 10:50:58下载
    积分:1
  • C#开发的 程序员专用RSS阅读器
    C#开发的 程序员专用RSS阅读器
    2020-12-24 15:29:05下载
    积分:1
  • LABVIEW图像分割
    2022-03-05 10:32:59下载
    积分:1
  • CAA_V5_For_CATIA_Foundations
    CAA开发者可以参考本资料进行CAA二次开发。(CAA developers can refer to this data for the two development of CAA.)
    2018-02-24 15:40:54下载
    积分:1
  • p1-1
    简单的c程序,便于c基础薄弱的人学习研究c语言(Simple c program , a weak infrastructure to facilitate people to learn c c language study )
    2013-11-22 10:36:20下载
    积分:1
  • 软件试用版注册
    软件试用版注册 包括bios、硬盘序列号、mac地址 cpu等
    2022-02-07 02:41:34下载
    积分:1
  • simplex_searches
    在linux下面实现的单纯性算法的源代码,已经调试通过,为毕业设计和课程论文的好东西。欢迎使用。(Linux achieved in the following simple algorithm source code has been adopted debugging for graduation thesis curriculum design and good things. Welcome.)
    2008-12-21 11:33:22下载
    积分:1
  • DS
    说明:  1.管理信息系统(学生成绩) 两种用户等级:管理员和用户,均用用户名和密码登陆,通过识别不同类型的用户名,进入不同的操作界面。 1) 管理员功能: i 用户管理:增加、删除用户; ii 记录录入、修改、删除 iii 查询:单项查询、多项查询、范围查询 iv 分类统计:提供有代表性的统计结果 2) 用户功能: a) 修改密码 b) 查询本用户信息 c) 修改个人信息(1. Management Information System (student performance) two user levels: administrators and users use a user name and password, by identifying different types of user name, into a different interface. 1) The administrator function: i user management: add, delete users ii record entry, modify or delete iii Inquiry: individual inquiries, a number of inquiries, the scope of inquiry iv classification statistics: to provide a representative statistical results 2) user features: a) Change Password)
    2009-01-28 21:35:16下载
    积分:1
  • CrankNicolson_origin
    使用Crank-Nicolson隐式差分格式求解传热方程;第一类边界条件;初始条件已知。(Using the Crank-Nicolson implicit difference scheme for solving heat transfer equation the first boundary condition initial conditions are known.)
    2015-03-17 10:29:51下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载