C/C++
山东的大蒜王师傅
山东大学(威海)一卑微学生
展开
-
计算机图形学实验8边标志多边形填充算法cgExperiment08EdgeMarkFill
计算机图形学实验8边标志多边形填充算法项目(调试好)项目名称cgExperiment08EdgeMarkFill原创 2022-10-07 10:13:30 · 235 阅读 · 0 评论 -
PTA试题答案(非标准)7-1 Shuffling Machine (20分)
PTA试题答案(非标准)7-1 Shuffling Machine (20分)题目:Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid “inside jobs” where employees collaborate with gamblers by perform原创 2020-11-19 13:41:56 · 610 阅读 · 0 评论 -
PTA试题答案(非标准)7-4 简单计算器 (20分)
PTA试题答案(非标准)7-4 简单计算器 (20分)题目:模拟简单运算器的工作。假设计算器只能进行加减乘除运算,运算数和结果都是整数,四种运算符的优先级相同,按从左到右的顺序计算。输入格式:输入在一行中给出一个四则运算算式,没有空格,且至少有一个操作数。遇等号”=”说明输入结束。输出格式:在一行中输出算式的运算结果,或者如果除法分母为0或有非法运算符,则输出错误信息“ERROR”。输入样例:1+2*10-10/2=输出样例:10答案:int main(){ int bas原创 2020-11-19 13:25:52 · 2657 阅读 · 1 评论 -
PTA答案 6-8 2.9 Getbits (5分)**
pta题目答案(非标准)6-8 2.9 Getbits (5分)write a function getbits(x,p,n) that returns the (right adjusted) n-bit field of x that begins at position p. We assume that bit position 0 is at the right end and that n and p are sensible positive values.#include <st原创 2020-11-05 20:04:25 · 334 阅读 · 0 评论