C++?н??????????С???ж?
???????????? ???????[ 2013/1/22 10:09:26 ] ????????
????1???????
??????????????壬????????????????ж?????е????????С??
????2???????????
????2.1 ?????????
????????????????в???????????????????
// ????????????ж?.cpp : ??????????ó????????
//
#include "stdafx.h"
#include "String.h"
#include "iostream"
using namespace std;
int _tmain(int argc?? _TCHAR* argv[])
{
typedef struct STUDENT_INFO
{
char num;
int age;
float salary;
//string name;
}*LP_STUDENT_INFO;
cout<<sizeof(STUDENT_INFO)<<endl;
/*string stuName;
cout<<sizeof(stuName)<<endl;*/
return 0;
}
???????????????????????????????????
?????????????????????????????????????????????????????滮?????float??????B?????????????????12B??
????2.2 ????????????????
?????????????????????????????
// ????????????ж?.cpp : ??????????ó????????
//
#include "stdafx.h"
#include "String.h"
#include "iostream"
using namespace std;
int _tmain(int argc?? _TCHAR* argv[])
{
typedef struct STUDENT_INFO
{
char num;
int age;
float salary;
string name;
}*LP_STUDENT_INFO;
cout<<"???????????е???????С???"<<sizeof(STUDENT_INFO)<<"B???"<<endl;
string stuName;
cout<<"???????????е?????????С???"<<sizeof(stuName)<<"B???"<<endl;
return 0;
}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11