string类型转换int类型本文地址: http://blog.csdn.net/caroline_wendyC语言转换形式:...
std::string str;
int i = atoi(str.c_str());
...C++转换形式(C++11):...
std::string str;
int i = std::stoi(str);
...同样, 可以使用 stol(long), s...
分类:
编程语言 时间:
2014-06-11 00:27:22
阅读次数:
294
题目来源:《The C programming language》中的习题P27练习2-1:
编写一个程序以确定分别由signed及unsigned限定的char、short、int与long类型变量的取值范围。采用打印标准头文件中的相应值以及直接计算两种方式实现。后一种方法的实现较困难一些,因为要...
分类:
编程语言 时间:
2014-06-09 21:33:57
阅读次数:
370
MSN 全称 MICROSOFT SERVICE NETWORK 微软网 络服务。 MSN
Messenger的最新版本是Windows Live Messenger 9.0,MSN 9 是一种 Internet 软件,它基于 Microsoft
高级技术,可使您和您的家人更有效地利用 Web。MS...
分类:
其他好文 时间:
2014-06-09 21:23:00
阅读次数:
300
注意数据范围即可#include #include #include using namespace
std;int main(){ long long n,x; cin >> n >> x; vector c(n); for(int i
= 0 ; i > c[i]; ...
分类:
其他好文 时间:
2014-06-09 21:17:11
阅读次数:
269
注意p的边界情况,p为0,或者 p为k奇数+偶数 = 奇数奇数+奇数 = 偶数#include
#include #include #include #include using namespace std;int main(){ int n,k,p;
long a; cin >>...
分类:
其他好文 时间:
2014-06-09 20:20:23
阅读次数:
243
Student.java 1 package
cn.itcast.hiberate.sh.domain; 2 3 import java.util.Set; 4 5 public class Student
{ 6 private Long sid; 7 private Stri...
分类:
系统相关 时间:
2014-06-09 15:58:47
阅读次数:
421
http://poj.org/problem?id=1095先求出n个节点数的二叉树的形态有多少种。卡特兰数f[n]=f[n-1]*(4*n-2)/(n+1);再递归求。
1 #include 2 #include 3 #include 4 #define ll long long 5 #de...
分类:
其他好文 时间:
2014-06-09 15:14:11
阅读次数:
167
# include # include # include # include # include
//使用map解决一对一 的关系using namespace std;map mapdata;//数据存储typedef struct node{ long
num; char ch1[20]; c...
分类:
其他好文 时间:
2014-06-08 20:26:01
阅读次数:
235
【题解】:【代码】: 1 #include 2 #include 3 #include 4
#include 5 #include 6 #define LL long long 7 using namespace std; 8 LL
dp[15][100005]; 9 LL N,h,uh,...
分类:
其他好文 时间:
2014-06-08 20:08:41
阅读次数:
261
1. 什么是crash
crash是用来调试linux 的kdump生成的vcore,或者用来调试live system;
2. 调试前准备
调试中需要用到vmlinux,该vmlinux与生成vcore或者live system的vmlinuz必须一致,
这就意味着我们需要自己编译内核,生成initrd,更新grub.cfg;
3. 编译内核
...
分类:
其他好文 时间:
2014-06-08 02:26:25
阅读次数:
857