亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? graphics.c

?? 書名:C語言科學與藝術,以前交錢下載的
?? C
字號:
/* * File: graphics.c * Version: 1.0 * Last modified on Thu Sep 16 09:34:19 1993 by eroberts * ----------------------------------------------------- * This file provides a fully standard implementation of the * graphics.h interface that generates a PostScript file, * suitable for printing.  None of the operations in the * extended graphics interface are supported.  PostScript is * a registered trademark of Adobe Systems Incorporated. *//* * General implementation notes * ---------------------------- * This implementation of the graphics.h interface does not * actually do any display but instead writes a PostScript * file containing commands that would generate the picture. * The advantage of this implementation is portability, since * it contains no code that depends on graphics primitives * for a particular platform. * * The code for this implementation is for the most part * straightforward, because all of the graphics primitives * have simple PostScript equivalents.  The only hard part * is making sure that the end of the file is correct when * the file is closed, usually via the exit call.  To print * the page, the showpage command must occur at the end of * the file, but the graphics package does not get control * at that point.  To avoid the problem, each call to this * package writes a legal trailer to the file.  Thus, the * invariant after each call to any of these functions is * that the PostScript file is complete.  Before writing * new data, these functions back up the file pointer over * the old trailer and begin rewriting from that point. */#include <stdio.h>#include <math.h>#include "genlib.h"#include "graphics.h"/* * Constants: WindowHeight, WindowWidth * ------------------------------------ * These constants are the values returned by GetWindowHeight * and GetWindowWidth.  The assumption here is that output is * being directed to an 8.5 x 11 page. */#define WindowHeight 11.0#define WindowWidth   8.5/* * Constant: PSFileName * -------------------- * The name of the PostScript output file. */#define PSFileName "graphics.ps"/* * Private variables * ----------------- * initialized    Set to TRUE when InitGraphics is called. * psfile         The file stream used for PostScript. * cx, cy         The current x, y positions. * nextWrite      The file index for the next PostScript *                command (see the general notes above). */static bool initialized = FALSE;static FILE *psfile;static double cx, cy;static long nextWrite;/* Private function prototypes */static void InitCheck(void);static void WritePostScriptHeader(void);static void WritePostScriptTrailer(void);static void ResetFilePointer(void);static double Pts(double inches);static double Radians(double degrees);/* Public functions */void InitGraphics(void){    if (initialized) fclose(psfile);    psfile = fopen(PSFileName, "w");    WritePostScriptHeader();    WritePostScriptTrailer();    cx = cy = 0;    initialized = TRUE;}void MovePen(double x, double y){    InitCheck();    cx = x;    cy = y;}void DrawLine(double dx, double dy){    InitCheck();    ResetFilePointer();    fprintf(psfile, "newpath %g %g moveto", Pts(cx), Pts(cy));    fprintf(psfile, " %g %g rlineto stroke\n", Pts(dx), Pts(dy));    cx += dx;    cy += dy;    WritePostScriptTrailer();}void DrawArc(double r, double start, double sweep){    double x, y;    InitCheck();    x = cx + r * cos(Radians(start + 180));    y = cy + r * sin(Radians(start + 180));    ResetFilePointer();    fprintf(psfile, "newpath %g %g %g", Pts(x), Pts(y), Pts(r));    fprintf(psfile, " %g %g", start, start + sweep);    fprintf(psfile, " %s stroke\n", (sweep < 0) ? "arcn" : "arc");    WritePostScriptTrailer();    cx = x + r * cos(Radians(start + sweep));    cy = y + r * sin(Radians(start + sweep));}double GetWindowWidth(void){    InitCheck();    return (WindowWidth);}double GetWindowHeight(void){    InitCheck();    return (WindowHeight);}double GetCurrentX(void){    InitCheck();    return (cx);}double GetCurrentY(void){    InitCheck();    return (cy);}/* Private functions */static void InitCheck(void){    if (!initialized) Error("InitGraphics has not been called");}static void WritePostScriptHeader(void){    fprintf(psfile, "%%!PS-Adobe-1.0\n");    fprintf(psfile, "%%%%Title: graphics window\n");    fprintf(psfile, "%%%%Pages: 1\n");    fprintf(psfile, "%%%%EndComments\n");}static void WritePostScriptTrailer(void){    nextWrite = ftell(psfile);    fprintf(psfile, "showpage\n");}static void ResetFilePointer(void){    fseek(psfile, nextWrite, 0);}static double Pts(double inches){    return (72 * inches);}static double Radians(double degrees){    return (degrees / 180 * 3.1415926535);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一区二区三区乱码| 日韩激情一区二区| av色综合久久天堂av综合| 久久午夜免费电影| 精品一区二区三区免费观看 | 自拍偷拍亚洲欧美日韩| 成人av影院在线| 国产精品家庭影院| 一本久道中文字幕精品亚洲嫩| 亚洲综合网站在线观看| 在线播放91灌醉迷j高跟美女| 日韩成人一级片| 久久精品一区二区| 91日韩在线专区| 日韩精品高清不卡| 久久综合久久综合久久| www.99精品| 日本午夜一本久久久综合| 久久综合色之久久综合| 不卡电影免费在线播放一区| 亚洲在线成人精品| 欧美变态tickling挠脚心| 成人性生交大合| 午夜成人在线视频| 久久精品视频在线看| 日本韩国欧美在线| 久久不见久久见中文字幕免费| 国产精品精品国产色婷婷| 欧美精品在线观看播放| 丁香六月综合激情| 亚洲超碰97人人做人人爱| 亚洲人123区| 日韩视频在线你懂得| 99在线精品视频| 天天综合网天天综合色| 中文字幕欧美国产| 欧美日韩免费视频| 粉嫩aⅴ一区二区三区四区五区| 亚洲一区自拍偷拍| 久久久美女毛片| 欧美日韩在线亚洲一区蜜芽| 国产91精品欧美| 亚洲18女电影在线观看| 国产精品福利一区二区| 精品欧美一区二区在线观看| gogo大胆日本视频一区| 激情综合网av| 亚洲一区二区三区四区五区中文 | 91国偷自产一区二区使用方法| 毛片av一区二区| 亚洲黄色录像片| 国产女人水真多18毛片18精品视频| 欧美色区777第一页| av在线不卡电影| 国产一区二区三区精品欧美日韩一区二区三区 | 欧美裸体一区二区三区| 成人黄色免费短视频| 极品少妇xxxx偷拍精品少妇| 亚洲高清免费视频| **性色生活片久久毛片| 久久久亚洲高清| 欧美成人video| 欧美日韩国产小视频| 色婷婷激情综合| 91在线播放网址| 成人综合在线网站| 国产一区二区不卡老阿姨| 麻豆91在线观看| 五月开心婷婷久久| 亚洲影视在线观看| 樱桃视频在线观看一区| 亚洲三级免费观看| 亚洲色图欧洲色图| 亚洲色图在线看| 国产在线播放一区三区四| 日韩中文字幕麻豆| 天天综合天天综合色| 亚洲一本大道在线| 亚洲图片欧美色图| 亚洲国产一区在线观看| 亚洲成人自拍偷拍| 三级亚洲高清视频| 六月丁香婷婷色狠狠久久| 免费观看日韩电影| 看电影不卡的网站| 蜜桃精品视频在线| 国产精品亚洲视频| 国产精一区二区三区| 国产成人日日夜夜| www.欧美色图| 色婷婷av久久久久久久| 在线视频一区二区免费| 欧美精品日韩精品| 欧美成va人片在线观看| 日韩久久久久久| 久久久久久久久97黄色工厂| 中文字幕乱码日本亚洲一区二区 | 欧美极品aⅴ影院| 国产精品国产成人国产三级| 最新国产精品久久精品| 亚洲精品一卡二卡| 亚洲成人精品一区| 精品影院一区二区久久久| 国产伦精品一区二区三区在线观看 | 制服视频三区第一页精品| 在线不卡中文字幕| 欧美成人福利视频| 国产精品毛片久久久久久久| 亚洲精品国产视频| 日韩国产高清在线| 韩国一区二区视频| 91麻豆免费观看| 欧美日韩国产电影| 久久久久久久国产精品影院| 亚洲图片你懂的| 午夜私人影院久久久久| 国产在线精品国自产拍免费| aaa亚洲精品| 欧美精品在线观看一区二区| 久久九九全国免费| 一卡二卡三卡日韩欧美| 国产一区 二区 三区一级| 色欧美乱欧美15图片| 精品国产乱码久久久久久牛牛| 亚洲天堂av老司机| 狂野欧美性猛交blacked| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 国产精品一色哟哟哟| 在线观看亚洲成人| 中文字幕不卡在线| 视频一区二区三区在线| 成人免费va视频| 日韩欧美中文一区二区| 一区二区三区在线免费播放| 国产一区二区三区在线观看免费| 91精品福利在线| 久久久久久久久久久久久女国产乱| 一区二区国产视频| 国产一区二区伦理| 欧美久久久久久蜜桃| 久久精品在这里| 亚洲第一搞黄网站| 99久久精品情趣| 欧美tickling网站挠脚心| 亚洲另类在线一区| 国产传媒久久文化传媒| 日韩女优毛片在线| 视频一区中文字幕| 色综合天天综合网天天狠天天| 26uuu亚洲综合色欧美| 午夜免费久久看| 欧美在线free| 亚洲免费在线电影| 成人成人成人在线视频| 日本一区免费视频| 精品在线亚洲视频| 91精品国产乱码久久蜜臀| 亚洲国产日韩在线一区模特| 99re视频这里只有精品| 国产日韩欧美一区二区三区综合| 麻豆国产精品官网| 69成人精品免费视频| 午夜视频在线观看一区二区| 在线免费av一区| 亚洲精品美国一| 一本一道综合狠狠老| 亚洲人成精品久久久久久| av午夜一区麻豆| 亚洲特级片在线| 91蜜桃网址入口| 亚洲视频一二三区| 欧洲av在线精品| 亚洲一区二区三区三| 欧美高清视频不卡网| 日产欧产美韩系列久久99| 欧美精品tushy高清| 日本vs亚洲vs韩国一区三区| 欧美高清性hdvideosex| 日本一道高清亚洲日美韩| 欧美精品少妇一区二区三区| 日韩av一二三| 欧美电影免费观看高清完整版在线观看 | 国产91精品露脸国语对白| 欧美激情综合五月色丁香| 97国产精品videossex| 亚洲影视资源网| 欧美一级搡bbbb搡bbbb| 美日韩一区二区三区| 中文字幕一区av| 日本道在线观看一区二区| 亚洲成av人片一区二区| 91精品国产综合久久香蕉的特点 | 99久久国产综合精品女不卡| 亚洲乱码一区二区三区在线观看| 91福利国产成人精品照片| 亚洲综合一二区| 日韩免费高清av| 国产精品中文字幕欧美| 亚洲丝袜自拍清纯另类| 欧美一二三在线|