摘要:void testStringFindAndSubstrDemo() { string str = "hello,world,hello,c++,hello,boost, ,hello,cpp,,hellocpp,,,,,,,,HellostrFind"; string delim = ","; s 阅读全文
posted @ 2021-07-19 15:17 Fred1987 阅读(3) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include <typeinfo> #include <istream> #include <fstream> #include <string> #include <sstream> #include <vector> void readBigFileD 阅读全文
posted @ 2021-07-16 09:52 Fred1987 阅读(5) 评论(0) 推荐(0) 编辑
摘要:1 #pragma comment(lib,"rpcrt4.lib") 2 #include<Windows.h> 3 #include<iostream> 4 #include<algorithm> 5 #include<string> 6 #include<fstream> 7 #include 阅读全文
posted @ 2021-07-08 18:53 Fred1987 阅读(6) 评论(0) 推荐(0) 编辑
摘要:static void Main(string[] args) { string fileName = @"logFile3.txt"; ReadFile(fileName); Console.ReadLine(); } static void ReadFile(string fileName) { 阅读全文
posted @ 2021-06-24 15:35 Fred1987 阅读(9) 评论(0) 推荐(0) 编辑
摘要:1.install-package Microsoft.Xaml.Behaviors.Wpf; 2.xmlns:i="http://schemas.microsoft.com/xaml/behaviors"; 3. <DataGrid x:Name="dg" Grid.Row="0" ItemsSo 阅读全文
posted @ 2021-06-11 11:53 Fred1987 阅读(8) 评论(0) 推荐(0) 编辑
摘要:1 #include <iostream> 2 #include <map> 3 4 using namespace std; 5 6 map<int, unsigned long long> fibMap; 7 unsigned long long fibDemo4(int i); 8 9 int 阅读全文
posted @ 2021-05-26 10:24 Fred1987 阅读(9) 评论(0) 推荐(0) 编辑
摘要:#pragma comment(lib, "rpcrt4.lib") #include <iostream> #include <time.h> #include <windows.h> #include <sstream> #include <fstream> using namespace st 阅读全文
posted @ 2021-05-24 19:46 Fred1987 阅读(13) 评论(0) 推荐(0) 编辑
摘要:#include <chrono> using namespace std; void chronoDemo9() { cout << "Started" << endl; for (int i = 0; i < 10; i++) { std::chrono::time_point<std::chr 阅读全文
posted @ 2021-05-18 09:36 Fred1987 阅读(7) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include <fstream> #include <string> #include <conio.h> using namespace std; void writeFileDemo5() { ofstream writeFile("writeFile 阅读全文
posted @ 2021-05-08 11:55 Fred1987 阅读(17) 评论(0) 推荐(0) 编辑
摘要:When you config the service as below,then run the application via browser and it will report error such as Server Error in '/' Application. When 'syst 阅读全文
posted @ 2021-04-13 15:55 Fred1987 阅读(21) 评论(0) 推荐(0) 编辑