码迷,mamicode.com
首页 >  
搜索关键字:namespace    ( 41927个结果
中缀表达式转后缀表达式
中缀表达式转后缀表达式 思路: 1:初始化一空栈,用来对符号进出栈使用 2:遇到“+ - * / ("进栈 3:若是 + 号或 - 号在*或/的后面(就是栈顶),先将*或/出栈,再+或-出栈 4:遇到右括号就一直出栈,直到到达左括号后结束 5:最后将栈清空(因为循环结束后栈中还有符号元素没出栈)#include using namespace...
分类:其他好文   时间:2015-04-10 20:18:53    阅读次数:96
商场打折结构体
namespace 商场打折结构体{ class Program { struct ZhuangBei { public string name; public double price; public int amount; } static void Main(string[] args) {....
分类:其他好文   时间:2015-04-10 20:13:07    阅读次数:117
结构体数组排序
using System;using System.Collections;using System.Collections.Generic;using System.Text;namespace 结构体冒泡排序{ class Program { struct student { public st...
分类:编程语言   时间:2015-04-10 20:11:20    阅读次数:122
火影忍者多人对战
namespace 火影忍者多人对战{ class Program { //创建一个Player的结构体 struct Player { public string name; public int hp; public int attack; public int defend; public i...
分类:其他好文   时间:2015-04-10 20:10:49    阅读次数:191
ArrayList集合排序
using System;using System.Collections;using System.Collections.Generic;using System.Text;namespace ArrayList集合排序{ class Program { struct Player { publ...
分类:编程语言   时间:2015-04-10 20:05:15    阅读次数:139
C++之在类内部访问对象的私有成员
一、引言今天看项目里的一段代码发现,竟然可以再类的成员函数中访问该类的对象的私有成员。感觉不可思议。自己写的实例代码:#include using namespace std;class CTest{public: CTest(int n) { m_a = n; } ...
分类:编程语言   时间:2015-04-10 19:49:26    阅读次数:143
FlexSlider插件的详细设置参数 http://www.woothemes.com/flexslider/ -----幻灯片插件
$(window).load(function() { $('.flexslider').flexslider({ namespace: 'flex-', //控件的命名空间,会影响样式前缀 animation: "slide", //String: Sel...
分类:Web程序   时间:2015-04-10 19:42:57    阅读次数:173
UVA 11551 - Experienced Endeavour(构造矩阵-水题)
题意:求一列序列的经过r次变化后的新序列,这些变化都是旧序列的某些已给位置的和产生新的项 思路:好水,直接构造01矩阵 //Accepted 45 ms C++ 4.8.2 1442 #include #include #include #include using namespace std; const int mod= 1000; int num[55]; int res[55]; ...
分类:其他好文   时间:2015-04-10 18:07:56    阅读次数:156
USACO--3.1Agri-Net+prime算法
就是一个prime算法。代码如下:/* ID:15674811 LANG:C++ PROG:agrinet */#include #include #include using namespace std;#define maxn 110 #define INF 0x3f3f3f3fint lowcost[maxn],vis[maxn]; int...
分类:编程语言   时间:2015-04-10 18:07:10    阅读次数:185
USACO--3.1Score Inflation+完全背包问题
就是一简单的完全背包问题,秒杀。代码如下:/* ID:15674811 LANG:C++ PROG:inflate */#include #include #include using namespace std;#define maxn 11000int main() { freopen("inflate.in","r",stdin);...
分类:其他好文   时间:2015-04-10 18:05:59    阅读次数:176
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!