保存进度
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#include <iostream>
|
||||
#include <boost/regex.hpp>
|
||||
#include ".\message\message.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace boost;
|
||||
|
||||
extern const string MESSAGE;
|
||||
|
||||
int main()
|
||||
{
|
||||
string s = R"(Search Engines: http://baidu.com https://google.com About Me: https://xuhongxu.com/about/)";
|
||||
regex e("(([a-zA-Z]*)://\\[a-zA-Z0-9\\_-\\]+(\\.\\[a-zA-Z0-9\\_-\\]+)+(/\\[^\\s<>\"\\)\\]\\*)?");
|
||||
|
||||
for (sregex_iterator m(s.begin(), s.end(), e), end; m != end; ++m)
|
||||
{
|
||||
cout << "URL: " << (*m)[0].str() << endl;
|
||||
cout << "Scheme: " << (*m)[1].str() << endl;
|
||||
cout << endl;
|
||||
}
|
||||
|
||||
cout << "结束" << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,10 @@
|
||||
#include "message.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
static const string MESSAGE = "Hello World Message!";
|
||||
|
||||
void printMessage()
|
||||
{
|
||||
std::cout << MESSAGE;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
using std::string;
|
||||
using std::cout;
|
||||
|
||||
extern const string MESSAGE;
|
||||
|
||||
void printMessage();
|
||||
Reference in New Issue
Block a user