大神们,师兄帮帮忙忙…

大神们,帮帮忙吧……_天珠吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:453,193贴子:
大神们,帮帮忙吧……收藏
小白求助大神,朋友在西藏7000大洋淘了个天珠,各位大神来鉴定一下吧
是真的还是台湾高仿啊
七千塊買不到如你貼圖騰的真天珠 這圖騰若真 千萬起跳的 假囉 畫的人亂畫的
7000买不到你这个图腾的真品
7000哪来的天珠,想多了
想贪小便宜,实实被坑了一把这能说活该了!只要动脑想想就知道真的7000会不会卖给你
比台湾仿的都差远了
7000好大的漏~
这个是假的
登录百度帐号推荐应用
为兴趣而生,贴吧更懂你。或【新手求助】大神们,帮帮忙,这个是什么问题……怎么解决?_net吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:16,451贴子:
【新手求助】大神们,帮帮忙,这个是什么问题……怎么解决?收藏
福利不只是穿多穿少,还要有迷人的微笑!
//这是代码using Susing System.Cusing System.Collections.Gusing System.Cusing System.Dusing System.Data.SqlCusing System.Gusing System.IO;using System.Lusing System.Wusing System.Web.UI;using System.Web.UI.WebCpublic partial class Daysearch_Search : System.Web.UI.Page{
protected void Page_Load(object sender, EventArgs e)
this.GridView1.Visible =
if(!IsPostBack)
Button1_Click(t0);
string cbReference = Page.ClientScript.GetCallbackEventReference(Page, &&, &Refresh&, &&);
btnGet.Attribute.Add(&onClick&, cbReference);//这里错误了!!!
string script=&&;
script +=&&script&\r\n&;
script +=&function Refresh(DataFormSever){\r\n&;
script +=&document.getElementById('Result')innerHTML=DataFormS\r\n&;
script +=&}\r\n&/script&\r\n&;
Page.ClientScript.RegisterClientScriptBlock(this.GetType(),&Refresh&,script);
public string GetCallbackResult()
return RenderControl(GridView1);
public void RaiseCallbackEvent(string eventArgument)
Button1_Click(t0);
private string RenderControl(Control c)
StringWriter writer1 = new StringWriter(CultureInfo.InvariantCulture);
HtmlTextWriter writer = new HtmlTextWriter(writer1);
c.RenderControl(writer);
writer.Flush();
writer.Close();
return writer1.ToString();
protected void Button1_Click(object sender, EventArgs e)
this.SelectedItems =
Button1_Click(t0);
protected void Button1_Click(bool temp)
if (this.DropDownList1.Text == &0& && DropDownList2.Text == &1&)
this.GridView1.Visible =
string strSQL = &SELECT ID,U,I,F,PF,P,Q,W,Time frome T_First ORDER BY ID DESC&;
SqlConnection myConnection = new SqlConnection();
SqlConnection myConnection1 = new SqlConnection(ConfigurationManager.AppSettings[&MyconnectionString&]);
SqlDataAdapter da = new SqlDataAdapter(strSQL, myConnection1);
DataSet ds = new DataSet();
myConnection1.Open();
da.Fill(ds);
GridView1.DataSourceID = &&;
GridView1.DataSource =
GridView1.DataBind();
myConnection1.Close();
protected void GridView1_PageIndexChangeing(object sender,GridViewPageEventArgs e)
if (GridView1.EditIndex != -1)
e.Cancel =
int newPageNumber = e.NewPageIndex + 1;
GridView1.PageIndex = e.NewPageI
GridView1.DataBind();
Button1_Click(t0);
protected ArrayList SelectedItems
return (ViewState[&mySelectedItems&] != null) ? (ArrayList)ViewState[&mySelectedItems&] :
ViewState[&mySelectedItems&] =
//web.config&configuration&
&appSettings&
&add key=&MyconnectionString& value =&DataSource=.\SQLEXPRESS;Initial Catalog=db_UserID=Password=sa&/&
&/appSettings&&connectionStrings&&add name=&ApplicationServices& connectionString=&data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.User Instance=true& providerName=&System.Data.SqlClient&/&&/connectionStrings&&system.web&&compilation debug=&true& targetFramework=&4.0&/&&authentication mode=&Forms&&&forms loginUrl=&~/Account/Login.aspx& timeout=&2880&/&&/authentication&&membership&&providers&&clear/&&add name=&AspNetSqlMembershipProvider& type=&System.Web.Security.SqlMembershipProvider& connectionStringName=&ApplicationServices& enablePasswordRetrieval=&false& enablePasswordReset=&true& requiresQuestionAndAnswer=&false& requiresUniqueEmail=&false& maxInvalidPasswordAttempts=&5& minRequiredPasswordLength=&6& minRequiredNonalphanumericCharacters=&0& passwordAttemptWindow=&10& applicationName=&/&/&&/providers&&/membership&&profile&&providers&&clear/&&add name=&AspNetSqlProfileProvider& type=&System.Web.Profile.SqlProfileProvider& connectionStringName=&ApplicationServices& applicationName=&/&/&&/providers&&/profile&&roleManager enabled=&false&&&providers&&clear/&&add name=&AspNetSqlRoleProvider& type=&System.Web.Security.SqlRoleProvider& connectionStringName=&ApplicationServices& applicationName=&/&/&&add name=&AspNetWindowsTokenRoleProvider& type=&System.Web.Security.WindowsTokenRoleProvider& applicationName=&/&/&&/providers&&/roleManager&&pages controlRenderingCompatibilityVersion=&3.5& clientIDMode=&AutoID&/&&/system.web&&system.webServer&&modules runAllManagedModulesForAllRequests=&true&/&&/system.webServer&&/configuration&
光看到你用button1了,,你能说说你在哪声明的btnGet这个按钮吗????
登录百度帐号推荐应用
为兴趣而生,贴吧更懂你。或紧急,求java大神们帮帮忙_java吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:443,904贴子:
紧急,求java大神们帮帮忙收藏
import javax.swing.*; import java.awt.*;import java.awt.event.*;import java.io.Fimport java.io.FilenameFimport java.awt.*; import java.awt.event.*; public class kkt implements ActionListener { JFrame mainF //主面板 Container thisC JPanel centerPanel,southPanel,northP //子面板 JButton diamondsButton[][] = new JButton[6][5];//游戏按钮数组 JButton exitButton,resetButton,newlyB //游戏退出,重新排列,重新开始按钮 JLabel fractionLable=new JLabel("0"); //分数标签 JButton firstButton,secondB //分别记录两次被选中的按钮 int grid[][] = new int[8][7];//储存游戏按钮位置 static boolean pressInformation= //判断是否有按钮被选中 int x0=0,y0=0,x=0,y=0,fristMsg=0,secondMsg=0,validateLV; //游戏按钮的位置坐标 int i,j,k,n;//消除方法控制 //=====================================////=============调用图片================//private static Icon[] icons = new ImageIcon[6*5];private static final String imgDir="E:/xzh/bbb.jpg";//这里填上图片目录全名就行了static{try{File dir = new File(imgDir);File[] imgFiles = dir.listFiles(new FilenameFilter(){public boolean accept(File dir, String name) {return name.toLowerCase().endsWith(".jpg");}});for(int i=0; i&7*5; i++){icons[i]=new ImageIcon(imgFiles[i].getAbsolutePath());}}catch(Exception e){e.printStackTrace();}}public void init(){ mainFrame=new JFrame("JKJ连连看");mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);thisContainer = mainFrame.getContentPane(); thisContainer.setLayout(new BorderLayout()); centerPanel=new JPanel(); southPanel=new JPanel(); northPanel=new JPanel(); thisContainer.add(centerPanel,"Center"); thisContainer.add(southPanel,"South"); thisContainer.add(northPanel,"North"); centerPanel.setLayout(new GridLayout(5,7)); for(int cols = 0;cols & 6;cols++){ for(int rows = 0;rows & 5;rows++ ){ // diamondsButton[cols][rows] = new JButton(String// .valueOf(grid[cols + 1][rows + 1]));//========设置图片========//diamondsButton[cols][rows] = new JButton(icons[grid[cols + 1][rows + 1]-1]);diamondsButton[cols][rows].addActionListener(this);centerPanel.add(diamondsButton[cols][rows]);}}exitButton=new JButton("游戏退出"); exitButton.addActionListener(this); resetButton=new JButton("重新排列"); resetButton.addActionListener(this); newlyButton=new JButton("再来一局"); newlyButton.addActionListener(this); southPanel.add(exitButton); southPanel.add(resetButton); southPanel.add(newlyButton); fractionLable.setText(String.valueOf(Integer.parseInt(fractionLable.getText()))); northPanel.add(fractionLable); mainFrame.setBounds(280,100,500,450); mainFrame.setVisible(true); } public void randomBuild() { int randoms,cols, for(int twins=1;twins&=15;twins++) { randoms=(int)(Math.random()*25+1); for(int alike=1;alike&=2;alike++) { cols=(int)(Math.random()*6+1); rows=(int)(Math.random()*5+1); while(grid[cols][rows]!=0) { cols=(int)(Math.random()*6+1); rows=(int)(Math.random()*5+1); } this.grid[cols][rows]= } } } public void fraction(){ fractionLable.setText(String.valueOf(Integer.parseInt(fractionLable.getText())+100)); } public void reload() { int save[] = new int[30]; int n=0,cols, int grid[][]= new int[8][7]; for(int i=0;i&=6;i++) { for(int j=0;j&=5;j++) { if(this.grid[i][j]!=0) { save[n]=this.grid[i][j]; n++; } } } n=n-1; this.grid= while(n&=0) { cols=(int)(Math.random()*6+1); rows=(int)(Math.random()*5+1); while(grid[cols][rows]!=0) { cols=(int)(Math.random()*6+1); rows=(int)(Math.random()*5+1); } this.grid[cols][rows]=save[n]; n--; } mainFrame.setVisible(false); pressInformation= //这里一定要将按钮点击信息归为初始 init(); for(int i = 0;i & 6;i++){ for(int j = 0;j & 5;j++ ){ if(grid[i+1][j+1]==0) diamondsButton[i][j].setVisible(false); } } } public void estimateEven(int placeX,int placeY,JButton bz) { if(pressInformation==false) { x=placeX; y=placeY; secondMsg=grid[x][y]; secondButton= pressInformation= } else { x0=x; y0=y; fristMsg=secondM firstButton=secondB x=placeX; y=placeY; secondMsg=grid[x][y]; secondButton= if(fristMsg==secondMsg && secondButton!=firstButton){ xiao(); } } } public void xiao() { //相同的情况下能不能消去。仔细分析,不一条条注释 if((x0==x &&(y0==y+1||y0==y-1)) || ((x0==x+1||x0==x-1)&&(y0==y))){ //判断是否相邻 remove(); } else{ for (j=0;j&7;j++ ) { if (grid[x0][j]==0){ //判断第一个按钮同行哪个按钮为空 if (y&j) { //如果第二个按钮的Y坐标大于空按钮的Y坐标说明第一按钮在第二按钮左边 for (i=y-1;i&=j;i-- ){ //判断第二按钮左侧直到第一按钮中间有没有按钮 if (grid[x][i]!=0) { k=0;
} else{ k=1; } //K=1说明通过了第一次验证 } if (k==1) { linePassOne(); } } if (y&j){ //如果第二个按钮的Y坐标小于空按钮的Y坐标说明第一按钮在第二按钮右边 for (i=y+1;i&=i++ ){ //判断第二按钮左侧直到第一按钮中间有没有按钮 if (grid[x][i]!=0){ k=0;
} else { k=1; } } if (k==1){ linePassOne(); } } if (y==j ) { linePassOne(); } } if (k==2) { if (x0==x) { remove(); } if (x0&x) { for (n=x0;n&=x-1;n++ ) { if (grid[n][j]!=0) { k=0;
} if(grid[n][j]==0 && n==x-1) { remove(); } } } if (x0&x) { for (n=x0;n&=x+1 ;n-- ) { if (grid[n][j]!=0) { k=0;
} if(grid[n][j]==0 && n==x+1) { remove(); } } } } } for (i=0;i&8;i++ ) { //列 if (grid[i][y0]==0) { if (x&i) { for (j=x-1;j&=j-- ) { if (grid[j][y]!=0) { k=0;
} else { k=1; } } if (k==1) { rowPassOne(); } } if (x&i) { for (j=x+1;j&=i;j++ ) { if (grid[j][y]!=0) { k=0;
} else { k=1; } } if (k==1) { rowPassOne(); } } if (x==i) { rowPassOne(); } } if (k==2){ if (y0==y) { remove(); } if (y0&y) { for (n=y0;n&=y-1 ;n++ ) { if (grid[i][n]!=0) { k=0;
} if(grid[i][n]==0 && n==y-1) { remove(); } } } if (y0&y) { for (n=y0;n&=y+1 ;n--) { if (grid[i][n]!=0) { k=0;
} if(grid[i][n]==0 && n==y+1) { remove(); } } } } } } } public void linePassOne(){ if (y0&j){ //第一按钮同行空按钮在左边 for (i=y0-1;i&=i-- ){ //判断第一按钮同左侧空按钮之间有没按钮 if (grid[x0][i]!=0) { k=0;
} else { k=2; } //K=2说明通过了第二次验证 } } if (y0&j){ //第一按钮同行空按钮在与第二按钮之间 for (i=y0+1;i&=i++){ if (grid[x0][i]!=0) { k=0;
} else{ k=2; } } } } public void rowPassOne(){ if (x0&i) { for (j=x0-1;j&=j-- ) { if (grid[j][y0]!=0) { k=0;
} else { k=2; } } } if (x0&i) { for (j=x0+1;j&=j++ ) { if (grid[j][y0]!=0) { k=0;
} else { k=2; } } } } public void remove(){ firstButton.setVisible(false); secondButton.setVisible(false); fraction(); pressInformation= k=0; grid[x0][y0]=0; grid[x][y]=0; } public void actionPerformed(ActionEvent e) { if(e.getSource()==newlyButton){ int grid[][] = new int[8][7]; this.grid = randomBuild(); mainFrame.setVisible(false); pressInformation= init(); } if(e.getSource()==exitButton) System.exit(0); if(e.getSource()==resetButton) reload(); for(int cols = 0;cols & 6;cols++){ for(int rows = 0;rows & 5;rows++ ){ if(e.getSource()==diamondsButton[cols][rows]) estimateEven(cols+1,rows+1,diamondsButton[cols][rows]); } } } public static void main(String[] args) { kkt llk = new kkt(); llk.randomBuild(); llk.init(); } }//old 998 lines //new 318 lines
如上面代码,怎么样把连连看的数字换成图片,求大神们帮帮忙改改看看回复
登录百度帐号推荐应用
为兴趣而生,贴吧更懂你。或三个人去住店,需要30元,于是一个人就拿出10元出来,三个人就刚好30元大神们帮帮忙三个人去住店,需要30元,于是一个人就拿出10元出来,三个人就刚好30元,交给老板…老板说今天优惠只要25元,就交给服务员5元命令她退回去,但是服务员却偷偷藏了2元,才退回去一人分了一元,所以就这样,相当于他们一个人拿出10元又一个人退回一元,也就算9元,3乘9等27,服务员藏了2元,27加2等于29,请问还有一元呢?
算下.(元为单位) 首先是得到赚了钱的人: 老板---(先得到的)30-(退回的)5=25 服务员---(扣得的)=2
然后看一下付出钱的人: 三个人---(先付的)10 三个人----(平均每人退回的)3/3=1 所以,三个人----实际付的=10-1=9。一共是27。
如果付出等于得到.那么说三个人的钱等于老板加服务员得到的钱.则27=25+2.
其实根本不是27+2,而是27-2。 题...
算法不对,那27本来就包含了藏起的两块,干嘛又要加一下呢。 应该加上退还的三块才对.27+3=30
为您推荐:
扫描下载二维码百度拇指医生
&&&普通咨询
您的网络环境存在异常,
请输入验证码
验证码输入错误,请重新输入}

我要回帖

更多关于 国光帮帮忙2013 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信