ex1206c.cpp

来自「Fortran95的一些有用的源程序」· C++ 代码 · 共 28 行

CPP
28
字号
#include <stdio.h>
#include <string.h>

typedef struct _person
{
	int   age;
	float weight, height;
} person;

#ifdef __cplusplus
extern "C" {
#endif

void _stdcall GETSTRING(char *a, int len);
void _stdcall GETPERSON(person *p);

#ifdef __cplusplus
}
#endif

void main(void)
{
	char str[] = "Hello";
	person p = { 20, 70.0f, 170.0f };

	GETSTRING( str, strlen(str) );
	GETPERSON( &p );
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?