[Info-vax] VMS Cobol - GnuCOBOL
Arne Vajhøj
arne at vajhoej.dk
Thu Feb 23 18:43:23 EST 2023
On 2/23/2023 3:28 PM, ultr... at gmail.com wrote:
> On Thursday, February 23, 2023 at 8:05:34 AM UTC-5, Simon Clubley wrote:
>>>>> On Friday, February 17, 2023 at 1:35:57 PM UTC-5, Simon Clubley wrote:
>>>>>>> C++ <<<<
>>>
>>> IF THAT ISN'T A PROMOTION OF C OVER DIBOL I DON'T KNOW WHAT IS ...
>> Er, Bob, C and C++ are two very, very, different languages.
>
> I HELPED MY SON WITH C++ AND C# IN COLLEGE ... SAME OLD C SAME OLD COMPILER/DEBUGGER ISSUES
C and C++ are very different languages. Most C code will compile and
run as expected when compiled with a C++ compiler, but C++ is
so much more than C - and a writing C code for a C++ course
should give a very low grade.
And C# is not like C at all. Besides using curly braces and
having the 3 arg for loop then I do not see much similarity.
Just compare the hello worlds:
#include<stdio.h>
int main()
{
printf("Hello world!\n");
return 0;
}
VS:
using System;
public class HelloWorld
{
public static void Main(string[] args)
{
Console.WriteLine("Hello world!");
}
}
(C# pre-V9.0)
Arne
More information about the Info-vax
mailing list