Login
Discover
Waves
Decks
Plus
Login
Signup
Topics
New
Trending
Hot
New
New
Trending
Hot
New
Payouts
Muted
Promoted
Global
Top communities
Create decentralized community
latest #struct created topics on internet
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
$ 1.284
27
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;
$ 8.743
106
1
theshot2414
GEMS
2026-04-03 11:08
Promoted
“Un sueño raro… y una verdad que estoy viviendo en Hive” [Esp - Eng] “A strange dream… and a truth I’m living on Hive”
Saludos mi gente hermosa de la comunidad #GEMS 💎 Feliz Viernes Santo para todos… un día que nos invita a hacer una pausa, a reflexionar y a mirar un poco más hacia adentro. Hoy quiero compartirles algo
$ 1.608
215
8
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.
$ 0.000
4
2
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
$ 0.091
19
2
mosjin
cpp
2018-03-18 15:24
白话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)
$ 0.000
3
1
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는
$ 0.000
0
splintertrends
Splinterlands
2026-04-03 09:18
Promoted
TRENDZ Loyalty Rewards S02E02
Get your share from SWAP.HIVE and DEC tokens
$ 0.091
66
9
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
$ 30.660
5
2
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;
$ 0.164
2