COCOS2DX also has a few test items, the 3.2 version is under the Tests folder under the installation directory. The Ccp-tests project contains a lot of usage examples, and beginners can quickly learn the basics of COCOS2DX by familiarizing themselves with this project.I was in the test Cpp-tests project still encountered something, this time to summarize.Enter the Ccp
CCP (the common closure principle)
All classes in the package should be closed for changes to the same class nature.
The classes in a package shoshould be closed together against the same kinds of changes. A change that affects a package affects all the classes in that package.
All classes in a package should be disabled for changes of the same type. A change affects a package and affects all classes in the package.
A more brief statement is:
C
all the function declarations in a header file, and when a certain. cpp source file needs them, they can be included in the. cpp file by a macro command "#include" to merge their contents into the. cpp file. When the. cpp file is compiled, the role of these included. h files is played.For example, assuming that all mathematical functions are only two: F1 and F2, then we put their definitions in math.cpp:/* Math.cpp */Double F1 (){Do something here ....Return}Double F2 (double A){Do something he
asp.net in asp.net because of the direct use or conversion of DLL files, most people do not care about the problem of sharing the original password, since ASP.net is able to edit the latest original code to perform the Web site, it is necessary to
Debug directory, release directory, bin directory, obj directory, vshost.exe.config file,. exe.config file Analysis "C #" 2013-10-06Lone Wind Zhuo film from csdn blog read 558 ext. 4 Go to my library.Share:
When I write a program today, The WebService address of the reference in the. exe.config file nee
1.Ubuntu Create directory Command format: mkdir [options] directory ... Command features: The mkdir command enables you to create a directory named with the specified name at the specified location. The user who created the directory must have write permissions to the parent di
Defined:Using overlay technology, several variables cover each other so that several different variables share the same memory structure and become the community type structure.
The definition of a community is similar to a struct, but all members
Reviews: The main part of the directory tree is root (/),/usr,/var,/home, etc.The main part of the directory tree is root(/),/usr,/var,/home and so on. The following is a typical Linux directory structure as follows:/root directory/bin storing the necessary commands/boot Store the kernel and the files required for star
The project directory is not writable and the directory cannot be generated automatically!
Please use the Project Builder or manually build the project directory ~
The reason is simple because the directory where the project is located does not have write permissions, generally:
Drwxr-xr-x
As long as sudo
MV with rename functionIn the same directoryMV File1 file2 File1 renamed to File2MV File1/home/file1 is moved to the/home directoryMV File1/~ When the target directory does not exist, the file is moved to/directory and renamed to ~[note] Important things to say three times!!!When the/directory to view the ~ file, vi ~ results see blank, because the end of the fil
Copy CodeThe code is as follows:
Gets the directory name of the specified folder
function Get_dir_name ($dir _path, $file)
{
$dirpath = $dir _path;
$dir = Scandir ($dirpath);
foreach ($dir as $key = $value)
{
if (Is_dir ($dirpath. ' /'. $value) $value! = '. ' $value! = ' ... ')
{
echo $dirpath. ' /'. $value. ' /'. $file;
Generate a config.php file in the directory, of course, this file can be defined by i
Copy Code code as follows:
Gets the directory name of the specified folder
function Get_dir_name ($dir _path, $file)
{
$dirpath = $dir _path;
$dir = Scandir ($dirpath);
foreach ($dir as $key => $value)
{
if (Is_dir ($dirpath. ') /'. $value) $value!= '. ' $value!= '. ')
{
echo $dirpath. ' /'. $value. ' /'. $file;
Generate a config.php file in the directory, of course the file can be defined
Place in subdirectories and address to show root directory
Put WordPress in a separate directory and let your blog appear in the root directory
Many people want WordPress to drive the root of their site (for example, http://example.com), but they don't want to have all the
WordPress file to mess with their root directory
1.tomcat Installation and operationDouble-click Bin/startup.bat in the Tomcat directory, enter http://localhost:8080 after startup, prompt for successful installation, indicating successful installation of TomcatDirectory Structure of 2.tomcat* Bin directory: The startup and termination scripts that hold Tomcat* Startup.bat Startup script* Bootstrap.jar, Startup script final Java program execution* Org.apac
When a server, both a test environment, also has a generated environment, development needs to be tested online, if the development of the production environment, then the development of the error-prone operationThe requirements are as follows:(1) Production environment Code, must have a dedicated account login to manage(2) Develop test environment Code, development can access, but cannot access production environment directoryFor this purpose, operate as follows(1) Change the user group and own
7.9 "Linux learning is not difficult" file directory Management (9): MV command file and directory renaming, moving files and directory pathUse the MV command to change the names of files and directories and to move the paths of files and directories.Command syntax:MV [options] [Source Files | directory] [target file |
PackageCom.swift.jinji;ImportJava.io.BufferedInputStream;ImportJava.io.BufferedOutputStream;ImportJava.io.File;ImportJava.io.FileFilter;ImportJava.io.FileInputStream;Importjava.io.FileNotFoundException;ImportJava.io.FileOutputStream;Importjava.io.IOException;ImportJava.util.Scanner;/*get the input file directory from the console and then copy the. java file under the directory (containing subdirectories) to
Environment Common methods:* Method: Getdatadirectory ()Explanation: Return File to get the Android data directory.* Method: Getdownloadcachedirectory ()Explanation: Return File to get the Android download/cache content directory.* Method: getExternalStorageDirectory ()Explanation: Return File, Get External storage directory is SDcard* Method: Getexternalstoragep
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.