摘要:
class ViewController: UIViewController { @IBAction func btn_click(sender : AnyObject) { println("click"); } override func viewDidLoad() { super.viewDi 阅读全文
摘要:
非常多时候,应用程序或者是游戏须要用上暂停功能,unity提供了不少便捷的方式,列在以下: 1、在editor中,按下pausebutton就可以暂停 2、假设在代码中控制,能够通过设置Time.timeScale = 0来实现暂停。 3、假设你通过Time.timeScale = 0设置了暂停,可 阅读全文
摘要:
#include<stdio.h> #include<malloc.h> #include<string.h> //定义字符串的结构体 typedef struct {char *str;//字符串int maxLength;//最大能够存放字符的长度int length;//眼下的字符长度 }DS 阅读全文