对于作业,我应该读取一个文件并对字符串进行排序。为此,我使用了一种选择排序,它可以工作。现在,在它调用selSort函数之后,它就崩溃了。我已经跑出想法来解决这个问题,任何人都可以帮我一把吗? // 2_8.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <
void main(){
int c;
c = function(1, 2);
}
int function(int a, int b){
char buf[10];
a = a+b;
return a;
}
汇编代码: main:
08048394: push %ebp
08048395: mov %esp,%ebp