원하는건 저 클래스안에 a값을 1로바꿔주고 출력하는거임


#include

#include

#include"test.h"

#include"test2.cpp"

using namespace std;


int main(void)

{

name2();

name ttt;

cout <

return 0;

}



=====================================================================
// test.h 파일
#pragma once

class name
{
public:
int a= 0;

};


============================================

//test2.cpp 파일


#include"test.h"


void name2() {

name tt;

tt.a = 1;

}