"expected declaration." How to correct?

var x = ActnTxBx

var y = 1...1000000000000

func CFUperMLcalc(_: y, _: x);, -> y {

400000000000(x)

}

print y

}


cannot understand error code as "expected declaration." When I change or edit I can not determine y. Must I place number in ActnTxBx, I can not run simuator because of error. I have done similar math in playground and it gives correct output. If one needs more of the view controller, I will past later, this is where the error is. The func line. Nobody is posting similar. I have "current versions" of X-code and Beta X-code. I am trying to use X-code and SWIFT. Iphone 5 App. I have watched a YouTube video on textbox and may need to rename.


Well here's the whole view controller, maybe this will help:

/

/

/

/

/

/

/

import UIKit

class ViewController: UIViewController {

@IBOutlet weak var ImageBckgrnd: UIImageView!

@IBOutlet weak var AbsTxBx: UITextField!

@IBOutlet weak var CFUperML: UIImageView!

@IBOutlet weak var ClearButton: UIImageView!

override func viewDidLoad() {

super.viewDidLoad()

/

}

override func didReceiveMemoryWarning() {

super.didReceiveMemoryWarning()

/

}

@IBAction func ActnTxBx(sender: UITextField) {

}

var x = ActnTxBx

var y = 1...1000000000000

func CFUperMLcalc(_: y, _: x);, -> y {

400000000000(x)

}

print y

}

    @IBAction func ActnTxBx(sender: UITextField) {
        }
    var x = ActnTxBx
    var y = 1...1000000000000
    func CFUperMLcalc(_: y, _: x);, -> y {
        400000000000(x)
    }
print y
}


I don't know where to start with this. Normally I can guess what someone is trying to accomplish with even mangled code but this is beyond me. You really need to go back to the Swift language reference and go back to the basics of what is a variable, how do you assign a value to it, how do you declare a function, how do you pass variables as parameters when calling said function etc.

"expected declaration." How to correct?
 
 
Q