何为学习???

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/shanxuezhe/article/details/79968459

愚人拙见,非常欢迎批评。


何为学习?

私以为,学习是从模仿开始的,然后是半模仿状态,最后是自主创新。

    模仿最终是为了走出自己的路,

    探索最终也是为了走出自己的路,

    所以学习的最终目的,就是要有属于自己的思想成果。


    这样的学习才是有意义的。


参考资料:




何为???

04-06

何为,SDA Usb设备???貌似第二代居民身份证阅读器就是一种???rnrnC#API开发:rnnamespace ConsoleApplication1rnrn class Programrn rn [color=#FF0000][DllImport("termb.DLL", CallingConvention = CallingConvention.StdCall)]rn public static extern int InitComm(int iPort);rnrn问题二:“[DllImport("termb.DLL", CallingConvention = CallingConvention.StdCall)]”什么意思?rn问题三:“public static extern int InitComm(int iPort);”什么意思?rn[/color]rnrn [DllImport("termb.DLL", CallingConvention = CallingConvention.StdCall)]rn public static extern int CloseComm();rnrn [DllImport("termb.DLL", CallingConvention = CallingConvention.StdCall)]rn public static extern int Authenticate();rnrn [DllImport("termb.DLL", CallingConvention = CallingConvention.StdCall)]rn public static extern int Read_Content(int iActive);rnrn [DllImport("termb.DLL", CallingConvention = CallingConvention.StdCall)]rn [color=#FF0000]public static extern int GetPeopleName(Byte[] buf, int iLen);rn问题四:这是什么意思?貌似和下面的“GetName”有什么关联???rn[/color]rnrnrn [DllImport("termb.DLL", CallingConvention = CallingConvention.StdCall)]rn public static extern int GetPeopleSex(Byte[] buf, int iLen);rnrn [DllImport("termb.DLL", CallingConvention = CallingConvention.StdCall)]rn public static extern int GetPeopleNation(StringBuilder buf, int iLen);rnrn [DllImport("termb.DLL", CallingConvention = CallingConvention.StdCall)]rn public static extern int GetPeopleBirthday(StringBuilder buf, int iLen);rnrn [DllImport("termb.DLL", CallingConvention = CallingConvention.StdCall)]rn public static extern int GetPeopleAddress(StringBuilder buf, int iLen);rnrn [DllImport("termb.DLL", CallingConvention = CallingConvention.StdCall)]rn public static extern int GetStartDate(StringBuilder buf, int iLen);rnrn [DllImport("termb.DLL", CallingConvention = CallingConvention.StdCall)]rn public static extern int GetEndDate(StringBuilder buf, int iLen);rnrn static string GetName()rn rn Byte[] asciiBytes = null;rn asciiBytes = new Byte[100];rn int dwRet = GetPeopleName(asciiBytes, 100);rn Encoding gb2312 = Encoding.GetEncoding("gb2312");rn char[] asciiChars = new char[gb2312.GetCharCount(asciiBytes, 0, dwRet)];rn gb2312.GetChars(asciiBytes, 0, dwRet, asciiChars, 0);rn return new string(asciiChars);rn rnrn static string GetSex()rn rn Byte[] asciiBytes = null;rn asciiBytes = new Byte[100];rn int dwRet = GetPeopleSex(asciiBytes, 100);rn Encoding gb2312 = Encoding.GetEncoding("gb2312");rn char[] asciiChars = new char[gb2312.GetCharCount(asciiBytes, 0, dwRet)];rn gb2312.GetChars(asciiBytes, 0, dwRet, asciiChars, 0);rn return new string(asciiChars);rn rnrn static void Main(string[] args)rn rn rn int i = InitComm(1);rn i = Authenticate();rn i = Read_Content(1);rnrn string szValue = null;rnrn szValue = GetName();rn szValue = GetSex();rn Console.Read();rn rn rn rnrnrn

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试