摘要: class shui{public static void main(String[] args){int i,j,k,sum,shui;for(i=1;i<=9;i++)for(j=0;j<=9;j++)for(k=0;k<=9;k++){sum=i*i*i+j*j*j+k*k*k;shui=i*100+j*10+k;if(sum==shui)System.out.println(i*100+j*10+k);}}} 阅读全文
posted @ 2013-09-10 19:00 _一千零一夜 阅读(156) 评论(0) 推荐(0) 编辑
摘要: class Jiubiao{public static void main(String[] args){int i,j;for(i=1;i<=9;i++){for(j=1;j<i;j++)System.out.print(j+"*"+i+"="+i*j+" ");System.out.println(j+"*"+i+"="+i*j);}}} 阅读全文
posted @ 2013-09-10 18:53 _一千零一夜 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 我的思维导图 上传到资源里了 阅读全文
posted @ 2013-08-03 22:31 _一千零一夜 阅读(1444) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;int a[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};int main(){int n;while(cin>>n){ int i,j,k,jj; int b[8]={0,0,0,0,0,0,0};for(i=1900;i<1900+n;i++){if((i%4==0&&i%100!=0)||i%400==0)a[2]=29;for(k=1;k<=12;k++){for(j;j+7<=a[k];)j+=7; jj=a[k]-j; switch (jj 阅读全文
posted @ 2013-07-23 18:56 _一千零一夜 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 假如是 CEdit m_e1;//就是把编辑框控件与一个控件类变量关联起来\CString str;m_e1.GetWindowTex(str);//获取这个编辑框中的字符串m_e1.SetReadOnly(TRUE);//设置这个编辑框为只读。。。。还有很多能读取和设置这个编辑框的函数,自己慢慢看吧这时绑定的就不是变量了吧,而是文本框对象本身。这时的CEdit对象就代表文本框。直接使用这个CEdit对象的方法就行了。要是想直接获得其中的字符串值可以将变量绑定到String类型啊。可以使用楼上的方法,也可以使用VC6.0的类向导将编辑框控件与函数中的变量绑定到一起,选择变量类型时可以选择CSt 阅读全文
posted @ 2013-07-23 12:48 _一千零一夜 阅读(184) 评论(0) 推荐(0) 编辑
摘要: package com.neusoft.utils;import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;public class JdbcOracleTest {/** * @param args */public static void main(String[] args) {// 2.建立同数据库的连 阅读全文
posted @ 2013-07-22 15:57 _一千零一夜 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Mainactivity.java 文件package com.example.first;import android.net.Uri;import android.os.Bundle;import android.app.Activity;import android.content.Intent;import android.view.Menu;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;import android.widget.EditTe 阅读全文
posted @ 2013-07-21 15:04 _一千零一夜 阅读(141) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;struct stu{char name[12];struct stu *next;};int main(){struct stu *head,*p;head=new stu;cin>>head->name;p=head->next=new stu;cin>>p->name;p->next=NULL;coutnamename<<endl;return 0;} 阅读全文
posted @ 2013-03-09 00:16 _一千零一夜 阅读(66) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;struct Date { int year; int month; int day; }; int d[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};int main() { Date date; cout>date.year>>date.month>>date.day; int days=0,i; for(i=1;i=3) days+=1; //闰年的2月要加1天 cout<<date.month<<"月"<&l 阅读全文
posted @ 2013-03-07 22:16 _一千零一夜 阅读(96) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; struct Student { char num[13]; char name[10]; int cpp; int math; int english; int grade; double average; }; const int N=3; int main( ) { int i; Student stu[5]; for(i=0;i>stu[i].num; cin>>stu[i].name; cin>>stu[i].cpp; cin>>stu[i].math; cin>>stu 阅读全文
posted @ 2013-03-07 22:12 _一千零一夜 阅读(121) 评论(0) 推荐(0) 编辑