解決耦合性的軟件設計:
先上(結果)圖:

一例子:
由于 :
hiredisHelper.h
hiredishelper.cpp已經
封裝為 類庫……
甚至 已經支持
Get
和 Set的 三目 運算
所以:
只上 監控
GPs系統的監控 代碼:
```
// conShowdata_andmouse190111.cpp : 此文件包含 "main" 函數。程序執行將在此處開始并結束。
//
#include "pch.h"
#include <iostream>
#include <windows.h>
#include <string>
#include"hiredishelper.h"
int main()
{
PBLIB::Redis::hiredisUtility red001;
std::string xstr = "";
std::string ystr = "";
std::string minLen3lines = "";
std::string oldx= xstr;
std::string oldy = ystr;
std::string oldminLen3lines;
do {//do110
red001.Connect(1000);
std::string flag1str="2";
int flag = -1;
do {
red001.Get("flag1", flag1str);
red001.Get("x", xstr);
red001.Get("y", ystr);
red001.Get("minLen3lines", minLen3lines);
if (oldminLen3lines==minLen3lines&& xstr == oldx&& oldy==ystr) { Sleep(100); }
else { //red001.Get("x", xstr);
// red001.Get("y", ystr);
std::cout << "[x:" <<xstr;
std::cout << "-y" << ystr << "],";
std::cout << "[minLen3lines:" << minLen3lines << "]; ";
oldx = xstr; oldy = ystr;
oldminLen3lines = minLen3lines;
}
} while ("1"== flag1str);
system("pause");
} while (true);//do110while110
std::cout << "Hello World!\n";
}
// 運行程序: Ctrl + F5 或調試 >“開始執行(不調試)”菜單
// 調試程序: F5 或調試 >“開始調試”菜單
// 入門提示:
// 1. 使用解決方案資源管理器窗口添加/管理文件
// 2. 使用團隊資源管理器窗口連接到源代碼管理
// 3. 使用輸出窗口查看生成輸出和其他消息
// 4. 使用錯誤列表窗口查看錯誤
// 5. 轉到“項目”>“添加新項”以創建新的代碼文件,或轉到“項目”>“添加現有項”以將現有代碼文件添加到項目
// 6. 將來,若要再次打開此項目,請轉到“文件”>“打開”>“項目”并選擇 .sln 文件
```
- 啥叫DynamicalBilliards動態粒子(動力臺球)
- 五大系統-為啥搞那么復雜?
- 內存數據庫triangleBilliard19Redis參數190101
- HiRedis在C++Windows下配置編譯使用190101
- 三大視圖:inputOrigin_計算系統(無理數非視圖)_3輸出視圖190110
- MGDs-Mp系統:數學生成數據(或數據生成)系統-參數修改模塊190102
- MGDs的安裝攻略190110
- redis+MGDs-Mp系統完整代碼之-代碼塊1-測試Redis連接190110
- c++中longdouble_longlong等能計算的最大、最小值190101
- 充分解耦的MGDs-充分松耦合的數學生成數據系統190111
- MGDs-數據生成系統的(部分)核心代碼190114
- mfc190115