上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: static void Main(string[] args) { List valuesList = new List(); valuesList.Add(1.0); string paraValue = valuesList[(valuesList.Count + ... 阅读全文
posted @ 2017-03-19 13:44 sky20080101 阅读(120) 评论(0) 推荐(0)
摘要: static void Main(string[] args) { Dictionary paraNameValueDict = new Dictionary(); int count = 0; count = paraNameValueDict.Count; Cons... 阅读全文
posted @ 2017-03-19 13:42 sky20080101 阅读(160) 评论(0) 推荐(0)
摘要: { string str0 = Convert.ToString(null); Console.WriteLine("0,{0}", str0); if (str0=="") { Console.Write... 阅读全文
posted @ 2017-03-16 09:09 sky20080101 阅读(186) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication6 { class Program { static void Main(string[] args) { ... 阅读全文
posted @ 2017-03-14 10:44 sky20080101 阅读(421) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication5 { class Program { static void Main(string[] args) { ... 阅读全文
posted @ 2017-03-06 16:37 sky20080101 阅读(129) 评论(0) 推荐(0)
摘要: #include #include using namespace std; void main_1() { vector vecIntA;//默认构造函数 vector vecIntB(vecIntA);//调用拷贝构造函数 int iSize=vecIntA.size();//放回容器中元素的个数 bool isEmpty=vecIntA.e... 阅读全文
posted @ 2017-02-26 17:02 sky20080101 阅读(111) 评论(0) 推荐(0)
摘要: void IntToBinaryString(int devisor,char* pBinStr) { int i; int remainder; for(i=0;i> 1; pBinStr[i]=(remainder == 1)?'1':'0'; } pBinStr[8]='\0'; } void mai... 阅读全文
posted @ 2017-02-24 09:37 sky20080101 阅读(146) 评论(0) 推荐(0)
摘要: #include #include #include using namespace std; struct SelfType{ int number; }; void map_find() { //map.lower_bound(keyElem);//返回第一个key>=keyElem元素的迭代器 //map.upper_bound(keyElem);//返回第一... 阅读全文
posted @ 2017-02-23 22:58 sky20080101 阅读(174) 评论(0) 推荐(0)
摘要: #include using namespace std; template class MyClass{ public: template MyClass(const MyClass& x) { cout& x)"& x) { cout& x)" xd; cou... 阅读全文
posted @ 2017-02-23 18:25 sky20080101 阅读(188) 评论(0) 推荐(0)
摘要: #include using namespace std; template class MyClass{ private: T value; public: void assign(const MyClass & obj) { this->value=obj.value; } MyClass(T value) ... 阅读全文
posted @ 2017-02-23 16:47 sky20080101 阅读(151) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 下一页