- cross-posted to:
- technology@lemmy.zip
- cross-posted to:
- technology@lemmy.zip
I was definitely a Commodore kid, and BASIC was my first language. Maybe it’s nostalgia, but I still like BASIC for hobby stuff.
I was definitely a Commodore kid, and BASIC was my first language. Maybe it’s nostalgia, but I still like BASIC for hobby stuff.
Easiest Hello World program ever was in BASIC.
Don’t even have to call a library or declare a variable! Meanwhile, I can’t even remember the shit you need to put in front of every C/C++ program (HREF/void.h or something; it’s usually there automatically these days in some compilers, like Visual Studio).
C
#include <stdio.h>
int main() {
printf(“Hello, world”);
return 0;
}
C++
#include <iostream>
int main() {
std::cout << “Hello, world” << std::endl;
return 0;
}