⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rtime.cpp

📁 eC++编译器源码
💻 CPP
字号:
#pragma main
#include <SYSTEM.h>
#include <RType.h>
#include <RTuple.h>
#include <RInterpret.h>
#include <Date.h>
#include <stdio.h>

const unsigned int TTIME = 15;

unsigned int declarer(ADDRESS context, unsigned int reqWidth)
{
  return sizeof(Date)*2;
};

void invoke(unsigned int method, pStack ps)
{
  
};

boolean inoutr(ADDRESS context, unsigned int method, pTuple p,
   unsigned int index, unsigned int width,
   WORD & value[])
{  Date *pd;  unsigned int position;  pTuple pc;
  pc = ADR(value);
  pd = ADDRESS(p)+LONG(index);
  position = 0;
  return Read(*pc, position, *pd);
  printf("method=%u", method);
  printf("index=%u", index);
  printf(" width=%u\n", width);
  return false;
};

void main(void)
{
  Register("time", "Rtime", TTIME, declarer, invoke, inoutr);
}

⌨️ 快捷键说明

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