Struct is the same as int and float
2004-09-17 20:20
405 查看
int:
int Number=0;
Number=InputNumber();
=============================
struct Date
{
int Day;
int Month;
int Year;
};
struct Person
{
struct Date DOB;
char Name[16];
};
struct Date InputDOB()
{
struct Date DOB;
DOB.Day=1;
DOB.Month=2;
DOB.Year=3;
return(DOB);
}
main()
{
struct Person person;
person.DOB=InputDOB();
}
int Number=0;
Number=InputNumber();
=============================
struct Date
{
int Day;
int Month;
int Year;
};
struct Person
{
struct Date DOB;
char Name[16];
};
struct Date InputDOB()
{
struct Date DOB;
DOB.Day=1;
DOB.Month=2;
DOB.Year=3;
return(DOB);
}
main()
{
struct Person person;
person.DOB=InputDOB();
}
相关文章推荐
- as 导入eclipse项目报错:Error:Application and test application id cannot be the same: both are 'com.hjy.act
- The expression after ELSE should have the same type as those after THEN: "bigint" is expected but "i
- The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
- Understand and code analayise software the same as sourceinsight
- lr数据库参数化取数:The query result is empty and same is the parameter file问题原因
- 从AS导入Eclipse项目,报Error:Application and test application id cannot be the same: both are 'com.
- xilinx "ERROR:EDK - intc () - Internal error: Num intr inputs 1 not the same as length of ..."解决
- 解决svn迁移过程中出现:SVN Error: is not the same repository as的问题
- The SQL Server Service Broker for the current database is not enabled, and as a result query notifications are not supported.
- The deployment identity at the deployment provider is not the same as the original deployment identity
- ios Embedded binary is not signed with the same certificate as the parent app. 解决办法
- Embedded binary is not signed with the same certificate as the parent app
- Embedded binary is not signed with the same certificate as the parent app
- The same month as the adidas NMD Singapore is releasing
- add cool toolbar 256corler is easy,only two file and onCreate func is needed also the MainFrame.toolbar must resize to what real need and also the load width is same to it.
- android studio: the prefix com.example is meant as a placeholder and should not be uesd解决方法
- it is the same as用法
- call different method with the same name, parameters and return value, select which one is called using const symbol
- 解决Logon unsuccessful: The user name you typed is the same as the user name you logged in with. That user name has alread
- java.io.IOException: The same input jar [***\libs\javastruct-0.1.jar] is specified twice