码迷,mamicode.com
首页 >  
搜索关键字:network namespace    ( 53294个结果)
模板具体化
#ifndef SWAP_H_INCLUDED#define SWAP_H_INCLUDED#include using namespace std;struct Job{ string name; int salary;};template void Swap(T &a, T &b);...
分类:其他好文   时间:2014-05-16 01:14:38    阅读次数:340
动态Linq(结合反射)
这篇文章决定对最近一个单机版Web程序用到的东西总结一下。一、反射Linq之OrderBy 动态Linq结合反射对某字段排序:namespace 动态Linq{ class Program { static void Main(string[] args) ...
分类:其他好文   时间:2014-05-16 00:40:13    阅读次数:414
Convolution Neural Network (CNN) 原理与实现
本文结合Deep learning的一个应用,Convolution Neural Network 进行一些基本应用,参考Lecun的Document 0.1进行部分拓展,与结果展示(in python)。 分为以下几部分: 1. Convolution(卷积) 2. Pooling(降采样过程) 3. CNN结构 4. 跑实验 下面分别介绍...
分类:Web程序   时间:2014-05-15 23:21:13    阅读次数:746
外贸网络推广:只做有好的结果的事
外贸网络推广:只做有好的结果的事 原文出处:http://www.szxnl.net/trade-promotion-network/ 我们都明白:任何事情去做,必然有结果,但不一定是好的结果,也不一定是我们所期望的.   如何把事情做到有好的结果?   很简单, 要做好一个事情,就是要把所有参与此事的人,都获得有益结果.否...
分类:其他好文   时间:2014-05-15 23:20:39    阅读次数:427
hdu 2955 Robberies
题目:     链接:点击打开链接 题意:     roy抢银行,知道每个银行的存款和被抓的概率,以及Roy能够被抓的概率,求他能够抢劫的最多的money。 思路:     dp[i]表示抢劫i块钱不被抓的概率,当i==0时,一定不会被抓,即dp[0] = 1; 代码: #include #include #include using namespace std; #define M...
分类:其他好文   时间:2014-05-15 23:05:08    阅读次数:266
HDU 4811 Ball(贪心)
http://acm.hdu.edu.cn/showproblem.php?pid=4811 推理一下,发现可以先求出后面放小球可以加分的最大值,然后前面的和为0 + 1 + 2 + ...+ max,max最大为6,因为每个球最多算左右两边 代码: #include #include using namespace std; long long a, b, c; long long ...
分类:其他好文   时间:2014-05-15 23:04:28    阅读次数:387
hdu 2602 Bone Collector
题目;     点击打开链接 代码; #include #include #include using namespace std; struct beibao{ int val; int vol; }bag[1010]; int main() { int dp[1010]; int i,j,n,v; int t; cin>>t; wh...
分类:其他好文   时间:2014-05-15 22:50:51    阅读次数:394
单链表的排序 快速排序 归并排序 quicksort mergesort
原理都很简单,关键是某些边界能否正确写对: #include #include using namespace std; class Node { public: int val; Node* next; Node(int val = 0):val(val),next(NULL){ } }; Node* quicksort(Node* head, Node* tai...
分类:其他好文   时间:2014-05-15 20:27:36    阅读次数:296
算法 — partial_sort
partial_sort接受一个middle迭代器,使序列中的middle-first个最小元素以递增顺序排序,置于[first, middle)内。下面是测试代码: #include #include #include using namespace std; int main() { int a[] = {10,9,8,7,6,5,4,3,2,1,0}; vec...
分类:其他好文   时间:2014-05-15 19:23:27    阅读次数:361
Differences between Hub, Network Bridge, Switch and Router
Beforewetalkaboutthedifferencesbetweenthesenetworkdevices,wehavetounderstandtheconflictdomainandbrocastdomainfirst.Takebusnetworktopologyforexample,allthePCsareconnectingtothesamebusline.IfmultiplePCsaresendingthesignalatthesametime,itwillcreateaconflictdom..
分类:Web程序   时间:2014-05-15 18:48:26    阅读次数:381
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!