This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ref: refs/heads/main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ref: refs/heads/main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
contract YeeExchange { | |
// The asset structure | |
struct Asset { | |
address creator; | |
bytes6 id; // 6 bytes string | |
string link; | |
int price; | |
int quantity; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.8.0; | |
contract YeeExchange { | |
// The asset structure | |
struct Asset { | |
address creator; | |
bytes6 id; // 6 bytes string | |
string link | |
int price; | |
int quantity; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.8.0; | |
contract YeeExchange { | |
// The asset structure | |
struct Asset { | |
address creator; | |
bytes6 id; // 6 bytes string | |
string link | |
int price; | |
int quantity; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.8.0; | |
contract YeeExchange { | |
// The asset structure | |
struct Asset { | |
address creator; | |
bytes6 id; // 6 bytes string | |
string link | |
int price; | |
int quantity; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
String name = "Nkugwa Mark"; | |
num accountnumber = 564; | |
num accountbalance = 0; | |
account c = new account(); | |
c.setaccount_name(name); | |
c.setaccount_number(accountnumber); | |
c.deposit(5000); | |
c.withdraw(5000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
num add(num one, num two){ | |
num ans = one + two; | |
return ans; | |
} | |
num subtraction(num one, num two){ | |
num ans = one - two; | |
return ans; | |
} | |
num division(num one, num two){ | |
num ans = one / two; |