This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> | |
<Type Name="std::pair<*>"> | |
<DisplayString>({first}, {second})</DisplayString> | |
<Expand> | |
<Item Name="first">first</Item> | |
<Item Name="second">second</Item> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// filename.txt: | |
// 62416 X:13356763.312410861;Y:3549864.575675777 | |
// 62415 X:13356766.027865667;Y:3549869.0388435153 | |
while( std::getline(filename, line) ) | |
{ | |
std::size_t sz1,sz2 = 0; | |
int minor = std::stoi(beaconLine, &sz1); | |
double x = std::stod(beaconLine.substr(sz1+3),&sz2); | |
double y = std::stod(beaconLine.substr(sz1 + 3 + sz2 + 3)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository ppa:hzwhuang/ss-qt5 | |
sudo apt-get update | |
sudo apt-get install shadowsocks-qt5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PrintString | |
{ | |
public: | |
PrintString(ostream &o = cout, char = ' '): | |
os(o), sep(c) { } | |
void operator()(const string &s) const { os<<s<<sep; } | |
private: | |
ostream &os; //用于写入的目的流 | |
char sep; //用于将不同输出隔开的字符 | |
}; |
NewerOlder