C++ 123

[C++]명품 C++ 프로그래밍 코드정리 끝!

안녕하세요 여러분 ! 드디어 명품 C++ 프로그래밍 코드정리가 끝이 났습니다... 도중에 스페인 여행을 가는바람에 예정보다 조금 늦어지긴 했지만 C++ 명품 책의 실습문제와 오픈챌린지의 코드들을 모두 정리를 하긴 했네요..! 누가 보실지는 모르겠지만 여러분의 코딩 실력향상의 도움이 되길바라면서 포스팅을 마치겠습니다. 여러분 즐코!!

C++ 2023.01.29

[C++] 명품 C++ 프로그래밍 실습문제 13장 오픈챌린지/openchallenge

[C++] 명품 C++ 프로그래밍 실습문제 6장 오픈챌린지/openchallenge //CPU.cpp #include #include #include "CPU.h" #include "HardWareException.h" #include using namespace std; void CPU::fetch(){ blank[0] = -1; blank[1] = -1; HardwareException h("fetch"); getline(cin,instruction); if(instruction.empty()){ h.setMsg("명령 라인 없음"); throw h; } } void CPU::decode(){ HardwareException h("decode"); int j = 0; for(int i = 0 ;i

C++ 2023.01.29

[C++]명품 C++ 프로그래밍 실습문제 12장 14번

[C++]명품 C++ 프로그래밍 실습문제 12장 14번 [C++]명품 C++ programming 실습문제 12장 14번 명품 C++ 프로그래밍실습문제/연습문제 /C++ #include #include #include #include #include #include #include using namespace std; int main(){ int count=0; ifstream file; file.open("/home/myunggi/.nanorc",ios::in|ios::binary); //파일경로는 책에 있는대로 하면 됩니다. char c[1]; while (file.read(c,1)) { count++; } cout

C++ 2023.01.27