전체 글 (44) 썸네일형 리스트형 [C++]단순한 계산기 구현하기 안녕하세요 오늘은 계산기를 구현해보겠습니다. #include using namespace std; int main() { char op; double num1, num2; cout num1 >> num2; switch (op) { case '+': cout [C++] 비밀번호 생성기 소스 코드 안녕하세요 오늘은 비밀번호 생성기 소스코드를 공유드립니다. 이 프로그램을 사용하면 사용자가 생성할 임의 비밀번호의 길이를 지정할 수 있습니다. 소문자, 대문자, 숫자, 특수 문자가 포함된 문자 집합을 사용하여 비밀번호를 생성합니다. #include #include #include #include using namespace std; // Function to generate a random password string generatePassword(int length) { const string charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*"; const int charsetSize = charset.si.. [C++] 간편 파일 탐색기 안녕하세요 오늘은 간편 파일 탐색기입니다. C++로 파일 탐색기를 만들려면 Windows 애플리케이션용 Windows API 또는 Qt와 같은 크로스 플랫폼 라이브러리와 같은 GUI 개발을 위한 플랫폼별 라이브러리를 사용해야 합니다. 아래는 현재 디렉터리에 있는 파일과 디렉터리를 나열하고 탐색할 수 있는 간소화된 콘솔 기반 파일 탐색기입니다. 소스코드 #include #include #include using namespace std; namespace fs = std::filesystem; void listFiles(const string& path) { try { for (const auto& entry : fs::directory_iterator(path)) { if (fs::is_directory.. 이전 1 ··· 5 6 7 8 9 10 11 ··· 15 다음