Not just C! Just about every 101 instruction on just about every language involves a 'Hello world' example.
Ohh, you missed out on
lists &
vectors! I understand though - it's kind of abstract stuff. Not everyone's concept of a nice pastime.
Or perhaps I should say something like
C++:
#include <list>
#include <iostream>
typedef struct {
const char element;
bool likes_it;
} appreciation_t;
class Person {
public:
Person () {}
const char name;
std::list<appreciation_t> appreciates;
}
void main {
Person p;
p.name = "2ndGenNikonian";
appreciation_t dislike_array = {"array", false};
p.appreciates.push_front(dislike_array);
appreciation_t like_nikon = {"Nikon", true};
p.appreciates.push_front(dislike_array);
std::cout << "Hello world " << p.name << "\n";
for (appreciation_t a: p.appreciates) {
std::cout << "You " << a.likes_t?"":"dis" << "likes " << a.element << "\n";
}
}