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:02

>>20

You say C will puts things in your way that need to be in your way, since C uses structures for different types,

This would be called a union. Some of the earlier linux malloc() implementations and the part of the BSD TCP/IP stack uses this sort of an approach. But other than that, C really doesn't use structures for different types.

Well, there is a structure, but that something like that really isn't meant to hold "different types" in the sense that you're talking about.

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