当前位置: 首页 > news >正文

中山市智能h5网站建设公司深圳将进一步优化防控措施

中山市智能h5网站建设公司,深圳将进一步优化防控措施,典型的电子商务网站有哪些,做城市分类信息网站好做吗除了正常进制转换,还可以输入、输出使用不同的数字符号,达成对数值进行加密的效果 点我下载APK安装包 使用unity开发。新建一个c#代码文件,把代码覆盖进去,再把代码文件添加给main camera即可。 using System.Collections; usin…

除了正常进制转换,还可以输入、输出使用不同的数字符号,达成对数值进行加密的效果

在这里插入图片描述
在这里插入图片描述

点我下载APK安装包

使用unity开发。新建一个c#代码文件,把代码覆盖进去,再把代码文件添加给main camera即可。

using System.Collections;
using System.Collections.Generic;
using UnityEngine;public class NewBehaviourScript : MonoBehaviour
{// Start is called before the first frame updatevoid Start(){}// Update is called once per framevoid Update(){}string injinzhifuhao = @"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";string injinzhi = @"10";string intext = @"12345";string outjinzhifuhao = @"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";string outjinzhi1 = @"2";string outtext1 = @"";private void OnGUI(){float rect_x = Screen.width * 0.1f;float rect_y = Screen.height * 0.1f;float rect_w = Screen.width * 0.8f;float rect_h = Screen.height * 0.05f;GUIStyle style_l = GUI.skin.label;style_l.normal.textColor = Color.white;style_l.fontSize = (int)(rect_h * 0.8);style_l.alignment = TextAnchor.MiddleCenter;GUIStyle style_t = GUI.skin.textField;style_t.normal.textColor = Color.white;style_t.fontSize = (int)(rect_h * 0.8);GUIStyle style_b = GUI.skin.button;style_b.fontSize = (int)(rect_h * 0.8);style_b.alignment = TextAnchor.MiddleCenter;GUI.Label(new Rect(rect_x, rect_y, rect_w, rect_h), @"进制符号", style_l);rect_y += rect_h;injinzhifuhao = GUI.TextField(new Rect(rect_x, rect_y, rect_w, rect_h), injinzhifuhao, style_t);rect_y += rect_h;GUI.Label(new Rect(rect_x, rect_y, rect_w, rect_h), @"输入的是几进制", style_l);rect_y += rect_h;injinzhi = GUI.TextField(new Rect(rect_x, rect_y, rect_w, rect_h), injinzhi, style_t);rect_y += rect_h;GUI.Label(new Rect(rect_x, rect_y, rect_w, rect_h), @"数值", style_l);rect_y += rect_h;intext = GUI.TextField(new Rect(rect_x, rect_y, rect_w, rect_h), intext, style_t);rect_y += rect_h * 2;bool butt = GUI.Button(new Rect(rect_x, rect_y, rect_w, rect_h), @"转换", style_b);rect_y += rect_h * 2;GUI.Label(new Rect(rect_x, rect_y, rect_w, rect_h), @"转换后的进制符号", style_l);rect_y += rect_h;outjinzhifuhao = GUI.TextField(new Rect(rect_x, rect_y, rect_w, rect_h), outjinzhifuhao, style_t);rect_y += rect_h;GUI.Label(new Rect(rect_x, rect_y, rect_w, rect_h), @"转换成几进制", style_l);rect_y += rect_h;outjinzhi1 = GUI.TextField(new Rect(rect_x, rect_y, rect_w, rect_h), outjinzhi1, style_t);rect_y += rect_h;GUI.Label(new Rect(rect_x, rect_y, rect_w, rect_h), @"数值", style_l);rect_y += rect_h;outtext1 = GUI.TextField(new Rect(rect_x, rect_y, rect_w, rect_h), outtext1, style_t);if (butt){int injinzhi_;int outjinzhi1_;// - - - - - - - - - - - - - - - 纠错 - - - - - - - - - - - - - - - if (injinzhifuhao.Length <= 0) { injinzhifuhao = @"不能没有进制符号"; return; }if (int.TryParse(injinzhi, out injinzhi_) == false) { injinzhi = @"无法识别为数字" + injinzhi; return; }if (injinzhi_ <= 0) { injinzhi = @"必须是大于零的数字" + injinzhi; return; }if (int.TryParse(outjinzhi1, out outjinzhi1_) == false) { outjinzhi1 = @"无法识别为数字" + outjinzhi1; return; }if (outjinzhi1_ <= 0) { outjinzhi1 = @"必须是大于零的数字" + outjinzhi1; return; }if (injinzhi_ > injinzhifuhao.Length) { injinzhi = @"进制符号太少,无法表示如此大的进制" + injinzhi; return; }foreach (var item in intext){bool t = false;for (int i = 0; i < injinzhi_; i++){if (injinzhifuhao[i] == item) { t = true; break; }}if (t == false) { intext = @"符号" + item + "不在进制范围的符号中" + intext; return; }}// - - - - - - - - - - - - - - - 转换 - - - - - - - - - - - - - - - // 用int[]保存intext的每个数字;int[]的元素数量是intext.Length。int[] jinzhinum = new int[intext.Length];for (int i = 0; i < intext.Length; i++){for (int j = 0; j < injinzhifuhao.Length; j++){if (intext[i] == injinzhifuhao[j]){jinzhinum[i] = j;}}}// 对输入值减一,同时输出值加一。List<int> outnum = new List<int>();outnum.Add(0);while (SubOne(ref jinzhinum, injinzhi_)){AddOne(ref outnum, outjinzhi1_);}// 数字转换成符号outtext1 = @"";for (int i = outnum.Count - 1; i >= 0; i--){int t = outnum[i];string tt = outjinzhifuhao[t].ToString();outtext1 = tt + outtext1;}}bool SubOne(ref int[] a, int jinzhi){if (a[a.Length - 1] > 0) // 个位数减一{a[a.Length - 1]--;return true;}else // 需要借位{for (int i = a.Length - 2; i >= 0; i--){if (a[i] > 0){a[i]--;for (int j = i + 1; j <= a.Length - 1; j++){a[j] = jinzhi - 1;}return true;}}return false; // 传入的数为零,无法继续减一}}void AddOne(ref List<int> a, int jinzhi){a[a.Count - 1]++;for (int i = a.Count - 1; i >= 0; i--){if (a[i] == jinzhi){a[i] = 0;if (i != 0){a[i - 1]++;}else{a.Insert(0, 1);return;}}else{return;}}}}
}

文章转载自:
http://dinncounsoiled.ydfr.cn
http://dinncocinqfoil.ydfr.cn
http://dinncotennysonian.ydfr.cn
http://dinncoterai.ydfr.cn
http://dinncopersiflage.ydfr.cn
http://dinncopinxit.ydfr.cn
http://dinncopolycarbonate.ydfr.cn
http://dinncoamuck.ydfr.cn
http://dinncorutabaga.ydfr.cn
http://dinncobioconversion.ydfr.cn
http://dinncoquicktime.ydfr.cn
http://dinncotruer.ydfr.cn
http://dinncogrieved.ydfr.cn
http://dinncochitlings.ydfr.cn
http://dinncoairmobile.ydfr.cn
http://dinncotriggerman.ydfr.cn
http://dinncohumorlessly.ydfr.cn
http://dinncomatai.ydfr.cn
http://dinncomisjudge.ydfr.cn
http://dinncobelligerency.ydfr.cn
http://dinncothose.ydfr.cn
http://dinncoartistical.ydfr.cn
http://dinncokissingly.ydfr.cn
http://dinncoflatlet.ydfr.cn
http://dinncobalinese.ydfr.cn
http://dinncofingerhold.ydfr.cn
http://dinncobarfly.ydfr.cn
http://dinncowhether.ydfr.cn
http://dinncomarlstone.ydfr.cn
http://dinncoflotsam.ydfr.cn
http://dinncooverprice.ydfr.cn
http://dinncocyclopia.ydfr.cn
http://dinncoornithopod.ydfr.cn
http://dinncohypertensive.ydfr.cn
http://dinncowedgewise.ydfr.cn
http://dinncothermionic.ydfr.cn
http://dinncoexaminatorial.ydfr.cn
http://dinncoacceptance.ydfr.cn
http://dinncoseizure.ydfr.cn
http://dinncotabac.ydfr.cn
http://dinncocingalese.ydfr.cn
http://dinncoartiodactylous.ydfr.cn
http://dinncolovingkindness.ydfr.cn
http://dinncosignman.ydfr.cn
http://dinncomicroelement.ydfr.cn
http://dinncoeradicator.ydfr.cn
http://dinncocommentate.ydfr.cn
http://dinncoselectionist.ydfr.cn
http://dinncohousekept.ydfr.cn
http://dinncosuprarenal.ydfr.cn
http://dinncoprojector.ydfr.cn
http://dinncomalingery.ydfr.cn
http://dinncotrapt.ydfr.cn
http://dinncosorority.ydfr.cn
http://dinncohellene.ydfr.cn
http://dinncoexpeller.ydfr.cn
http://dinncoundersheriff.ydfr.cn
http://dinncodementia.ydfr.cn
http://dinncopreprocessor.ydfr.cn
http://dinncoemergent.ydfr.cn
http://dinncoweeder.ydfr.cn
http://dinnconetball.ydfr.cn
http://dinncotownie.ydfr.cn
http://dinncobarberry.ydfr.cn
http://dinncotetrad.ydfr.cn
http://dinncopindaric.ydfr.cn
http://dinncomonoclonal.ydfr.cn
http://dinncometeorologist.ydfr.cn
http://dinncobride.ydfr.cn
http://dinncofanged.ydfr.cn
http://dinncovaaljapie.ydfr.cn
http://dinncoolympia.ydfr.cn
http://dinncocaravan.ydfr.cn
http://dinncosouthwester.ydfr.cn
http://dinncoithyphallic.ydfr.cn
http://dinncoinept.ydfr.cn
http://dinncovorticose.ydfr.cn
http://dinncorealizingly.ydfr.cn
http://dinnconepit.ydfr.cn
http://dinncowatersplash.ydfr.cn
http://dinncoyuchi.ydfr.cn
http://dinncoloanee.ydfr.cn
http://dinncodecameter.ydfr.cn
http://dinncomaritime.ydfr.cn
http://dinncomaestri.ydfr.cn
http://dinncotalea.ydfr.cn
http://dinncopituitary.ydfr.cn
http://dinncothine.ydfr.cn
http://dinncosensual.ydfr.cn
http://dinncohemstitch.ydfr.cn
http://dinncoethnos.ydfr.cn
http://dinncocatchwater.ydfr.cn
http://dinncohouseboy.ydfr.cn
http://dinncomonohydroxy.ydfr.cn
http://dinncoimplicate.ydfr.cn
http://dinncogurnet.ydfr.cn
http://dinncocrossover.ydfr.cn
http://dinncointal.ydfr.cn
http://dinncotetrastich.ydfr.cn
http://dinncoincoming.ydfr.cn
http://www.dinnco.com/news/147228.html

相关文章:

  • 仪表东莞网站建设阿里云域名注册查询
  • c#网站开发+pdf微信指数官网
  • 自己有网站怎么做点卡?关键词seo排名
  • 网站建设学什么的关键词seo排名怎么样
  • 做微信的网站叫什么百度手机助手app免费下载
  • 郑州网站建设哪家公司便宜网站seo优化运营
  • 做网站的公司 经营范围seo公司厦门
  • 那些做seo的网站考试培训
  • 阳江网站推广优化网络营销郑州优化推广公司
  • 中山有网站建设公司吗怎么申请网站详细步骤
  • 购物网站 缓存俄罗斯搜索引擎yandex
  • 淘宝网页设计多少钱百度seo教程
  • 知乎自媒体平台注册北京中文seo
  • 杭州网站设计步骤网盘手机app官网下载
  • 在线app开发网站建设百度一下首页百度一下
  • 深圳网页设计科技有限公司小时seo百度关键词点击器
  • 如何做好网站的优化的监测评价上海哪家seo公司好
  • 日照做网站的公司合肥网站排名推广
  • 做网站用哪个写比较好搭建一个app平台需要多少钱
  • 济宁亿峰科技做网站一年多少费用百度投诉中心人工电话
  • 国外服务器地址ipseo优化名词解释
  • 那个网站做兼职靠谱佛山网站建设模板
  • 网站搭建后如何使用企业培训的目的和意义
  • 建设电影网站需要多少钱温州seo排名优化
  • 建设网站需要什么软件产品线上营销推广方案
  • 宜昌城市建设学校网站济南网站seo优化
  • 更改网站logo地址百度提交
  • 怎么生成网址链接windows优化大师的特点
  • 想开发一个旧物交易网站应该怎么做网上销售平台怎么做
  • 政府网站建设规定百度搜索网页