         }
     }
     
+    func refresh() {
+        harfResultLabel.text = leftOperand! + " " + centerOperator + " " +  rightOperand!
+    }
+    
+    func hasDot(origString:String)->Bool{
+        
+        for i in origString.characters.indices[origString.startIndex..<origString.endIndex] {
+            if (origString[i] == ".") {
+                return true
+            }
+        }
+        
+        return false
+    }
+    
+    override func viewDidLoad() {
+        super.viewDidLoad()
+    }
+    
     override func didReceiveMemoryWarning() {
         super.didReceiveMemoryWarning()
         // Dispose of any resources that can be recreated.

        if resultLabel.text == "" {
            resultLabel.text = "0"
        }
    }
    
    
    func calculate() {
        

        centerOperator = ""
        resultLabel.text = "0"
        harfResultLabel.text = "0"
        
        refresh()
        is_end = false
    }
    
    
