private function fetchUrl($url){ $curl_hand = curl_init($url); curl_setopt($curl_hand,CURLOPT_RETURNTRANSFER,true); $curl_Data = curl_exec($curl_hand); if($curl_Data === false) { $this->showErrorInfo(new Exception()); } curl_close($curl_hand); return $curl_Data;} /* * 功能: 获取通过给定的正则表达式匹配的结果. * 参数: Read More
posted @ 2011-05-31 13:29 zendPger Views(339) Comments(0) Diggs(0) Edit
1 #include<GL/glut.h> 2 3 static GLfloat spin = 0.0; 4 5 void init(void) 6 { 7 glClearColor(0.0, 0.0, 0.0, 0.0); 8 glShadeModel(GL_FLAT); 9 }10 11 void display(void)12 {13 glClear(GL_COLOR_BUFFER_BIT);14 glPushMatrix();15 glRotatef(spin, 0.0, 0.0, 1.0);16 glColor3f(0.2, 0.5, 0.9);17 glRectf(-3 Read More
posted @ 2011-05-31 11:06 zendPger Views(161) Comments(0) Diggs(0) Edit