Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ in Linux or Windows

Name: Anonymous 2012-01-11 1:20

>inb4 Google, I looked and couldn't find what I'm asking about

Is it better to code C++ programs in Linux or Windows? I'm new to this. I'm just learning and don't want to start off on the wrong track. I'm using Linux btw.

Couldn't you just take the same code written on Linux and compile it on Windows? The only difference would be certain OS-specific differences like window managers, etc., which could somewhat easily be fixed, right? If so, what's the big deal about porting programs to and from Linux and Windows? What am I missing?

If you also have some brotips on better languages than C++, please share them. I want to be able to make all sorts of programs; efficiency is important. My ideal language is one that can do "anything" so that I can specialize in a master race language. Tl;dr Please confirm whether C++ is god tier.

Name: kodak_gallery_programmer !!kCq+A64Losi56ze 2012-01-11 11:40

>>25
Okay, I reread what >>4 said. The guy is clearly clueless. The standard way in C to achieve what he is talking about is to

a)Use a shit load of function callbacks.

and/or

b)Have the function defintion in the header file followed by a series of undef/define.

Now the only time I've seen structs (structures) used for different types were for device drives. But I don't think that is what this idiot had in mind.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List