string path = Server.MapPath("copycode/code.txt");
            string[] allCodeLine = System.IO.File.ReadAllLines(path, System.Text.Encoding.UTF8);
            System.Text.StringBuilder strb = new Sys...
                            
                            
                                分类:
Web程序   时间:
2014-07-22 23:02:54   
                                阅读次数:
366
                             
                    
                        
                            
                            
                                第七章 F# 库(四)
打印(Microsoft.FSharp.Text.Printf)模块
 
打印(Printf)模块提供了以类型案例的方式格式化字符串的函数,打印模块中函数的第一个参数是值的占位符,它返回的函数需要为占位符提供值;占位符用百分号加一个表示类型的字母组成,表 7-2 是完整的清单。
 
表 7-2 打印模块的占位符和标记
 
标记
...
                            
                            
                                分类:
其他好文   时间:
2014-07-22 23:02:35   
                                阅读次数:
383
                             
                    
                        
                            
                            
                                Size widgetSize = Director::getInstance()->getWinSize();
        
        Text* alert = Text::create("Layout", "fonts/Marker Felt.ttf", 30 );
        alert->setColor(Color3B(159, 168, 176));
        a...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 21:53:45   
                                阅读次数:
461
                             
                    
                        
                            
                            
                                2dx中的相对布局和Android中的非常类似,如果之前做过Android应该非常容易上手。
        Size widgetSize = Director::getInstance()->getWinSize();
        
        Text* alert = Text::create("Layout", "fonts/Marker Felt.ttf", 30 );
  ...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 18:33:56   
                                阅读次数:
2383
                             
                    
                        
                            
                            
                                相对某个控件进行布局
Size widgetSize = Director::getInstance()->getWinSize();
        
        Text* alert = Text::create("Layout", "fonts/Marker Felt.ttf", 30 );
        alert->setColor(Color3B(159, 168, 176)...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 18:04:08   
                                阅读次数:
503
                             
                    
                        
                            
                            
                                public class SessionListener implements HttpSessionListener {
	
	static Logger log = Logger.getLogger(
			SessionListener.class.getName());
    private static Map map = new   
            HashMap();  ...
                            
                            
                                分类:
编程语言   时间:
2014-04-30 22:31:38   
                                阅读次数:
397
                             
                    
                        
                            
                            
                                1、
        Text* alert = Text::create("Layout", "fonts/Marker Felt.ttf", 30 );
        alert->setColor(Color3B(159, 168, 176));
        alert->setPosition(Point(widgetSize.width / 2.0f,...
                            
                            
                                分类:
其他好文   时间:
2014-04-30 22:23:38   
                                阅读次数:
421
                             
                    
                        
                            
                            
                                一、java通过JNI调用DLL
//MyNative.java
public class MyNative{
 static{
   System.loadLibrary("MyNative");
 }
 public native static void HelloWorld();
 public native String cToJa...
                            
                            
                                分类:
其他好文   时间:
2014-04-30 22:22:38   
                                阅读次数:
404
                             
                    
                        
                            
                            
                                header("Content-type:text/html; charset=utf-8");
function getToken($url){
        $ch = curl_init(); 
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  //相当关键,这句话是...
                            
                            
                                分类:
Web程序   时间:
2014-04-30 22:16:40   
                                阅读次数:
373
                             
                    
                        
                            
                            
                                问题描述:
               在sublime text里写最简单的python语句hello world:
                    print  ('hello world') 
                    回车build后出错如下图:
  
  解决办法:
                 这个问题的原因说起来很幼稚,就是因为没有保存文件。所...
                            
                            
                                分类:
其他好文   时间:
2014-04-30 22:16:38   
                                阅读次数:
344