分类：电脑/网络-程序设计
问题：C++大师看看我的程序有那些错误#include&lt;iost 
#include<tream>using namespace std;#include <stdio.h>#define MAXLINE 240void delete(char *p, int len, int s){ int i, j; while (s > 0) {  i = 0;  while ((i < len - 1) && (*(p+i) < *(p+i+1)))   i++;    fprintf(stdout, "removed offs#include<tream>using namespace std;#include <stdio.h>#define MAXLINE 240void delete(char *p, int len, int s){ int i, j; while (s > 0) {  i = 0;  while ((i < len - 1) && (*(p+i) < *(p+i+1)))   i++;    fprintf(stdout, "removed offset is: %d\t", i + 1);   for (j = i; j < len; j++)   *(p+j) = *(p+j+1);      fprintf(stdout, "The current number is: %s\n", p);     s--; }}int main(){ char a[MAXLINE]; int len_a, s;  fprintf(stdout, "Input the number(not more than 240 digits): "); scanf("%s", a); len_a = strlen(a);   fprintf(stdout, "Input how many digits will be deleted: "); scanf("%d", &s); fprintf(stdout, "The original number is: %s\n", a); fprintf(stdout, "Start to delete:\n"); delete(a, len_a, s); fprintf(stdout, "The final number is: %s\n", a);  return 0; }
回答：其实你这个程序没有什么问题.
就只是把关键字delete 用作函数名而已.

只要将程式里面的 delete 改成 Delete就可以正确运行了