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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? graphics.c

?? c語(yǔ)言開(kāi)發(fā)方面的經(jīng)典問(wèn)題,包括源代碼.c語(yǔ)言開(kāi)發(fā)所要注意的問(wèn)題,以及在嵌入式等各方面的應(yīng)用
?? C
字號(hào):
/* * 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);}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩视频在线第一区| 在线观看免费成人| 日韩在线一二三区| 亚洲人成在线播放网站岛国| 精品日韩一区二区三区| 在线观看欧美日本| 99精品欧美一区| 国产成人午夜精品影院观看视频 | 亚洲国产中文字幕在线视频综合| 555www色欧美视频| 在线观看成人小视频| 成人av网在线| 不卡在线视频中文字幕| 精品一区二区三区蜜桃| 婷婷成人激情在线网| 亚洲成人一区在线| 亚洲一区二区三区四区五区中文| 一区精品在线播放| 亚洲视频在线一区观看| 国产人成一区二区三区影院| 欧美不卡一二三| 久久色成人在线| 国产日韩欧美亚洲| 国产精品美女久久久久久久| 国产三级欧美三级日产三级99 | 肉丝袜脚交视频一区二区| 亚洲影院理伦片| 日韩精品一级二级| 久久aⅴ国产欧美74aaa| 免费欧美日韩国产三级电影| 奇米一区二区三区av| 狠狠色丁香久久婷婷综| 国产91精品露脸国语对白| 韩国精品主播一区二区在线观看| 美女看a上一区| 国产成人综合网站| 91浏览器在线视频| 欧美日韩一区三区| 久久久影院官网| 亚洲嫩草精品久久| 青草国产精品久久久久久| 国产91丝袜在线播放九色| 色婷婷综合五月| 欧美日韩一区二区三区视频| 亚洲精品一区二区三区影院| 综合在线观看色| 韩国精品主播一区二区在线观看| 色综合久久天天| 久久久久久久久久久99999| 一区二区三区国产豹纹内裤在线| 免费成人在线影院| 91国偷自产一区二区开放时间| 日韩欧美久久久| 亚洲3atv精品一区二区三区| 国产精品中文有码| 欧美另类久久久品| 尤物av一区二区| 91在线无精精品入口| 欧美国产日本韩| 激情五月激情综合网| 91精品国产色综合久久不卡蜜臀| 最新热久久免费视频| 国产福利一区二区三区在线视频| 91麻豆精品国产自产在线观看一区| 亚洲视频狠狠干| 91色在线porny| 亚洲天堂成人网| 91美女片黄在线观看| 国产精品免费视频网站| 福利一区二区在线观看| 久久人人超碰精品| 国产在线不卡视频| 久久精子c满五个校花| 国产激情一区二区三区四区| 久久久99久久| av一二三不卡影片| 亚洲主播在线播放| 日韩亚洲国产中文字幕欧美| 日韩一区精品视频| 欧美精品一区在线观看| 国产精品一区二区久久精品爱涩| 欧美成人官网二区| 国产在线不卡视频| 亚洲精品自拍动漫在线| 欧美日韩成人综合| 激情深爱一区二区| 中文一区在线播放| 在线观看一区二区精品视频| 亚洲第一在线综合网站| 久久综合精品国产一区二区三区| 国产综合久久久久久鬼色| 国产精品国产三级国产| 欧美日韩在线观看一区二区| 国产一区在线视频| 亚洲色图清纯唯美| 欧美人与性动xxxx| yourporn久久国产精品| 午夜精品国产更新| **网站欧美大片在线观看| 欧美一区二区三区视频免费| 成人在线视频首页| 日本亚洲欧美天堂免费| 自拍偷拍亚洲激情| 久久久久久一二三区| 欧美亚洲综合色| 99在线热播精品免费| 国产成人综合亚洲91猫咪| 日韩高清在线不卡| 亚洲国产成人精品视频| 中文字幕一区免费在线观看 | 天堂一区二区在线免费观看| 欧美国产欧美综合| 国产色产综合色产在线视频| 日韩丝袜美女视频| 欧美一区二区观看视频| 欧美日韩国产首页在线观看| 一本一本久久a久久精品综合麻豆| 国产露脸91国语对白| 老司机精品视频在线| 日本美女一区二区| 蜜桃视频一区二区三区在线观看| 婷婷丁香激情综合| 免费成人在线观看视频| 久久99精品久久久久久| 国产在线精品一区二区三区不卡 | 五月天亚洲婷婷| 日韩av一级片| 国产精品自拍一区| 成人性生交大片免费看中文 | 56国语精品自产拍在线观看| 91麻豆精品国产自产在线观看一区| 欧美日韩精品一区二区| 日韩欧美成人午夜| 中文字幕巨乱亚洲| 亚洲精品美腿丝袜| 日本美女一区二区| 捆绑紧缚一区二区三区视频| 国产自产v一区二区三区c| 日韩国产在线观看一区| 久久99国内精品| 波多野结衣的一区二区三区| 欧美在线短视频| 日韩欧美aaaaaa| 亚洲视频中文字幕| 久久99精品国产麻豆婷婷洗澡| 成人午夜视频在线| 日韩欧美中文一区| 亚洲精品水蜜桃| 国产在线不卡一区| 欧美一区二区三区在| 日韩一区中文字幕| 国产成人8x视频一区二区| 555www色欧美视频| 亚洲综合丁香婷婷六月香| 精品影院一区二区久久久| 99re热这里只有精品视频| 久久综合色播五月| 奇米影视一区二区三区小说| 欧美午夜片在线观看| 国产精品美女视频| 久久电影国产免费久久电影| 欧美群妇大交群中文字幕| 国产精品久久二区二区| 国产传媒一区在线| 久久久久久免费网| 国内精品国产成人| 精品国产乱码久久久久久久久 | 日日夜夜免费精品视频| 色综合久久久久综合体桃花网| 国产亚洲欧洲一区高清在线观看| 蜜乳av一区二区三区| 884aa四虎影成人精品一区| 性做久久久久久久久| 在线观看一区二区视频| 亚洲国产aⅴ天堂久久| 欧美日韩国产美| 午夜国产精品一区| 91麻豆精品国产91久久久使用方法 | 一区二区三区国产豹纹内裤在线| 色偷偷成人一区二区三区91| 亚洲毛片av在线| 精品视频在线免费观看| 日韩专区在线视频| 欧美日韩国产在线观看| 五月天激情综合网| 久久新电视剧免费观看| fc2成人免费人成在线观看播放| 一区二区在线电影| 欧美一区二区视频在线观看 | 国产乱淫av一区二区三区| 日本一区二区三级电影在线观看 | 久久99国产精品免费| 欧美国产一区二区| 欧美一区二区三区四区视频| 国产一区二区三区综合| 国产精品视频一二| 欧美一区二区在线免费播放| 粉嫩蜜臀av国产精品网站| 午夜欧美一区二区三区在线播放| 久久久精品国产免大香伊 |