opengl20面体#include#defineX.525731112119133606#defineZ.850650808352039932staticGLfloatvdata[12][3]={//各顶点坐标{-X,0.0,Z},{X,0.0,Z},{-X,0.0,-Z},{X,0.0,-Z},{0.0,Z,X},{0.0,Z,-X},{0.0,-Z,X},{0.0,-Z,-X},{Z,X,0.0},{-Z,X,0.0},{Z,-X,0.0},{-Z,-X,0.0},};staticGLuinttindices[20][3]={//构成各面(三角形)的顶点索引{1,4,0},{4,9,0},{4,5,9},{8,5,4},{1,8,4},{1,10,8},{10,3,8},{8,3,5},{3,2,5},{3,7,2},{3,10,7},{10,6,7},{6,11,7},{6,0,11},{6,1,0},{10,1,6},{11,0,9},{2,11,9},{5,2,9},{11,2,7},};voiddisplay(){glClear(GL_COLOR_BUFFER_BIT);glBegin(GL_TRIANGLES);for(inti=0;i<20;++i){glColor3f(1.0,1.0,i*1.0/20);//颜色设置glVertex3fv(&vdata;[tindices[i][0]][0]);glVertex3fv(&vdata;[tindices[i][1]][0]);glVertex3fv(&vdata;[tindices[i][2]][0]);}glEnd();glFlush();}voidinit(){glClearColor(0.0,0.0,0.0,0.0);}intmain(intargc,char**argv){glutInit(&argc;,argv);glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB);glutInitWindowSize(250,250);glutInitWindowPosition(100,100);glutCreateWindow("Polygon");init();glutDisplayFunc(display);glutMainLoop();return0;}
2024/6/21 7:15:38 749B opengl 20面体
1
HennessyandPattersonwrotethefirsteditionofthisbookwhengraduatestudentsbuiltcomputerswith50,000transistors.Today,warehouse-sizecomputerscontainthatmanyservers,eachconsistingofdozensofindependentprocessorsandbillionsoftransistors.Theevolutionofcomputerarchitecturehasbeenrapidandrelentless,butComputerArchitecture:AQuantitativeApproachhaskeptpace,witheacheditionaccuratelyexplainingandanalyzingtheimportantemergingideasthatmakethisfieldsoexciting.
2024/6/20 9:58:41 23.76MB computer arc
1
LetGbeaplanargraphwithmaximumdegreeΔ≥8andwithoutchordal.5-cycles.Thenχl(G)=Δandχl(G)=Δ+1.
2024/6/19 18:14:55 344KB 研究论文
1
租赁管理系统(含数据库)租赁管理数据库Java(Java+数据库)Java+数据库(Access/MySQL/SQLServer)-HFUTcs10-1zhaoya
2024/5/23 21:28:43 1011KB 租赁管理 数据库 Java
1
用来压缩和解压的,以下是部分函数:intcompress(Bytef*dest,uLongf*destLen,constBytef*source,uLongsourceLen);intcompress2(Bytef*dest,uLongf*destLen,constBytef*source,uLongsourceLen,intlevel);intuncompress(Bytef*dest,uLongf*destLen,constBytef*source,uLongsourceLen);typedefvoidpgzFile;gzFilegzopen(constchar*path,constchar*mode);gzFilegzdopen(intfd,constchar*mode);intgzsetparams(gzFilefile,intlevel,intstrategy);intgzread(gzFilefile,voidpbuf,unsignedlen);intgzwrite(gzFilefile,constvoidpbuf,unsignedlen);intVAgzprintf(gzFilefile,constchar*format,...);intgzputs(gzFilefile,constchar*s);char*gzgets(gzFilefile,char*buf,intlen);intgzputc(gzFilefile,intc);intgzgetc(gzFilefile);intgzflush(gzFilefile,intflush);z_off_tgzseek(gzFilefile,z_off_toffset,intwhence);z_off_tgztell(gzFilefile);intgzrewind(gzFilefile);intgzeof(gzFilefile);intgzclose(gzFilefile);constchar*gzerror(gzFilefile,int*errnum);
2024/5/19 1:06:11 79KB zlib123-dll.zip
1
Booth乘法器及测试8*8bitbooth乘法器及测试modulemultiplier(prod,busy,mc,mp,clk,start);output[15:0]prod;//shortforproductoutputbusy;input[7:0]mc,mp;//multiplicandmultipierinputclk,start;reg[7:0]A,Q,M;regQ_1;reg[3:0]count;
2024/5/13 16:18:36 3KB Booth乘法器
1
基于FPGA的UDP硬件协议栈,全部用SystemVerilog写的,不需CPU参与,包括独立的MAC模块。
支持外部phy的配置,支持GMII和RGMII模式。
以下是接口inputclk50,inputrst_n,interfacetousermoduleinput[7:0]wr_data,inputwr_clk,inputwr_en,outputwr_full,output[7:0]rd_data,inputrd_clk,inputrd_en,outputrd_empty,input[31:0]local_ipaddr,//FPGAipaddressinput[31:0]remote_ipaddr,//PCipaddressinput[15:0]local_port,//FPGAportnumber//interfacetoethernetphyoutputmdc,inoutmdio,outputphy_rst_n,outputis_link_up,`ifdefRGMII_IFinput[3:0]rx_data,outputlogic[3:0]tx_data,`elseinput[7:0]rx_data,outputlogic[7:0]tx_data,`endifinputrx_clk,inputrx_data_valid,inputgtx_clk,outputlogictx_en
2024/5/9 1:21:54 52KB FPGA UDP千兆 以太网 源码
1
FeaturescalingforkernelFisherdiscriminantanalysisusingleave-one-outcrossvalidation.FS-KFDAisapackageforimplementingfeaturescalingforkernelfisherdiscriminantanalysis.-FeaturescalingforkernelFisherdiscriminantanalysisusingleave-one-outcrossvalidation.FS-KFDAisapackageforimplementingfeaturescalingforkernelfisherdiscriminantanalysis.
2024/3/3 10:22:16 483KB 核fisher
1
Achecksumisanalgorithmthatscansapacketofdataandreturnsasinglenumber.Theideaisthatifthepacketischanged,thechecksumwillalsochange,sochecksumsareoftenusedfordetectingtransmissionerrors,validatingdocumentcontents,andinmanyothersituationswhereitisnecessarytodetectundesirablechangesindata.Forthisproblem,youwillimplementachecksumalgorithmcalledQuicksum.AQuicksumpacketallowsonlyuppercaselettersandspaces.Italwaysbeginsandendswithanuppercaseletter.Otherwise,spacesandletterscanoccurinanycombination,includingconsecutivespaces.AQuicksumisthesumoftheproductsofeachcharacter'spositioninthepackettimesthecharacter'svalue.Aspacehasavalueofzero,whilelettershaveavalueequaltotheirpositioninthealphabet.So,A=1,B=2,etc.,throughZ=26.HereareexampleQuicksumcalculationsforthepackets"ACM"and"MIDCENTRAL":ACM:1*1+2*3+3*13=46MIDCENTRAL:1*13+2*9+3*4+4*0+5*3+6*5+7*14+8*20+9*18+10*1+11*12=650InputTheinputconsistsofoneormorepacketsfollowedbyalinecontainingonly#thatsignalstheendoftheinput.Eachpacketisonalinebyitself,doesnotbeginorendwithaspace,andcontainsfrom1to255characters.OutputForeachpacket,outputitsQuicksumonaseparatelineintheoutput.SampleInputACMMIDCENTRALREGIONALPROGRAMMINGCONTESTACNACMABCBBC#SampleOutput46650469049751415
2024/2/28 16:27:03 432B ACM
1
NetCDFfilesareself-describing,network-transparent,directlyaccessible,andextendible.`Self-describing'meansthatanetCDFfileincludesinformationaboutthedataitcontains.`Network-transparent'meansthatanetCDFfileisrepresentedinaformthatcanbeaccessedbycomputerswithdifferentwaysofstoringintegers,characters,andfloating-pointnumbers.`Direct-access'meansthatasmallsubsetofalargedatasetmaybeaccessedefficiently,withoutfirstreadingthroughalltheprecedingdata.`Extendible'meansthatdatacanbeappendedtoanetCDFdatasetwithoutcopyingitorredefiningitsstructure.
2024/2/19 6:18:07 11.04MB netcdf
1
共 83 条记录 首页 上一页 下一页 尾页
在日常工作中,钉钉打卡成了我生活中不可或缺的一部分。然而,有时候这个看似简单的任务却给我带来了不少烦恼。 每天早晚,我总是得牢记打开钉钉应用,点击"工作台",再找到"考勤打卡"进行签到。有时候因为工作忙碌,会忘记打卡,导致考勤异常,影响当月的工作评价。而且,由于我使用的是苹果手机,有时候系统更新后,钉钉的某些功能会出现异常,使得打卡变得更加麻烦。 另外,我的家人使用的是安卓手机,他们也经常抱怨钉钉打卡的繁琐。尤其是对于那些不太熟悉手机操作的长辈来说,每次打卡都是一次挑战。他们总是担心自己会操作失误,导致打卡失败。 为了解决这些烦恼,我开始思考是否可以通过编写一个全自动化脚本来实现钉钉打卡。经过一段时间的摸索和学习,我终于成功编写出了一个适用于苹果和安卓系统的钉钉打卡脚本。
2024-04-09 15:03 15KB 钉钉 钉钉打卡