📄 ex1208c.cpp
字号:
#include <stdio.h>
#include <string.h>
typedef struct _person
{
int age;
float weight, height;
} person;
#ifdef __cplusplus
extern "C" {
#endif
void _stdcall SUB1(int *num)
{
printf("%d\n",*num);
}
void _stdcall SUB2(char *a, int len)
{
a[len]='\0';
printf("%s\n",a);
}
void _stdcall SUB3(person *p)
{
printf("age:%d weight:%5.1f height:%5.1f\n",
p->age, p->weight, p->height);
}
#ifdef __cplusplus
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -