Liste des Groupes | Revenir à cl c++ |
On 6/18/2025 6:57 AM, Bonita Montero wrote:No, you didn't. Stick with comp.theory.Am 18.06.2025 um 06:04 schrieb olcott:I am talking about the (C/C++) computer programming aspectsOn 6/17/2025 9:49 PM, Bonita Montero wrote:>Am 18.06.2025 um 01:24 schrieb olcott:void Infinite_Recursion()>
{
Infinite_Recursion();
return;
}
>
void Infinite_Loop()
{
HERE: goto HERE;
return;
}
>
void DDD()
{
HHH(DDD);
return;
}
>
When it is understood that HHH does simulate itself
simulating DDD then any first year CS student knows
that when each of the above are correctly simulated
by HHH that none of them ever stop running unless aborted.
(recursive simulation is similar to infinite recursion).
>
The same thing equally applies to these two, yet they may
be too difficult for a first year CS student.
>
int Sipser_D()
{
if (HHH(Sipser_D) == 1)
return 0;
return 1;
}
>
int DD()
{
int Halt_Status = HHH(DD);
if (Halt_Status)
HERE: goto HERE;
return Halt_Status;
}
>
*Fully operational code*
https://github.com/plolcott/x86utm/blob/master/Halt7.c
>
Youre off-topic. That's not comp.theory here.
>I am *ONLY* talking about the C/C++ programming>
aspects of this. ..
Absolutely not, that's generic to any language.
>
of this. I am not taking about the computer science aspects
of this. People on comp.theory don't have the programming
skill to understand this.
Les messages affichés proviennent d'usenet.