首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
小白求教,汇编过程中遇到问题,求指教,把这c段代码翻译成汇编语句,求指导
void LShift(char buf[100],int len)                 
{
     int newhbit,oldhbit,i;

     oldhbit=buf[0]/0x80;                      
     for(i=len-1;i>=0;i--)
     {
         newhbit=buf[i]/0x80;                  
         buf[i]<<=1;                         
         buf[i] ^= oldhbit;                    
         oldhbit=newhbit;                      
......................
阅读全部 | 爱问小静 贴于 2012年4月27日 19:42     hide bbsi
#include<stdio.h>
void main()
{
    int a,b;
    scanf("%d%d%d\n",&a,&b);
    if(a>b)
        printf("max=%d\n",a);
    else
    printf("max=%d\n",b);
}
调试后输入俩个数字之后就没有输出了,不知何解,,,,,编译的时候有一个警告:warning C4996:  'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details  ps:用的是vs2008  求解  谢谢
阅读全部 | 老五77 贴于 2012年4月25日 19:54     hide bbsi
def test_block x
  puts x
  yield(x*2)
end

test_block(3) {|a| puts a}
test_block 3 do |a|
  puts a
end
阅读全部 | 静夜思 贴于 2012年4月25日 18:41     hide bbsi
typedef struct Node{
Datatype data;
struct Node*next;
}Node,*Linklist;

问一下这个结构体外边右括号后边 Node,*Linklist;是什么意思  小弟初学数据结构  很疑惑啊  求讲解
阅读全部 | 麦迪依然 贴于 2012年4月22日 13:12     hide bbsi
第一次发帖,多多捧场,问题有点急
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define STACK_INIT_SIZE 20
#define INCERTMENT 10
typedef char elemtype;
typedef struct{
    elemtype *top;
    elemtype * base;
    int stacksize;
    
......................
阅读全部 | 腾腾 贴于 2012年4月20日 20:38     hide bbsi
#include
阅读全部 | 会分手的空气 贴于 2012年4月20日 19:19     hide bbsi
#include
阅读全部 | 会分手的空气 贴于 2012年4月20日 19:18     hide bbsi
#include
阅读全部 | 会分手的空气 贴于 2012年4月20日 19:18     hide bbsi
#include
阅读全部 | 会分手的空气 贴于 2012年4月20日 19:18     hide bbsi
#include
阅读全部 | 会分手的空气 贴于 2012年4月20日 19:18     hide bbsi
上一页 295 296 297 298 299 300 301 302 303 304 下一页