65,211
社区成员
发帖
与我相关
我的任务
分享
int main()
{
using namespace std;
st st1;
st1.s = "hill";
st1.i = 1;
cout << st1.s << endl << st1.i;
}
#include "stdafx.h"
#include <stdio.h>
#include "stdafx.h"
#include <string>
#include <iostream>
using namespace std;
struct st
{
string s;
int i;
};
int main(int argc, char* argv[])
{
st st1;
st1.s ="hill";
st1.i =0;
cout << st1.s << endl << st1.i;
return 0;
}