社区
Java SE
帖子详情
a b
qqshoun
2010-04-01 07:25:47
a=1
b=2
a=b+(b=a)*0
a=?
b=?
...全文
91
6
打赏
收藏
a b
a=1 b=2 a=b+(b=a)*0 a=? b=?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
6 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
Altman2010
2010-04-01
打赏
举报
回复
a=2 b=1
public class test {
/**
* @param args
*/
public static void main(String[] args) {
// TODO 自动生成方法存根
int a=1;
int b=2;
a=b+(b=a)*0;
System.out.println(a);
System.out.println(b);
}
}
自己写给测试吧!
godismydaughter
2010-04-01
打赏
举报
回复
a=2 b=1
hjh811
2010-04-01
打赏
举报
回复
呃 lz 100分 问这样的问题。。。
keeya0416
2010-04-01
打赏
举报
回复
[Quote=引用 1 楼 ifrancis 的回复:]
a=2
b=1
哈哈啊哈哈哈
[/Quote]
b=2?
哎 我从不关心细节
一头头
2010-04-01
打赏
举报
回复
SB 题目~~~~
ifrancis
2010-04-01
打赏
举报
回复
a=2
b=1
哈哈啊哈哈哈
头文件免费下载
代码: // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #if !defined(AFX_STDAFX_H__C4B5DA9B_21EA_47D6_9253_A4245E58FBF5__INCLUDED_) #define AFX_STDAFX_H__C4B5DA9B_21EA_47D6_9253_A4245E58FBF5__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // TODO: reference additional headers your program requires here //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_STDAFX_H__C4B5DA9B_21EA_47D6_9253_A4245E58FBF5__INCLUDED_)
输入a和b两个整数,按先后大小的顺序输出a和b
输入a和b两个整数,按先后大小的顺序输出a和b #include<stdio.h> int main() { int *p,*p1,*p2,a,b; printf("Please enter two integer numbers:"); scanf("%d%d",&a,&b); p1=&a; p2=&b; if(a<b) { p...
求a的b次方对m取余:x=a^b(mod m)
问题描述:求解a的b次方再对m取余数。 方法1: int pow(int a,int b,int m){ int sum_a = a; for(int i=0;i<b;i++) sum_a *=a; return sum_a % m; } 性能分析: 时间复杂度:O(n) 空间复杂度:O(2^n) 无论从时间复杂度还是空间复杂度来看都是不...
Android A-B-C跳转 C直接退出到A页面
Android A-B-C跳转 C直接退出到A页面 C页面返回有两种情况,case 1:是没有操作需要返回到B页面,case 2:是操作完成需要返回到C页面。(ps:C页面不一定是首页,可能也是次级页面) case 1: 这种情况,我在点击返回按钮的时候,直接finish掉当前页面,就可以直接返回到B页面 case2:操作完成,不需要返回B页面,需要直接到A页面。我想到的办法是在C页面有一个k
输入一行电报文字,将字母变成其下一字母(如’a’变成’b’……’z’变成’a’其它字符不变)
题目描述输入一行电报文字,将字母变成其下一字母(如’a’变成’b’……’z’变成’a’其它字符不变)。输入一行字符输出加密处理后的字符样例输入a b样例输出b c#include<stdio.h> #include<string.h> int main() { char a[100]; int i,j; gets(a); j=strlen(a); for(i=0;i<...
Java SE
62,628
社区成员
307,259
社区内容
发帖
与我相关
我的任务
Java SE
Java 2 Standard Edition
复制链接
扫一扫
分享
社区描述
Java 2 Standard Edition
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章