十月 19, 2014
npm全称Node Package Manager,是node.js的模块依赖管理工具。由于npm的源在国外,所以国内用户使用起来各种不方便。下面整理出了一部分国内优秀的npm镜像资源,国内用户可以选择使用。
十月 19, 2014
npm全称Node Package Manager,是node.js的模块依赖管理工具。由于npm的源在国外,所以国内用户使用起来各种不方便。下面整理出了一部分国内优秀的npm镜像资源,国内用户可以选择使用。
在使用npm进行安装的时候,提示缺少python等问题,直接通过以下方法安装即可
Install all the required tools and configurations using Microsoft's windows-build-tools using npm install --global --production windows-build-tools from an elevated PowerShell or CMD.exe (run as Administrator).
Install tools and configuration manually:
Visual C++ Build Environment:
Option 2: Install Visual Studio 2015 (or modify an existing installation) and select Common Tools for Visual C++ during setup. This also works with the free Community and Express for Desktop editions.
From : http://blog.csdn.net/tonywearme/article/details/7097910
前不久在写代码的时候遇到一个link错误,代码的原型如下所示,基本就是定义了一个基类和派生类,在派生类的一个成员函数中用到了基类定义的一个内联函数。
// base.h
class Base
{
protected:| #include<stdio.h> | |
| #include<stdlib.h> | |
| #include<math.h> | |
| #include<time.h> | |
| #define maxgen 200 // 最大进化代数 | |
| #define sizepop 20 // 种群数目 | |
| #define pcross 0.6 // 交叉概率 | |
| #define pmutation 0.1 // 变异概率 | |
| #define lenchrom 14 // 染色体长度(这里即为城市个数) | |
| double city_pos[lenchrom][2] = { { 16.47,96.10 },{ 16.47,94.44 },{ 20.09,92.54 },{ 22.39,93.37 },{ 25.23,97.24 },{ 22.00,96.05 },{ 20.47,97.02 }, |