Computer Science 595/686 Home Page

Is Ethereum the Googie Architecture
of Cyberspace?

CSC595/686-D: (The Real) Blockchain

by: burt rosenberg
at: university of miami

Lab 2

Use the following example contract to explore solidity:

pragma solidity >=0.4.0 <0.6.0;

contract Hello {
    string  x  ;
    uint count = 0 ;
    
    constructor (string memory _x) public {
        x=_x;
    }
    function get() public view returns (string memory){
        return x;
    }
    
    function count_me() public returns (uint) {
        count = count + 1 ;
        return count ;
    }
    
    function see_me() public view returns(uint) {
        return count;
    }
}
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

author: burton rosenberg
created: 31 jan 2019
update: 31 jan 2019