08/12/17 23:33:59
>>415
そうだよ。どのみち #include "test_2.cpp" してんだから。
もっとも、#include "test_2.cpp"などというよーな書き方のほうを改めるべきだと思うがな。
// test.h
class test_A{
static const int INT_A;
static const char *TEXT_A;
};
class test_B{
static const int INT_B;
static const char *TEXT_B;
};
// test.cpp
#include "stdafx.h"
#include "test.h"
const int test_A::INT_A=1234;
const char *test_A::TEXT_A="abcd";
const int test_B::INT_B=1234;
const char *test_B::TEXT_B="abcd";
int _tmain( ・・・・) {
// To Do
}