使用C++和DirectDraw做很容易,DirectDraw是专门用来做游戏的,我给你找个例子 include <windows.h> int iCarX=-200,iCarY=200;HINSTANCE hInstance;HDC hdcSrc,hdcBack,hdcMem;HBITMAP hBitmapSrc,hBitmapBack,hBitmapMem;LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;int Render(HD...
也就是将x=days/365;这条语句改为如下:x=(float)days/365;