标签:tcp int code ring 技术 mic end stc cpp
编写自己的头文件
#ifndef TESTCPP_H
#define TESTCPP_H
struct TestCpp{
std::string name;
unsigned int id;
};
#endif
#include <iostream>
#include "TestCpp.h"
int main()
{
TestCpp t1;
t1.name = "xiaoming";
t1.id = 20190203;
std::cout << "name: " << t1.name << std::endl;
std::cout << "id: " << t1.id << std::endl;
return 0;
}
标签:tcp int code ring 技术 mic end stc cpp
原文地址:https://www.cnblogs.com/komean/p/10458416.html