select
or.* -- или явный перечень того что надо с нужными трансформациями типа ltrim(rtrim()), cast() итп
from openrowset (
BULK 'E:\MS-SQL\Exam\Data\Countries.txt',
FORMATFILE = 'E:\MS-SQL\Exam\Data\Countries.xml'
) as or
-- а тут можно нужные join, where, group итп.
графическое оформление с Windows 95 просто режет глаза
#pragma comment(linker,"\"/manifestdependency:type='win32' \
name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \
processorArchitecture='X86' publicKeyToken='6595b64144ccf1df' language='*'\"")
int iFamily = AF_UNSPEC;
saLocal.sin_family = (ADDRESS_FAMILY)iFamily;
Note A socket that is using the SO_EXCLUSIVEADDRUSE option must be shut down properly prior to closing it. Failure to do so can cause a denial of service attack if the associated service needs to restart.
std::vector<std::string>& getStaticMyVector (){
static std::vector<std::string> staticVector = {"", ""};
return v;
}
std::vector<std::string>& getStaticMyVector (){
auto init = []{
std::vector<std::string> v;
v.push_back(" ");
return v;
};
static std::vector<std::string> staticVector = init();
return v;
}
//header
class Foo
{
static int Bar;
};
//source
int Foo::Bar = 0; //инициализация статической переменной
std::vector< int > initializeBar()
{
std::vector< int > res;
res.push_back( 1 );
res.push_back( 2 );
return res;
}
void foo()
{
static std::vector< int > Bar = initializeBar(); //или можно просто = { 1, 2}, например
}
// Было
std::thread someFuncThread(someFunc(data), data);
// Стало
std::thread someFuncThread([this, data] { return this->someFunc(data); });
std::thread someFuncThread;
//...
someFuncThread = std::thread( создаём_как_показано_выше );
int run(); // Имеет тип `int (FirstClass::*)()`. А конструктору `std::thread` нужен или функтор, или глобальная функция.
FirstClass::FirstClass() : /* список инициализаторов */ firstClassThread([this](){ run(); }) { }
Threads begin execution immediately upon construction of the associated thread object (pending any OS scheduling delays), starting at the top-level function provided as a constructor argument.
Separates the thread of execution from the thread object, allowing execution to continue independently.