V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
yakczh
V2EX  ›  Erlang

erl中怎么实现变量标志

  •  
  •   yakczh · Mar 18, 2013 · 6540 views
    This topic created in 4788 days ago, the information mentioned may be changed or developed.
    比如 
    global flag=0

    on data

    if (flag == 0) {
    print "first"; flag=1
    }else {
    print "after..."
    }


    这种代码在erl中怎么写?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5998 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 03:31 · PVG 11:31 · LAX 20:31 · JFK 23:31
    ♥ Do have faith in what you're doing.