#include <iostream>
#include <vector>
using namespace std;
#define first x
#define second y
struct sPoint
{
int x = 0, y = 0;
sPoint GetEmptyData()
{
return {};
}
};
class Test
{
};
int main()
{
vector<sPoint> vecPoint{ {5, 4}, {3, 2}, {1, 5}, {6, 7} };
for (auto item : vecPoint)
cout << item.first << item.second << endl;
auto tmpVal = vecPoint[0].GetEmptyData();
cout << tmpVal.x << tmpVal.y << endl;
}
뭐라는겨
...??
뭐 - dc App
걍 std::pair 쓰면 되는 거 아니노?
진지하게 받아들이는애들 많구나
?
tie 안쓰고 뻘짓하노