diameter 发表于 2010-8-24 08:17:04

预告:9750GII:猜猜我想干什么II

先按下……

之后显示:

退出,修改参数

再次按下……

然后:

我用四则运算方法,解决了判断二进制某一位的问题,先卖个关子……

diameter 发表于 2010-8-24 08:55:36

又没人理我……j_0009.gif

疯不狂 发表于 2010-8-24 09:41:50

j_0013.gif什么方法?

diameter 发表于 2010-8-24 09:45:56

我原来不是发过吗?

diameter 发表于 2010-8-24 10:04:05

你是说判断二进制某位的方法?简单,不用位运算or就可以
比如24的第4位
(24 =>BIN 11000)
第一步,24 / (2 ^(4-1)),相当于24>>3(C语言操作符)
第二步,24 / (2 ^(4-1))=3,判断3是否是奇数(Mod(3,2)=1)
3是奇数,所以24第三位是1.
(当位移后第一位是1时,这个数必定是奇数)

[Boeing 617] 发表于 2010-8-24 11:23:59

句号句号句号句号句号句号句号句号句号句号
要是内存能在扩大一点,文字能放多一点就更好了。
相比nspire的鸡肋仿宋。。
这个字体好看得多得多得多得多得多得多得多得多得多

noivan 发表于 2010-8-24 11:47:57

真不错!希望近期可以提供示例程序!

diameter 发表于 2010-8-24 11:53:01

"想知道卡西欧图形计算器是如何显示中文的吗?"这个字符串储存在List 1中
这21个字符一共就占了12*21=252个“数字”

我不觉得多占内存?

yzhang37 发表于 2010-8-24 11:56:25

好主意,不过对SDK编程没帮助

diameter 发表于 2010-8-24 11:58:16

好主意,不过对SDK编程没帮助
yzhang37 发表于 2010-8-24 11:56 http://www.cncalc.org/images/common/back.gif
why?SDK不是用C语言编程的么?
把数据存在整形数组中不行吗?

noivan 发表于 2010-8-24 11:59:15


why?SDK不是用C语言编程的么?
把数据存在整形数组中不行吗?
diameter 发表于 2010-8-24 11:58 http://www.cncalc.org/images/common/back.gif这样也许不错STORAGE的空间可大得很

yzhang37 发表于 2010-8-24 12:03:23

只能用:

const int calc={
{0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,1,1,1,1,0,0,0,1,0,0,0,0,1,0,0,0,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1,1,1,1,1,0,0,1,0,0,1,0,1,0,0,1,0,0,0,1,1,0,0,1,0,0,0,1,0,0,1,1,0,0,0,1,0,0,0,0,1},
{0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,1,1,1,1,0,0,0,1,0,0,0,1,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,1}};

diameter 发表于 2010-8-24 12:03:41

不过现在问题是绘图速度太慢(否则我就要放弃控制结构了)

yzhang37 发表于 2010-8-24 12:05:05

SDK速度非常快。这张图绘制出来不需要0.01秒

[Boeing 617] 发表于 2010-8-24 12:35:10

9750GII的速度算快了。

diameter 发表于 2010-8-24 12:38:14

只能用:

const int calc={
{0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,1,1,1,1,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0},
{0,0,1,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,1,1, ...
yzhang37 发表于 2010-8-24 12:03 http://www.cncalc.org/images/common/back.gif
晕死
我的方法就是用二进制表示每一行,12个数字表示一个字符!
比如:character ”想“
const int cc_xiang []= {636,580,4092,580,1916,2756,636,0,1348,1322,2552,0};
然后用相应的算法就可以解决了!!

yzhang37 发表于 2010-8-24 12:55:25

你们把小看SDK的本领了。
SDK的文件格式是g1A,是图形计算器程序无法比的

你们觉得GII自然计算快吗?这就是用SDK编写的,如果用程序就慢的多了

yzhang37 发表于 2010-8-24 13:10:21

给大家看个图:

diameter 发表于 2010-8-24 15:25:03

至于么?一个Int型在16位的机子下占用2字节,
比如512*512的地图,你需要512*512*2=524288个字节
而如果用512/16=32个数字表示一行,需要16384个字节
很节约!

zhuloupu4 发表于 2010-8-24 15:58:41

仔细说下方法好么?
页: [1] 2
查看完整版本: 预告:9750GII:猜猜我想干什么II