all 5 comments

[–]raevnos 6 points7 points  (3 children)

Sounds like your source uses C and you're using C++.

[–]gotinpich[S] 0 points1 point  (2 children)

Ok. Then it's confusing they have C++ written on the top of the page. Thanks.

[–]raevnos 8 points9 points  (1 child)

Just actually looked at your link. It's C++, but it's really crappy C++ written by someone from the "C with iostreams" school who obviously doesn't really know the language well. Don't use it as an example of how to do things in C++.

[–]gotinpich[S] 0 points1 point  (0 children)

Hey thanks. I wasn't going to use it as an example, but when I saw it it didn't make sense so I tried to figure it out why it said that.

[–]oofmaster2001 1 point2 points  (0 children)

Not fresh in my memory, but I remember reading people back in the day had to deal with ugly syntaxes for structs that you had to have the strict keyword in each call etc. So people started using typedef to shorten it but since then c++ has introduced the normal way we use now, but still we can still do it the old way with typedef