Severity: 8192
Message: Function create_function() is deprecated
Filename: geshi/geshi.php
Line Number: 4698
Backtrace:
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once
#include "IntArray.h" CIntArray::CIntArray(void)//Khởi tạo mặc định { m_Array=NULL; m_Length=0; } CIntArray::CIntArray(int len)//Khởi tạo với kích thước mảng đầu vào { m_Length=len; m_Array=new int[m_Length]; srand(time(NULL));//Gieo hạt giống ngẫu nhiên theo thời gian //Giả sử giá trị ngẫu nhiên chỉ nằm trong phạm vi từ -50 đến 50 để tiện cho việc dubug //Có thể thay đổi phạm vi khác theo yêu cầu for(int i=0;i<m_Length;i++) m_Array[i]=rand()%101-50;//Gán giá trị ngẫu nhiên } CIntArray & CIntArray::operator =(const CIntArray &obj)//Xây dựng toán tử gán { delete []m_Array; m_Length=obj.m_Length; m_Array=new int[m_Length]; for(int i=0;i<m_Length;i++) m_Array[i]=obj.m_Array[i]; return *this; } int & CIntArray::operator [](int i)//Xây dựng toán tử lấy giá trị [] { return m_Array[i]; } ostream & operator << (ostream & Out,CIntArray &obj)//Toán tử trích dòng { Out<<"Kich thuoc mang "<<obj.m_Length<<endl; for (int i=0;i<obj.m_Length;i++) { Out<<obj.m_Array[i]<<" "; } Out<<endl; return Out; } istream & operator >> (istream & In,CIntArray &obj)//Toán tử nhập dòng { if(obj.m_Length!=0) delete []obj.m_Array; cout<<"Nhap vao so luong phan tu: "; In>>obj.m_Length; obj.m_Array=new int[obj.m_Length]; for (int i=0;i<obj.m_Length;i++) { cout<<"a["<<i<<"]= "; In>>obj.m_Array[i]; } return In; } CIntArray::operator int *()//Toán tử chuyển đổi kiểu; { int *newArray=new int[m_Length]; for(int i=0;i<m_Length;i++) { newArray[i]=m_Array[i]; } return newArray; } CIntArray::~CIntArray(void) { if (m_Length!=0) delete []m_Array; }