码迷,mamicode.com
首页 > Windows程序 > 详细

VcCallC#_01

时间:2016-04-27 10:53:01      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:

1、C# 代码:

using System;
using System.Collections.Generic;
//using System.Linq;
using System.Text;
//using System.Threading.Tasks;

namespace ClassLibrary4VC
{
    public class ClassLibraryTest01
    {
        public static int ClassLibraryFunc01(String _strParam)
        {
            Console.WriteLine(_strParam);
            return 1;
        }

        public static int ClassLibraryFunc02(String _strParam)
        {
            int iLen = _strParam.Length;
            char[] chars = _strParam.ToCharArray();
            char char00 = chars[0];
            int i00 = char00;
            int i01 = chars[1];
            int i02 = chars[2];
            int i03 = chars[3];
            int i04 = chars[4];
            Console.WriteLine(iLen+" ==> "+i00 + " , " + i01 + " , " + i02 + " , " + i03 + " , " + i04);
            
            return 1;
        }
    }
}

 

2、

 

VcCallC#_01

标签:

原文地址:http://www.cnblogs.com/cppskill/p/5437844.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!