Re: Why C/C++ errors are SO obscure/devious??



Massimo Soricetti <massimo_main@xxxxxxxxxxx> writes:

> Another example: have you ever met the error line "Multiple
> definitions of..."?
>
> For example, why can't a compiler start a negotiation "on the fly"
> like this:
>
> ERROR: Multiple definitions of <variable|function|method> X.
> X defined:
> 1) <here1> as variable
> <line of code definition...>
> 2) <here2> as variable
> <line of code definition...>
> 3) <here3> as function
> <line of code definition...>
> Choose which definition is the right one:

Perhaps you should start doing all of your programming in TeX.
It will indeed give you this kind of a prompt when it encounters
an error in your source file. (However, TeX is not a very good
language for general programming.)
--
int main(void){char p[]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.\
\n",*q="kl BIcNBFr.NKEzjwCIxNJC";int i=sizeof p/2;char *strchr();int putchar(\
);while(*q){i+=strchr(p,*q++)-p;if(i>=(int)sizeof p)i-=sizeof p-1;putchar(p[i]\
);}return 0;}
.



Relevant Pages

  • Re: MikTeX - a basic question
    ... >> I've just installed MikTeX on my computer, and am trying to get it to ... >> I tried this simple file with only basic commands (such as ... which the compiler should be able to understand. ... >> But when I compiled it, TeX wouldn't recognise any of the commands. ...
    (comp.text.tex)
  • Re: MikTeX - a basic question
    ... > I've just installed MikTeX on my computer, and am trying to get it to work. ... > I tried this simple file with only basic commands (such as ... which the compiler should be able to understand. ... > But when I compiled it, TeX wouldn't recognise any of the commands. ...
    (comp.text.tex)