(C++) HelloBoostRegexQtCreatorUbuntu
January 17, 2018 ยท View on GitHub
Technical facts
- Operating system(s) or programming environment(s)
Lubuntu 15.04 (vivid)
- IDE(s):
Qt Creator 3.1.1
- Project type:
- C++ standard:
- Compiler(s):
- G++ 4.9.2
- Libraries used:
Qt project file: ./CppHelloBoostRegexQtCreatorUbuntu/CppHelloBoostRegexQtCreatorUbuntu.pro
QT += core
QT -= gui
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
LIBS += \
-lboost_date_time \
-lboost_filesystem \
-lboost_program_options \
-lboost_regex \
-lboost_signals \
-lboost_system
./CppHelloBoostRegexQtCreatorUbuntu/main.cpp
#include <iostream>
#include <boost/regex.hpp>
int main()
{
std::string s = "Hello World";
s = boost::regex_replace(s,boost::regex("World"),std::string("Boost"));
std::cout << s << '\n';
}