提交记录 3566


用户 题目 状态 得分 用时 内存 语言 代码长度
wyh 1000. 测测你的 A+B Compile Error 0 0 ns 0 KB C++ 345 B
提交时间 评测时间
2018-07-16 14:34:35 2020-07-31 21:19:21
int plus(int a, int b)
{
	int  a,b; 
 scanf("%d%d",&a,&b);  
  int  *c  =  &a;  
  __asm  //下面是内嵌汇编...  
  {  
  mov  eax,  c;  //c中存储的a的地址->eax    
  mov  eax,  [eax];  //a的值->eax   
  //注意直接mov  eax,  [c]是错误的   
  mov  ebx,  b;  //可以像这样直接对ebx赋值  
  lea  eax,  [eax+ebx];  
  mov  a,  eax;  //可以直接将eax的值->a  
  }  //内嵌汇编部分结束...  
  cout<<a;  
}

CompilationN/AN/ACompile ErrorScore: N/A


Judge Duck Online | 评测鸭在线
Server Time: 2026-04-18 08:55:03 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠