검색결과 리스트
글
jpg 파일만 가져왔음
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <string>
#include <vector>
#include <io.h>
using namespace std;
int main()
{
string path = "backImg\\*.jpg";
struct _finddata_t fd;
intptr_t handle;
if ((handle = _findfirst(path.c_str(), &fd)) == -1L)
cout << "No file in directory!" << endl;
do
{
cout << fd.name << endl;
} while (_findnext(handle, &fd) == 0);
_findclose(handle);
return 0;
}
|
cs |
'Computer > Coding' 카테고리의 다른 글
[opencv] C++ 이미지 파일 열기 (0) | 2021.01.04 |
---|---|
char -> string 변환 (0) | 2021.01.04 |
[opencv] C++ 동영상 배경제거(Background Subtraction) 소스코드 (1) | 2020.12.30 |
[opencv] OpenCV extra 모듈 cmake 빌드 (윈도우 환경) (1) | 2020.12.30 |
std::String -> LPCSTR 변환 (0) | 2019.01.10 |
RECENT COMMENT