1、UINavigationBar 背景色修改- (void)viewWillAppear:(BOOL)animated{ UINavigationBar *bar = self.navigationController.navigationBar; //关键是这几句。。。。。 [bar se...
分类:
其他好文 时间:
2015-05-25 22:15:18
阅读次数:
101
概念简述:在装箱拆箱之前简单说一下值类型、引用类型:值类型:原类型(Sbyte、Byte、Short、Ushort、Int、Uint、Long、Ulong、Char、Float、Double、Bool、Decimal)、枚举(enum)、结构(struct)等,是在栈中分配内存,在申明的同时就初始化,以确保数据不为NULL;引用类型:..
枚举法
水题#include
#include
#include
using namespace std;const int maxn = 1000 + 5; int main(){
int k,x,y,cnt;
int xx[maxn],yy[maxn];
bool flag;
while(cin >>...
分类:
其他好文 时间:
2015-05-25 18:44:30
阅读次数:
97
VC++中 3 个主要 写入/读取配置文件ini的函数:bool WritePrivateProfileString(LPCTSTR lpAppName,LPCTSTR lpKeyName,LPCTSTR lpString,LPCTSTR lpFileName);写入.ini文件;DWORDGetP...
分类:
编程语言 时间:
2015-05-25 18:09:37
阅读次数:
216
IOS8之后增加了UIAlertController类,它可以表示UIAlertView和UIActionSheet.它继承自UIViewController。- (BOOL)application:(UIApplication *)application didFinishLaunchingWit...
分类:
其他好文 时间:
2015-05-25 17:58:55
阅读次数:
176
#条款2尽量使用consts,enums,template inline替代#define 1 #include 2 #include 3 #include 4 5 using namespace std; 6 bool check_size(const string &s, string:...
分类:
编程语言 时间:
2015-05-25 13:03:39
阅读次数:
164
题意 中文
简单的Topo排序 用vector实现邻接表比较方便
#include
using namespace std;
const int N = 1e5 + 5;
vector e[N];
vector::iterator it;
int n, m, ideg[N];
bool topo()
{
int cur;
queue q;
for(int i ...
分类:
编程语言 时间:
2015-05-25 09:58:06
阅读次数:
154
1 1.+(BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType; 检查指定源是否在设备上可用。 2 //检查照片源是否可用 3 [UIImagePickerContr...
分类:
其他好文 时间:
2015-05-25 09:49:43
阅读次数:
161
虽然还有很多不懂的,但是以后这些应该都能理解#import "ViewController.h"@interface ViewController ()//这里开始{ long long sum; double a; long long b; NSString *dengyu;//=号 BOOL i...
分类:
其他好文 时间:
2015-05-25 00:50:53
阅读次数:
423
#include
#include
#include
using namespace std;
#define maxn 10
int n;
bool vis[maxn];
int sum;
int c[maxn];
bool check(int cur,int j){
if(vis[j])return false;
for(int i=0;i<cur;i++){
if(j-c...
分类:
其他好文 时间:
2015-05-24 21:58:08
阅读次数:
137