简单的化学式 求分子量问题 下面附上 代码和解析. 1 #include<stdio.h> 2 #include<algorithm> 3 #include<string.h> 4 #include<math.h> 5 using namespace std ; 6 int main() 7 { 8
分类:
其他好文 时间:
2016-01-28 09:21:27
阅读次数:
215
How Are Elements Displayed? Every element has a default display property value, Things get interesting with the inline-block value. Using this value w
分类:
其他好文 时间:
2016-01-28 00:45:12
阅读次数:
194
字符串比较,3种结果:AC,PE,WA;为了好处理中间的数据让所有输入的字符串连起来并且让两种输入的行数相同,(除却空行) 一个输入函数,一个处理函数 附代码 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 using
分类:
其他好文 时间:
2016-01-27 23:17:57
阅读次数:
355
运行VS出现warning C4996错误, warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, us
分类:
其他好文 时间:
2016-01-27 21:15:05
阅读次数:
146
#include <iostream>#include <cmath> const int N=500000;//数组大小 using namespace std; int main(){ int n,c,a[N]={0}; cin >> n; for (int i=1;i<=n;i++){ for
分类:
其他好文 时间:
2016-01-27 19:40:02
阅读次数:
123
LIBS += -lGL -lGLU -lglut -lGLEW 1 #include <GL/glut.h> 2 #include <iostream> 3 using namespace std; 4 GLfloat light0_position[] = { 1.0, 1.0, 1.0, 0.
分类:
其他好文 时间:
2016-01-27 19:32:43
阅读次数:
250
转自:http://blog.sqlauthority.com/2010/05/14/sql-server-find-most-expensive-queries-using-dmv/ The title of this post is what I can express here for thi
分类:
数据库 时间:
2016-01-27 19:23:39
阅读次数:
191
火车进出站做了好长时间,用数组类型存储的,没做出来,之后用栈操作,很快就搞定了。 1 #include 2 #include 3 #include 4 #include 5 6 using namespace std; 7 8 int main(){ 9 int n;int a[...
分类:
其他好文 时间:
2016-01-27 14:33:58
阅读次数:
148
破解密码把字符串从大到小排序,5个循环,验证目标函数a-b*b+c*c*c-d*d*d*d+e*e*e*e*e == m为真时得到字符串 结束循环 输出 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6...
分类:
其他好文 时间:
2016-01-27 14:31:50
阅读次数:
156
数学问题,没难度附代码 1 #include 2 #include 3 4 using namespace std; 5 6 int main() 7 { 8 int N; 9 scanf("%d",&N);10 while(N--){11 int n...
分类:
移动开发 时间:
2016-01-27 14:27:25
阅读次数:
155