this post was submitted on 01 May 2024
143 points (99.3% liked)
retrocomputing
4103 readers
5 users here now
Discussions on vintage and retrocomputing
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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
int main() {
std::cout << "Hello, world" << std::endl;
return 0;
}