-
一个简单的文本
一个基于控制台的简单文字游戏程序,供初学者学习提高使用-A simple text-based console games, for beginners to learn to improve the use of
- 2023-04-24 04:50:02下载
- 积分:1
-
实现标准库函数strstr的功能:在str1中查找str2,若找到,返回指向str1中第一次出现str2的位置;
int A ( const char...
实现标准库函数strstr的功能:在str1中查找str2,若找到,返回指向str1中第一次出现str2的位置;
int A ( const char * str1, const char * str2 );
没有的话,返回-1 有则返回所在位置(从0开始)
写出函数,对编写函数main完成对strstr的功能的验证。
-achieve the standard library functions strstr function : the search for str2 str1, if found, str1 return at the first appearance of str2 position; Int A (const char* str1, const char* str2); If not, the return-1 is returned with the location (from starting at 0) write function, the main function prepared to complete the function of the strstr certification.
- 2022-07-22 04:47:08下载
- 积分:1
-
反射
用于获取类型信息在运行时使用反射对象。授予的正在运行元数据的访问权限的类是程序的 System.Reflection 命名空间中。System.Reflection 命名空间包含允许您获取有关应用程序的信息,动态地添加到应用程序的类型、 值和对象的类。ReflectionReflection 的应用程序具有以下应用程序: 它允许查看属性信息在运行时。它允许检查各种类型的程序集,并实例化这些类。它允许后期绑定到方法和 propertiesIt 允许在运行时创建新的类型,然后执行一些任务,使用这些类型。查看 MetadataWe 有提及在前一章使用反射,您可以查看的属性信息。System.Reflection 类的检索对象,需要将其初始化为发现与类关联的属性。若要执行此操作,您定义目标类的 as:System.Reflection.MemberInfo 信息对象 = typeof(MyClass) ;下面的程序演示了这一点: 使用系统 ;[AttributeUsage(AttributeTargets.All)] 公共类 HelpAttribute: 用于 {公共只读字符串 Url ; 公共字符串主题 / 主题是一个命名的参数 {{返回主题 ;} 得到设置 {主题 = 值;}} 公共 HelpAttribute(string url) / / url 是一个定位的参数 {这。Url = url ;} 专用的字符串的主题 ;} {} [HelpAttribute (MyClass 类"信息")] 类 MyClass 命名空间 AttributeAppl {类程序 {静态 void 主要 (字符串 [] args) {System.Reflection.MemberInfo 信息 = typeof(MyClass) ; 对象 [] 属性 = info。GetCustomAttributes(true) ;为 (int 我 = 0 ; 我 < 属性。长度 ;i + +) {System.Console.WriteLine(attributes[i]) ;}Console.ReadKey() ;}}} 编译和运行,它将显示附加到 MyClass:HelpAttribute 示例本示例类的自定义属性的名称时,我们使用前面的章节中使用反射创建的 DeBug
- 2022-09-18 10:30:09下载
- 积分:1
-
如何获得另一个应用程序窗口中的文本
如何获得另一个应用程序窗口中的文本-how to access another application window text
- 2022-09-30 12:45:03下载
- 积分:1
-
这是我在学习c++时,随意写的小程序,虽然简单,但是用到了类的各个方面,仅供参考...
这是我在学习c++时,随意写的小程序,虽然简单,但是用到了类的各个方面,仅供参考-This is my learning c, wrote arbitrarily small procedures, although simple, but the type used in all aspects, for reference
- 2022-01-29 03:05:38下载
- 积分:1
-
该程序有x5045,12864液晶显示,步进电机等各个模块组成的一个程序有详细的功能说明...
该程序有x5045,12864液晶显示,步进电机等各个模块组成的一个程序有详细的功能说明-The program has x5045, 12864 LCD, stepper motor, composed of various modules, such as a program has a detailed description of the function
- 2022-06-21 15:42:29下载
- 积分:1
-
矩阵类型 Pascal 控制台代码
一个简单的Pascal代码模拟矩阵式的数字级联
- 2023-06-26 22:40:02下载
- 积分:1
-
这是一个用C编写的小型数据库系统,实现了数据库,实现了表的定义,查找,插入,删除,索引等数据库操作。是一个数据库原型。
这是一个用C编写的小型数据库系统,实现了数据库,实现了表的定义,查找,插入,删除,索引等数据库操作。是一个数据库原型。-This is a small-scale use of C prepared database system, the realization of a database table realize the definition of search, insert, delete, index, such as database operations. Is a prototype database.
- 2022-11-20 10:50:03下载
- 积分:1
-
遗传算法库
应用背景开发商想开发基于遗传算法的教授麻省理工学院开发的程序遗传算法库关键技术关键技术落后,这是能够将遗传算法库在你的源代码主要是用C++开发的
- 2022-02-05 06:42:21下载
- 积分:1
-
单片机C8051F350利用温湿度传感器AM2311测温度、湿度代码
单片机C8051F350利用温湿度传感器AM2311测温度、湿度代码。这是本人自己写的代码,与温湿度传感器AM2311利用I2C通信,
有需要的同学可以看看。当时,我自己做的时候就找不到利用这个传感器的代码,分享来给大家。
- 2023-08-08 20:15:05下载
- 积分:1