Login
Discover
Waves
Communities
Login
Signup
Topics
#struct
Global
Trending
Hot
New
Top
#struct
New
Top communities
Create your community
latest #struct created topics | Ecency
lemooljiang
HIVE CN 中文社区
2022-08-27 11:02
实现交易 / go实现简易区块链 #5
在交易中我们把币送给其它人, 为了实现这个,需要创建一笔交易,把它设到区块中,然后挖出这个区块。 func NewUTXOTransaction(from, to string, amount int, bc *Blockchain) *Transaction { var inputs []TXInput var outputs []TXOutput acc, validOutputs :=
$ 7.609
34
2
lemooljiang
HIVE CN 中文社区
2022-08-16 10:59
运行简易链条 / go实现简易区块链 #2
把区块链接在一起,就可以实现一个区块链啰! package main import ( "bytes" "crypto/sha256" "encoding/binary" "fmt" "os" "time" ) //定义区块结构 type Block struct { Version
$ 10.689
34
1
lemooljiang
HIVE CN 中文社区
2022-08-14 11:46
区块的结构 / go实现简易区块链 #1
利用假期学习些底层的知识,比如用go语言实现下区块链的逻辑。重新学习下区块的结构,区块链的结构,哈希函数这些。前期进展较慢,慢慢地,渐入佳境。 区块结构示意图 type Block struct { Version int64 PrevBlockHash []byte Hash []byte MerKelRoot []byte TimeStamp int64 Bits int64 Nonce int64
lemooljiang
HIVE CN 中文社区
2020-09-20 11:03
合约中堆栈太深引发的错误 / 学习智能合约#24
今天在设计一个场外合约时遇到了一个错误,如上图所示:堆栈太深! struct OrderMessage { uint256 orderNumber; string typeOfPayment; string collectingAccount; string sellerSteem; address sellerTron; string buyerSteem; address buyerTron;
luchyl
LeoFinance
2026-08-09 23:59
Promoted
Slimy Little Gluttons.
How is it that you plant vegetables and these slimy little creatures won’t let them be? You plant, you tend, and when the vegetables start flourishing, these wild snails show up like they own the place.
nbkmundotech
golang
2019-05-03 05:05
Como Definir Estruturas (Struct) na Linguagem Golang
Às vezes temos dados que são relacionados e que seria melhor encapsula-los em uma só entidade. Em um jogo de duas dimensões, por exemplo, precisamos de duas variáveis para manter a posição do jogador.
ljyxxzj
solidity
2018-11-28 15:13
【译】智能合约 | Solidity中有哪些实用又简单的存储模式?
本文翻译自:contract development - Are there well-solved and simple storage patterns for Solidity? - Ethereum Stack Exchange 在Solidity智能合约开发中,数据结构的定义是非常重要的,下面介绍几种经常用到的数据结构。 Array(元素为Struct) struct EntityStruct
mosjin
cpp
2018-03-18 15:24
!
Low reputation account with an unverified outbound link, Reveal content
白话C++编程系列之十七 结构体
上篇《白话C++编程系列之十六 调试篇》, 我们一起学习了C++中是如何进行调试(抓虫子的). For a fish, the archer fish is known to shoot down bugs from low hanging plants by spitting water at them. 对于鱼类来说,已知射手鱼通过向其吐水来击落低矮植物的虫子。 现在来回顾一下吧!_ 调试(debug)
leo99lee
kr
2018-03-13 10:20
matlab의 struct를 table로 전환해보자
우선 moments라는 struct가 있다. moment= struct with fields: dy: 0.9040 dc: 0.6901 pinfobs: 0.7850 corYI: -0.2466 corYC: 0.5686 arI: 0.7623 arY: 0.3161 cyc: -0.0279 이 struct는 다양한 변수들과 그 값으로 이루어져 있다. 이 struct는
tonyz
Black And White
2026-08-09 12:00
Promoted
Wakeboard event Amsterdam. Monomad Challenge.
Great action yesterday in Amsterdam. Respect, saw some hard crashes.
kerimcaglar
utopian-io
2018-01-06 15:23
Swift Class Struct yapısı kavramı,
Selamlar , Bugün " Class Struct " Yapısından bahsettim . Kodlamadaki bu yapılarımız , farklı tiplerde eleman içerebilir ve dosya içinde tutulacak kayıtları oluşturmakta kullanılır . Videoda anlatmaya
zaidazadkiel
programming
2017-05-17 02:05
C struct intialization warning about braces solution
In C when initializing a struct and one of the members is array or union, you have to put {}'s surrounding this element. otherwise you get a warning about braces. struct list { int type; union { int d;