码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
程序中写数据到文件
#include <iostream>#include <iomanip>#include <fstream> using std::ofstream;ofstream fout3("/home/wang/Desktop/teleop_control.txt"); fout3<<twist.line
分类:其他好文   时间:2016-03-08 09:21:33    阅读次数:156
表逆置[数组和链表]
对于数组(也可为线性表),逆置就是首尾数据两两交换,首先计算交换的次数: 中间需要一个临时变量暂存数据,看似简单,其实有点绕,关键还是数组下标从0开始,这一点很麻烦!这种小题最练基础! 完整代码: #include <iostream> using namespace std; int main()
分类:编程语言   时间:2016-03-08 07:02:14    阅读次数:203
Bookstore project using XAMPP 详细配置 Part 1
这是学校的一个project,记录在这里,以备复习。主要是用XAMPP通过phpMyAdmin连接MySQL数据库,实现一个简单的查询功能。 Outline Setup of XAMPP Implementation of MySQL database in “phpMyAdmin” Create
分类:其他好文   时间:2016-03-08 02:11:10    阅读次数:262
[RxJS] Reactive Programming - Why choose RxJS?
RxJS is super when dealing with the dynamic value. Let's see an example which not using RxJS: var a = 4; var b = a * 10; console.log(b); // 40 a = 5;
分类:Web程序   时间:2016-03-08 02:10:39    阅读次数:253
C++结构到类的演变
#include<iostream> using namespace std; struct point{ //private: double x, y; //public: void setxy(double a,double b) { x = a; y = b; } void display()
分类:编程语言   时间:2016-03-08 02:00:20    阅读次数:164
软件工程个人作业
程序思想: 1.定义数组储存随机数, 2.while 循环30次 3.第一个判断奇偶,奇数则为整数运算,偶数为假分数运算, 4.然后为运算项,然后将随机数除以四,分别为加减乘除。 5.进行判断是否重复,不重复则储存并输出。 代码: #include<iostream> using namespace
分类:其他好文   时间:2016-03-08 00:25:14    阅读次数:191
第二次作业
第一版本程序Prog1:+ 给定一个数组,实现数组元素求和;具体要求:实现对一维数组(a[100])的所有元素相加运算。+ 数据准备:a)数组长度:100;b)数组数据来源:实验数据A列:1~100,CSV 格式则填充 前100个数据. #include<iostream>using namespa
分类:其他好文   时间:2016-03-08 00:05:47    阅读次数:163
CodeForces 86D Powerful array(莫队算法)
和BZOJ2038差不多。。复习一下。 1 #include<cstdio> 2 #include<cmath> 3 #include<algorithm> 4 using namespace std; 5 int block; 6 struct Query{ 7 int i,l,r; 8 bool
分类:编程语言   时间:2016-03-07 23:59:10    阅读次数:472
四则运算题的输出
源代码://四则运算//邵文正 20142894 2016.3.7#include<iostream>using namespace std;int random() { return(rand()%100); }char Fuhao() { int a; a = rand() % 4; if (a
分类:其他好文   时间:2016-03-07 22:24:10    阅读次数:238
当前上下文中不存在名称“ConfigurationManager”
Visual Studio调试出现错误:当前上下文中不存在名称“ConfigurationManager” 解决方法: 1.System.Configuration引用这个dll参考:http://keleyi.com/a/bjac/rh2ouu5w.htm 2.再引用此名称空间using Syst
分类:其他好文   时间:2016-03-07 22:10:25    阅读次数:158
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!