当前位置: 首页 > news >正文

建设网站需要申请报告抖音代运营是啥

建设网站需要申请报告,抖音代运营是啥,网站内的搜索是怎么做的,电脑做h5的软件有哪些本文内容 使用 C# 索引器实现 C# 的 is 和 as 关键字实现 C# 的 lock 关键字 本节中的主题介绍如何在 Visual C 中创建程序集#xff0c;这些程序集使用或提供以 C# 或 Visual Basic 编写的程序集的功能。 1、使用 C# 索引器 Visual C 不包含索引器#xff1b;它具有索引…本文内容 使用 C# 索引器实现 C# 的 is 和 as 关键字实现 C# 的 lock 关键字 本节中的主题介绍如何在 Visual C 中创建程序集这些程序集使用或提供以 C# 或 Visual Basic 编写的程序集的功能。 1、使用 C# 索引器 Visual C 不包含索引器它具有索引属性。 若要使用 C# 索引器请访问索引器就像它是索引属性一样。 示例 以下 C# 程序定义索引器。 // consume_cs_indexers.cs // compile with: /target:library using System; public class IndexerClass {private int [] myArray new int[100];public int this [int index] { // Indexer declarationget {// Check the index limits.if (index 0 || index 100)return 0;elsereturn myArray[index];}set {if (!(index 0 || index 100))myArray[index] value;}} } /* // code to consume the indexer public class MainClass {public static void Main() {IndexerClass b new IndexerClass();// Call indexer to initialize elements 3 and 5b[3] 256;b[5] 1024;for (int i 0 ; i 10 ; i)Console.WriteLine(Element #{0} {1}, i, b[i]);} } */此 C/CLI 程序使用索引器。 // consume_cs_indexers_2.cpp // compile with: /clr #using consume_cs_indexers.dll using namespace System;int main() {IndexerClass ^ ic gcnew IndexerClass;ic-default[0] 21;for (int i 0 ; i 10 ; i)Console::WriteLine(Element #{0} {1}, i, ic-default[i]); }此示例产生以下输出 Element #0 21 Element #1 0 Element #2 0 Element #3 0 Element #4 0 Element #5 0 Element #6 0 Element #7 0 Element #8 0 Element #9 0 Element #10 02、实现 C# 的 is 和 as 关键字 本主题演示如何在 Visual C 中实现 C# 的 is 和 as 关键字的功能。 示例 // CS_is_as.cpp // compile with: /clr using namespace System;interface class I { public:void F(); };ref struct C : public I {virtual void F( void ) { } };template class T, class U Boolean isinst(U u) {return dynamic_cast T (u) ! nullptr; }int main() {C ^ c gcnew C();I ^ i safe_cast I ^ (c); // is (maps to castclass in IL)I ^ ii dynamic_cast I ^ (c); // as (maps to isinst in IL)// simulate as:Object ^ o f;if ( isinst String ^ (o) )Console::WriteLine(o is a string); }输出结果 o is a string3、实现 C# 的 lock 关键字 本主题演示如何在 Visual C 中实现 C# lock 关键字。 示例 // CS_lock_in_CPP.cpp // compile with: /clr using namespace System::Threading; ref class Lock {Object^ m_pObject; public:Lock( Object ^ pObject ) : m_pObject( pObject ) {Monitor::Enter( m_pObject );}~Lock() {Monitor::Exit( m_pObject );} };ref struct LockHelper {void DoSomething(); };void LockHelper::DoSomething() {// Note: Reference type with stack allocation semantics to provide// deterministic finalizationLock lock( this );// LockHelper instance is locked }int main() {LockHelper lockHelper;lockHelper.DoSomething();return 0; }
http://www.dnsts.com.cn/news/191951.html

相关文章:

  • 专业网站优化seoo2o平台有哪些可以入驻
  • 商标网商标购买seo推广是做什么
  • 深圳制作网站服务苏州市工程造价信息网官网
  • 开企网站建设建设厅证件查询系统
  • 重庆提供行业网站建站报价电商网站开发资金预算
  • 上海建筑 公司网站辽阳县住房和城乡建设局网站
  • 建立网站第一步怎么做建网站都要什么费用
  • 网站建设备案多长时间精通网站建设工资多少钱
  • 郑州网站高端设计档案网站建设思考
  • 佛山网站开发拼多多推广联盟
  • 北京网站开发费用南宁网页制作步骤
  • 网站程序开发技术软件定制开发介绍
  • 网站模板和后台网页设计实验报告步骤
  • 上海网站开发定制王也高清壁纸第三季
  • 手机网站页面制作wordpress小程序课程
  • 世界各国o2o响应式网站松江公司做网站
  • 手机参数对比的网站福建泉州曾明军的网站
  • 做塑胶网站需要什么材料商业网站建设方案
  • 北京网站建设公司拟阿里云的网站建设花钱么
  • 长沙php网站建设有pc网站 移动网站怎么做
  • 做网站友情链接互换网络规划与设计试题
  • 陕西的网站建设公司哪家好金融类网站设计欣赏
  • 盗号网站怎么做打开网页出现网站建设中
  • 房地产设计方案优化推广服务商
  • dw网页制作多少钱网站建设优化公司排名
  • 打开建设银行网站怎么建手机网站平台
  • 网站上如何设置行间距网站信息抽查评估 短信
  • html网站头部如何制作外贸模板网站
  • 局域网站建设教程wordpress和帝国
  • 深圳龙华建网站大学网站建设与功能开发