码迷,mamicode.com
首页 > 编程语言 > 详细

C++之算法题模板

时间:2016-09-16 19:39:24      阅读:170      评论:0      收藏:0      [点我收藏+]

标签:

main.cpp:

#include <iostream>
#include <vector>
#include <cstring>
#include <cstdio>
#include <algorithm>
#include <cmath>

using namespace std;

std::vector<string> v;
int len;
void input(){
cin >> len;

}

void output(){
cout << len;
}

int main(){


input();

output();
return 0;
}

 

 

 

Makefile:

CXX = g++
ERROR = 2>error.txt
CXXFLAGS= -g
TARGET = main.exe


SOURCES = main.cpp
IN = < in.txt
#OUT = > out.txt

all:$(SOURCES)
$(CXX) $(SOURCES) $(CXXFLAGS) -o $(TARGET) $(ERROR)
$(TARGET) $(IN) $(OUT)

clean:
del *.exe

 

C++之算法题模板

标签:

原文地址:http://www.cnblogs.com/huangshiyu13/p/5876909.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!