wxzwsj197950
wxzwsj197950
关注数: 17
粉丝数: 146
发帖数: 1,396
关注贴吧数: 47
有没有要买暴雪2016嘉年华周边那个守望q版手办的啊 是一盒就一个手办吗?
求助大神们一个查询 问题是这样的,现在我有一个表,主键是用户id,然后每个用户有个积分,比如有的用户更新了17号的积分,有的只到16号,我现在要求每个用户1天,1周,1月的积分和,应该怎么写sql呢。。
怎么把笔记本上写好的程序在windows平板上运行? 连usb然后运行device不可以。。。
新手求助。。Magicvoxel模型导入unity 本人菜鸟。。。在网上看到magicvoxel这个软件,感觉做出来的模型很不错,不知道能不能导入到unity。。。求大神指导
win7双系统升级win10问题 现在我是win7+ubuntu的双系统,ubuntu引导的win7,如果我升级了win10(用官网的易升什么的)那么会不会出问题。ubuntu还能找到吗。。。
winform的tooltip大小有问题 我设置isballon=false时大小和文字是对上的,但是我设置了true时,有时候文字会显示不全,这是什么情况。。有没人遇到过
【02-18 i吧·求助】Iphone6s 港版,为什么wallet没有加银行卡 地区是美国就有,设置成中国没有,但是我朋友地区中国就已经可以了。。。。什么情况,系统已经9.2了。。。apple store账号还没绑定银行卡,不过我觉得跟这个没什么关系吧,有相同情况的小伙伴吗?
一道算法题求助(英文) Game Jeff loves playing games, Gluttonous snake( an old game in NOKIA era ) is one of his favourites. However, after playing gluttonous snake so many times, he finally got bored with the original rules. In order to bring new challenge to this old game, Jeff introduced new rules : The ground is a grid, with n rows and m columns(1 <= n, m <= 500). Each cell contains a value v (-1≤vi≤ 99999), if v is -1, then this cell is blocked, and the snake can not go through, otherwise, after the snake visited this cell, you can get v point. The snake can start from any cell along the left border of this ground and travel until it finally stops at one cell in the right border. During this trip, the snake can only go up/down/right, and can visit each cell only once. Special cases : a. Even in the left border and right border, the snake can go up and down b. When the snake is at the top cell of one column, it can still go up, which demands the player to pay all current points , then the snake will be teleported to the bottom cell of this column and vice versa. After creating such a new game, Jeff is confused how to get the highest score. Please help him to write a program to solve this problem. Input The first line contains two integers n (rows) andm (columns), (1 <= n, m <= 500), separated by a single space. Next n lines describe the grid. Each line contains m integers vi (-1≤vi≤99999) vi = -1 means the cell is blocked. Output Output the highest score you can get. If the snake can not reach the right side, output -1. 下面是我写的代码用暴力的dfs搜索,但是运行是错的,不知道为什么,求大神帮忙看看哪错了,新手求助 #include <iostream> #include <fstream> using namespace std; int m,n; int map[505][505]; bool isVisited[505][505]; int max=0; void dfs(int h,int l,int sum) { if(l>=m) { if(sum>max) { max = sum; } cout<<sum<<endl; return; } if(h<0) dfs(n-1,l,0); if(h>=n) dfs(0,l,0); if(map[h][l]==-1) return; if(isVisited[h][l]) return; isVisited[h][l] = true; dfs(h,l+1,sum+map[h][l]); dfs(h-1,l,sum+map[h][l]); dfs(h+1,l,sum+map[h][l]); } int main() { ifstream cin("F:\\data.in"); cin>>n>>m; int i,j; for(i=0;i<n;i++) for(j=0;j<m;j++) { cin>>map[i][j]; isVisited[i][j]=false; } for(i=0;i<n;i++) { dfs(i,0,0); } return 0; }
问一道关于二叉树的算法问题。 假如我知道一棵二叉树的先序遍历结果比如abcd,要怎么能创建出所有符合这个先序遍历的二叉树呢?(就是找到所有先序遍历结果为abcd但是结构不同的二叉树)
求银魂图,大神快来 除了这三张还有没有这样的图大神快来看看
有没用过java poi的啊,excel要怎么改单元格内部分字的颜色 如题
1 11
写扫雷时遇到的异常求大神解决 报数组越界异常,不知道为什么,源代码如下
别人的qt工程到自己机子上老是找不到头文件,不能编译 怎么办?
c++ string的replace c++ string类的replace函数如果替换的2个字符串长度不一样会覆盖掉后面的内容或者替换不全,怎么破?
qt5和qt4差别好大,qt4不会用 事情是这样的,我弄了本qt书,书上用的是qt4.8,我下的qt5,结果好多书上的例子编译不过,我就又下了个qt4,但是qt4没带qt creator,我怎么弄才能用5的creator编4.8的程序
#include为什么提示找不到QGraphicsObject呢 RT
看一本书上的代码输进去没显示啊,大神来看看 #include<GL/glut.h> #include<stdio.h> int day=200; void myDisplay(void) { glEnable(GL_DEPTH_TEST); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(75,1,1,400000000); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); gluLookAt(0,-200000000,200000000,0,0,0,0,0,1); ///////////////////////////////////// glColor3f(1.0f,0.0f,0.0f); glutSolidSphere(69600000,20,20); ////////////////////////////////////// glColor3f(0.0f,0.0f,1.0f); glRotatef(day/360.0*360,0.0f,0.0f,-1.0f); glTranslatef(150000000,0.0f,0.0f); glutSolidSphere(15945000,20,20); ////////////////////////////////////// glColor3f(1.0f,1.0f,0.0f); glRotatef(day/30.0*360.0-day/360.0*360.0,0.0f,0.0f,-1.0f); glTranslatef(38000000,0.0f,0.0f); glutSolidSphere(4345000,20,20); glFlush(); } int main(int argc,char * argv[]) { glutInit(&argc,argv); glutInitDisplayMode(GLUT_RGB | GLUT_SINGLE); glutInitWindowPosition(100,100); glutCreateWindow("日地月"); glutDisplayFunc(&myDisplay); glutMainLoop(); return 0; }
STL队列的问题 有没有人看过算法竞赛入门经典这本书的,里面的一段代码运行出错了
widget的最大最小化还有关闭的按钮怎么改样式啊 如题,搞了半天。。。
phonon不能用啊 错误提示:-1: 错误:Unknown module(s) in QT: phonon; 我刚学的,刚学到这里
菜鸟问个问题,为什么这个按钮槽不执行 文件在这里 http://pan.baidu.com/s/1j6zX8
打字母游戏,背景音乐是3首经典的红白机游戏背景乐 地址,http://pan.baidu.com/s/1zfnB4 @yangw80 借鉴了一下官网的打字母。 老大我写好了,来看看吧
有没有系统是win7 64位的啊,你们是怎么用qt的? 我搞了半天还是用不上啊
菜鸟又来求大神帮忙,看一下这个五子棋判断胜负不起作用 #include<stdio.h> #include<graphics.h> #include<stdlib.h> #include<conio.h> int p1_qipan[20][20]={0}; int p2_qipan[20][20]={0}; int player=1; void hua_qi_pan(void) { initgraph(400,400); int x=40,y=0; while(x<=400) { line(x,y,x,400); x+=40; } x=0;y=40; while(y<=400) { line(x,y,400,y); y+=40; } } int judgeWin(int qi_pan[20][20]); void GameOver(int winPlay) { if(winPlay==1) outtextxy(150,200,"玩家一获胜"); if(winPlay==2) outtextxy(150,200,"玩家二获胜"); getch(); } int main(void) { hua_qi_pan(); while(1) { while(player==1) { setfillstyle(RED); MOUSEMSG m; m=GetMouseMsg(); if(m.mkLButton==true) { if(m.x%40!=0||m.y%40!=0) { if(m.x%40<=20) { m.x=m.x-m.x%40; } if(m.y%40<=20) { m.y=m.y-m.y%40; } if(m.x%40>20) { m.x=m.x-m.x%40+40; } if(m.y%40>20) { m.y=m.y-m.y%40+40; } } if(p2_qipan[m.x/20][m.y/20]==0) { fillcircle(m.x,m.y,18); p1_qipan[m.x/20][m.y/20]=1; player=2; } } } if(judgeWin(p1_qipan)) { GameOver(1); } ////////////////////////////////////////////////////////////////// while(player==2) { setfillstyle(BLUE); MOUSEMSG m; m=GetMouseMsg(); if(m.mkLButton==true) { if(m.x%40!=0||m.y%40!=0) { if(m.x%40<=20) { m.x=m.x-m.x%40; } if(m.y%40<=20) { m.y=m.y-m.y%40; } if(m.x%40>20) { m.x=m.x-m.x%40+40; } if(m.y%40>20) { m.y=m.y-m.y%40+40; } } if(p1_qipan[m.x/20][m.y/20]==0) { fillcircle(m.x,m.y,18); p2_qipan[m.x/20][m.y/20]=1; player=1; } } } if(judgeWin(p2_qipan)) { GameOver(2); } ///////////////////////////////////////////////////////////// } return 0; } int judgeWin(int qi_pan[20][20]) { for(int x=0;x<=15;x++) for(int y=0;y<=15;y++) { if(qi_pan[x][y]==1 && qi_pan[x+1][y]==1 && qi_pan[x+2][y]==1 && qi_pan[x+3][y]==1 && qi_pan[x+4][y]==1) return 1; if(qi_pan[x][y]==1 && qi_pan[x][y+1]==1 && qi_pan[x][y+2]==1 && qi_pan[x][y+3]==1 && qi_pan[x][y+4]==1) return 1; if(qi_pan[x][y]==1 && qi_pan[x+1][y+1]==1 && qi_pan[x+2][y+2]==1 && qi_pan[x+3][y+3]==1 && qi_pan[x+4][y+4]==1) return 1; } return 0; }
有没人会写把图片转成字符图的代码? 如题。不知道怎么写,自己写的分辨不出啊,乱成一团,只能看简单的图
菜鸟问一个到超简单的问题
汇编有什么好用的调试工具啊,debug不会用 每次写完程序都不知道怎么看结果对没对,寄存器的值还好,比如某段内存的数据就不知道怎么看了。。。
这个求组合数的递归这样写为什么算不对 代码如下,递推公式网上找的应该不会错 #include <iostream.h> int c(int n,int m) {if(m==1) return n; if(n==m) return 1; if(n<m) return 0; if(m<n) return c(n-1,m-1)+c(n,m-1); } void main() { cout<<c(5,3);}
这里有几个编译错误求大神帮忙看看 有谁看Qt creator 快速入门这本书的吗?我按书上说的做结果编译不过,提示的是 error: invalid use of incomplete type 'class MyLineEdit' lineEdit=new MyLineEdit(this); ^ In file included from ..\myEvent\widget.cpp:1:0: ..\myEvent\widget.h:9:7: error: forward declaration of 'class MyLineEdit' class MyLineEdit; ^ ..\myEvent\widget.cpp:13:13: error: invalid use of incomplete type 'class MyLineEdit' lineEdit->move(100,100); ^ In file included from ..\myEvent\widget.cpp:1:0: ..\myEvent\widget.h:9:7: error: forward declaration of 'class MyLineEdit' class MyLineEdit; ^ ..\myEvent\widget.cpp: At global scope:
怎么把图标拖动到exe上就能让exe打开它 如题。网上查说是命令行参数,但是具体要怎么实现实在搞不懂。
怎么设置textedit的字体 比如我想让我选中的那段文字字体改变,其他不会变,有什么办法?
选修选的flash,今天刚学元件,有个关于按钮和补间动画的问... 就是我用形状补间做了一个闪烁的flash字,我想在底下加上一个按钮,当时我一添加元件,形状补间就不能用了,请问这种情况要怎么办
一个软件的破解 本人初学破解,看了一个教程,拿一个叫absolute sound recorder做试验,教程没说清楚是怎么找到的注册的call,直接就分析算法了,我现在是连注册的call都找不到,麻烦哪位大神看一下那款软件,看一下怎么找到关键call的就好(写教程的人说很容易找)。
为什么还没有收到验证邮件阿,2点注册好的
为什么点了提交网页就不动了 为什么点了提交网页就不动了
关于头文件的实现的一个疑问 想看看一些数学函数的实现的,结果打开math.h里面全都是函数定义,想问问那些头文件的源码在哪,为什么只要包含那些头文件就能使用了?
c++有没有按一个键直接就响应,不用再按回车的函数 如题
c++ new的问题 c++的new能实现c的relloc吗,或者有替换的函数吗
getasynkeystate到底怎么用 这个返回值是什么啊,有什么意义?我在网上查了一些,写了些程序试了下都不行,会不会是我创建的是控制台程序?好像只有返回值0的时候有用。
loadimage资源里的图片 我现在在e盘有个1.bmp的图片,我想把它添加到资源,然后程序就能在其他机子上打开它,要怎么添加以及loadimage, 麻烦大神具体说一下
定义字符串是出现的一个问题 我写str db "please input a year=$",结果编译错误A2085,按网上找的加上.386或者.286结果提示db语法错误,我用我同学写的程序,他是TSTR DB "Please input a year =$",原原本本复制下来,结果就编译成功了。。。。这究竟是什么原因啊。。。。求大神解释下啊。。。。。本人刚学汇编菜鸟一个
写了个贪吃蛇,蛇身体不会变长啊,求大神帮忙看看哪错了 本人新手一个,最近从网上看到有人写贪吃蛇,代码没看太懂,就自己写起来了。 现在问题是蛇身体吃到食物后不会变长,这是怎么回事啊。。。求解释。。。。
1
下一页