-
Vào thư mục vừa tải về, chạy file bootstrap.bat
Hoặc gõ một trong các lệnh sau:
bootstrap vc142 (if you are using Visual Studio 2019) bootstrap vc141 (if you are using Visual Studio 2017)
bootstrap vc140 (if you are using Visual Studio 2015)
#include <condition_variable> // std::condition_variale | |
#include <cstdlib> | |
#include <iostream> | |
#include <mutex> | |
#include <thread> | |
using namespace std; | |
std::mutex g_mutex; | |
std::condition_variable g_cv; |
#include <mutex> | |
#include <condition_variable> | |
class Semaphore { | |
private: | |
std::mutex mtx; | |
std::condition_variable cv; | |
int count; | |
public: |
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"type": "shell", | |
"label": "C/C++: g++.exe build active file with boost and opencv lib", | |
"command": "C:\\Program Files\\mingw-w64\\x86_64-8.1.0-release-posix-seh-rt_v6-rev0\\mingw64\\bin\\g++", | |
"args": [ | |
"-g", | |
"${file}", |
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"type": "shell", | |
"label": "C/C++: g++.exe build active file with boost lib", | |
"command": "g++", | |
"args": [ | |
"-g", | |
"${file}", |
#!/bin/bash | |
#author: Phung Quoc Viet | |
#description: read all line from filname then create directorys with format: line/no.line | |
filename="filename.txt" | |
n=1 | |
while read line; do | |
# reading each line | |
mkdir "$n. $line" | |
touch "./$n. $line/$line.cpp" | |
echo -n "File No.$n: $line" |