摘要:
solidity函数修饰符 view 没有改变任何值或者写任何东西。只能读取,不能修改 pure 函数不访问应用里的数据 第11章: Keccak256 和 类型转换 类型转换 require require使得函数在执行过程中,当不满足某些条件时抛出错误,并停止执行 import 在 Solidi
阅读全文
posted @ 2019-04-09 20:31
孤笑
阅读(157)
推荐(0)
摘要:
函数 重定义 不支持重定义,会在编译时候报错 继承 属性继承:public internal 方法继承:public internal external 继承重载 多重继承按顺序,同名属性(方法)按最后一个为准,如果子合约自身有,覆盖其他 构造函数 在合约部署时候就自动执行 使用合约同名的方法名,0
阅读全文
posted @ 2019-04-04 20:09
孤笑
阅读(168)
推荐(0)
摘要:
address 地址类型 40个16进制数,160位 地址包括合约地址和账户地址 payable 合约充值 balance,指的是当前地址的账户value,单位是wei this指的是当前合约的地址 可以通过地址查找账户余额 transfer 转账和将合约的价值转移 send send()方法和tr
阅读全文
posted @ 2019-04-01 22:09
孤笑
阅读(199)
推荐(0)
摘要:
string string类型不可以直接通过length读取字符串长度,也不可以直接通过下标直接访问数据元素 使用的方法是:强制类型转换为bytes 其中," " 和‘ ’都可以表示 string类型,特殊字和英文字符数字字母占一个字节,中文汉字和中文字符占3个字节 结果为 bytes数组转化为st
阅读全文
posted @ 2019-04-01 20:30
孤笑
阅读(223)
推荐(0)
posted @ 2019-03-31 15:11
孤笑
阅读(993)
推荐(0)
摘要:
1 //#include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 int zhishu(int x){ 9 if(x==2||x==3){ 10 return 1; 11 } 12 else{ 13 in...
阅读全文
posted @ 2019-03-21 14:48
孤笑
阅读(348)
推荐(0)
摘要:
1 //#include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 int main(){ 8 int N; 9 scanf("%d",&N); 10 while(N--){ 11 int M; 12 scanf("%d",&M...
阅读全文
posted @ 2019-03-21 14:10
孤笑
阅读(115)
推荐(0)
摘要:
#include using namespace std; void Bubblesort(int a[],int n){ for(int i=0;ia[j+1]){ int temp=a[j]; a[j]=a[j+1]; a[j+1]=temp; flag=1...
阅读全文
posted @ 2019-03-18 15:09
孤笑
阅读(643)
推荐(0)
摘要:
Microsoft SQL Server Management Studio 17,一段时间未用出现Cannot find one or more components.Please reinstall the application错误信息。 卸载,重装无效。看了很多答案不仅复杂而且没什么用?解决
阅读全文
posted @ 2018-09-05 14:15
孤笑
阅读(6752)
推荐(0)
摘要:
阿里云主机使用SQL Server作为数据库服务器,连接数据库时候出现错误。
阅读全文
posted @ 2018-09-05 14:04
孤笑
阅读(1404)
推荐(0)