
c++编程
feng_xiaoshi
突破光速,跨越纬度。
展开
-
分析一个写图片的c++程序
#include #include #include #include #define DIM 1024#define DM1 (DIM-1)#define _sq(x) ((x)*(x)) // square#define _cb(x) abs((x)*(x)*(x)) // absolute value of cube#define _cr(x) (unsigned char)原创 2016-04-29 20:12:51 · 3885 阅读 · 0 评论 -
使用vim编写c++对于输入输出流<<和<>括号匹配冲突的解决方法
inoremap ainoremap i在/home/username/.vimrc末尾写入上面的代码即可。原创 2016-04-17 15:50:48 · 502 阅读 · 0 评论 -
运行 c++ 程序出现“Failed to execute ”.exe“ Error 0:操作成功完成
今天,在编写动态规划问题时,运行程序出现题目上的问题。程序代码如下:#include using namespace std;int MaxSubArray(int *,int);int main(){ int array[8]={1,-2,3,10,-4,7,2,-5}; int maxSum = MaxSubArray(array,8); cout<<maxSum;原创 2017-02-25 14:27:43 · 26845 阅读 · 8 评论