Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I need a C class that has a constructor for a tuple

| I'll create a simple C++ class with a constructor that takes a tuple. Here's an example...

> nah C

| C doesn't have classes or constructors - those are C++ features. In C, you would use a struct and create an initialization function. Here's how you'd handle a tuple-like structure:



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: