이 문제가 어디서 발생했는지 알 수 없으므로 나를 미치게 만듭니다. 내 메인 링크와 pastebin 링크는 아래와 같습니다. 는 (미안하지만, 그것이 서식을 잃었다)이 액세스 위반 오류를 알아낼 수 없습니다. 누군가 나를 도와 줄 수 있습니까?
: 여기
#pragma once
#include <iostream>
#include "Answer.hpp"
using namespace Games::MasterMind;
int main() {
Answer Line;
std::cout << Line.getAnswer(0) << std::endl;
std::cout << Line.getAnswer(1) << std::endl;
std::cout << Line.getAnswer(2) << std::endl;
std::cout << Line.getAnswer(3) << std::endl;
system("pause");
return 0;
}
메인 함께 제공되는 헤더 파일 : 여기에
First-chance exception at 0x0FFE108E (msvcr110d.dll) in MasterMindFSM.exe: 0xC0000005: Access violation reading location 0x2CF0D131. Unhandled exception at 0x0FFE108E (msvcr110d.dll) in MasterMindFSM.exe: 0xC0000005: Access violation reading location 0x2CF0D131.
적어도 어떤 기능을 가지고 있는지 알아 내기 위해 디버그 할 수 있습니다. – chris
@chris 말해주지 않습니다. 그것은 단지 저에게 오류를 제공합니다. – Tux
만약'ran = rand() % 6 + 1'이 6이 되려면 범위를 벗어날 것입니다. – chris