나는 dec, hex, oct로 출력과 입력을 실험하는 프로그램을 썼다. 그런 다음이 코드를 모두 지우고 동일한 프로젝트에이 코드를 작성했습니다. 컴파일러는 유효하지 않은 8 진수를 말하는 main()의 전화에 대해 오류를 계속 제공합니다. 그래서 코드를 메모장 ++에 복사 한 다음 다시 시작하여 MS Visual C++ 2010에서 새 프로젝션을 만들고 코드를 다시 붙여 넣었습니다. 그래도 여전히 오류가 발생합니다. 무엇이 문제 일 수 있 었는가 ???왜 컴파일러가 8 진수로 고정되어 있습니까?
//main.cpp******************************************************************************
#include "lib.h"
struct table
{
table(string firstName, string lastName, long int phone, string email)
:firstName(firstName), lastName(lastName), phone(phone), email(email)
{}
string firstName;
string lastName;
long int phone;
string email;
};
//****************************************************************************
int main()
{
vector<table> details;
cout<<dec;//I thought maybe this would convert back to dec
details.push_back(table("bill","bryson",05289994590,
"[email protected]"));
keep_window_open();
}
//******************************************************************************
누군가의 실제 연락처 정보 인 경우 질문에서 해당 연락처를 수정할 수 있습니다. – mc10