Oddworld Forums

Oddworld Forums (http://www.oddworldforums.net/index.php)
-   Off-Topic Discussion (http://www.oddworldforums.net/forumdisplay.php?f=9)
-   -   C++ (http://www.oddworldforums.net/showthread.php?t=20327)

RoryF 06-05-2011 09:08 AM

C++
 
MOD EDIT: This thread split from here.

I would do C++ myself but I haven't been up the library lately (I usually read these books to learn this stuff to get the basics). Plus I'm still doing flash.

STM 06-05-2011 09:39 AM

There is certainly a market for C++ but I don't think there will be in a few years when people move onto C# (sharp)

RoryF 06-05-2011 09:49 AM

:

()
There is certainly a market for C++ but I don't think there will be in a few years when people move onto C# (sharp)

Agh, C# is a horrible programming language IMO.
It's quite simular to VB with some differences, and I thought it was less capable then C++. Apart from COSMOS, but that doesn't count.

STM 06-05-2011 09:52 AM

C++ is the most capable language and I prefer the syntax but I need to learn how to apply it to gaming, amazon book store here I come.

RoryF 06-05-2011 09:54 AM

:

()
C++ is the most capable language and I prefer the syntax but I need to learn how to apply it to gaming, amazon book store here I come.

Well I always thought C++ was used for most things, I haven't used a program made with C# I think.

STM 06-05-2011 09:59 AM

I'd say it's more to do with F# and java 5 than C++ actually, funny how it's supposed to be C++'s successor.

Crashpunk 06-05-2011 01:32 PM

Can you make a new thread about C++? I would love to know how to and all.

RoryF 06-05-2011 01:34 PM

:

()
Can you make a new thread about C++? I would love to know how to and all.

It not straight forward you know. :p
I'd go and get some books or read some stuff on the internet about it that already exists. I'm not much of a person to explain it either, I only know stuff about it, not how to do anything in it.

STM 06-05-2011 02:26 PM

Trust me you want to read books, I cannot teach for shit, however if you want to learn PM me and I can point you in the right direction/ give you some help.

Nate 06-05-2011 08:39 PM

:

()
There is certainly a market for C++ but I don't think there will be in a few years when people move onto C# (sharp)

C# is only going to catch on for people who want to code .NET. All other applications that need reliable, low-level coding tools will continue to use C++.



Also, yes, you can learn the syntax of C++ from a book. And you can even become a reasonable coder on your own. But you're not going to learn how to develop reliable, efficient, well-designed code in any language without either taking a course or (more importantly) working in a professional environment with a good mentor.

RoryF 06-05-2011 10:22 PM

:

()
C# is only going to catch on for people who want to code .NET. All other applications that need reliable, low-level coding tools will continue to use C++.

Isn't .NET the thing that was requried for Visual Basic apps?
It was stupid getting it because you need the actual installer that they provide you with to get the right one, and it makes you look like a script noob. :confused:

Phylum 06-05-2011 10:31 PM

I intend to learn C++ at some point. I plan on picking Java up first, but my brother, who works in the computer industry, recommends I learn Python before that. I've started some basic stuff in Python, but object-orientation is confusing me a bit. I think it's the kind of confusion that needs to be worked through.

RoryF 06-05-2011 10:57 PM

:

()
I intend to learn C++ at some point. I plan on picking Java up first, but my brother, who works in the computer industry, recommends I learn Python before that. I've started some basic stuff in Python, but object-orientation is confusing me a bit. I think it's the kind of confusion that needs to be worked through.

I think I had python or something on my laptop for a mini pong game, it was cool but it was still just pong. I might be getting mixed up with some other compiler type thing but I'm sure it was python. I haven't made anything in python myself, the pong game was pretty much all I used it for.

Mudokon_Master 06-05-2011 11:34 PM

Oddman, you remind me of a guy I know. You're so smart for your age.

Nate 06-06-2011 12:37 AM

:

()
Isn't .NET the thing that was requried for Visual Basic apps?
It was stupid getting it because you need the actual installer that they provide you with to get the right one, and it makes you look like a script noob. :confused:

.NET is the current API for developing Windows programs. I haven't used it yet, but I did work with some of the previous APIs such as Win32 and MFC.

T-nex 06-06-2011 07:05 AM

I've worked with C# and .net in school to make web-stuff... It was actually pretty fun.
Too bad it's like windows-exclusive and stuff. But I really like Visual Studio. Its a big IDE but it's also really good. Lots of help and a lot of documentation too.

But in the end, I don't really wanna work with it.

Lately I've been more into java. I wanna learn it and make mobile games. =) I have many ideas.

RoryF 06-06-2011 08:22 AM

:

()
I've worked with C# and .net in school to make web-stuff... It was actually pretty fun.
Too bad it's like windows-exclusive and stuff. But I really like Visual Studio. Its a big IDE but it's also really good. Lots of help and a lot of documentation too.

But in the end, I don't really wanna work with it.

Lately I've been more into java. I wanna learn it and make mobile games. =) I have many ideas.

To be honest, I don't really like working with C#, I haven't much idea why. It's probably just because it's different to a lot of other stuff I've used. Hopefully I'm not just wasting my time learning Flash stuff because now all this HTML 5 is the way forward. I'm sure Adobe will come up with some more cool ideas for it though. :)

Java's pretty cool, there's ports of fun old games on the internet that use it like Mortal Kombat 3, and Commander Keen. The Doom port is horrible though, sound's discusting. :happy:

:

()
.NET is the current API for developing Windows programs. I haven't used it yet, but I did work with some of the previous APIs such as Win32 and MFC.

I guess with these Visual Studio stuff, it takes advantage of newer features of Win7/Win8? I mean, it's there's a lot of stuff you can do with it. :p

STM 06-06-2011 08:26 AM

I post this here because I sent it to someone in a PM but actually some other people might benefit from it maybe?

Ok here are some links for you detailing various things about C++

http://en.wikipedia.org/wiki/C%2B%2B < A wikipedia article stating the history of C++, what it is in quite a technical level, etcetera. Read this first and see what you can make of it.

http://www.cplusplus.com/ < This is site provides a variety of links for C++ learning.

http://www.cplusplus.com/doc/tutorial/ < This is the actual tutorial for learning the basics.

However none of those links tell you how to apply what you know into the gaming world so here are some extra bits:

http://gpwiki.org/index.php/Game_Programming_Wiki < multi-lingual game programming wiki

http://www.amazon.com/Beginning-Game.../dp/1592002056 < I think I will get this book because it is specific to game programming! Seems really helpful, you might be able to get a free PDF illegally but I suggest you buy it simply because it's more tempting to open a new window on a PDF than it is to do something else once you get into a real book.

for more help search c++ game development books

RoryF 06-06-2011 08:33 AM

I find it funny how some people expect to learn ALL of the C++ language from a YouTube tutorial, when they really just copy the codes from the description.

I probably read a couple of these pages now and move on to an actual book about it when I next go to the library. Quite long pages those are, well, it's wikipedia. :happy:

STM 06-06-2011 08:35 AM

I really suggest sitting down with a compiler or a book and some paper, writing out your first programmes in pen.

RoryF 06-06-2011 08:57 AM

:

()
I really suggest sitting down with a compiler or a book and some paper, writing out your first programmes in pen.

You must always start by making a 'Hello World!' app...:p

STM 06-06-2011 09:03 AM

Of course, I don't think anyone has ever started any other way. I can remember the first time I ever made a hello world and my face just shone. Then I created the gaming version 'game over' app, equally as satisfied.

RoryF 06-06-2011 12:01 PM

:

()
Of course, I don't think anyone has ever started any other way. I can remember the first time I ever made a hello world and my face just shone. Then I created the gaming version 'game over' app, equally as satisfied.

Is there any specific reason why it's Hello World! and not something else?

STM 06-06-2011 12:04 PM

The first time of its recorded use I believe was in the C tutorial written by the developer, (though I'm sure there's a reason other than that but I forget,) from there the tradition stems.

main( ) {
printf("hello, world");
}

RoryF 06-06-2011 12:30 PM

:

()
The first time of its recorded use I believe was in the C tutorial written by the developer, (though I'm sure there's a reason other than that but I forget,) from there the tradition stems.

main( ) {
printf("hello, world");
}

That's pretty cool, it's amazing something that old carries on for so long. I remember seeing a virus with that phrase popping up. :happy:

T-nex 06-06-2011 12:53 PM

So STM.... have you actually put any of your... programming skills to use?

Ridg3 06-06-2011 02:09 PM

I used to know C++ and C# enough for me to hold my ground but now everything has escaped my system so now I know fuck all. Well, not all of that's true. I would be able to look at a block of code and know what's happening and how the logic was applied but ask me now for me to even do "Hello World" and I'll shit my brains out of my ears.

I do have literature on C# that I've not gotten around to read yet and a game engine and enough pre-biped models for me to refresh myself and create a shit ass game where you walk. In a straight. In all of it's untextured glory.

STM 06-06-2011 02:29 PM

:

()
So STM.... have you actually put any of your... programming skills to use?

As I said, I'm building a game engine as I go along for a someone.

I feel that I should read between the lines here Nexy...forum theme?

Nate 06-06-2011 08:43 PM

:

()
I've worked with C# and .net in school to make web-stuff... It was actually pretty fun.
Too bad it's like windows-exclusive and stuff...

Have you looked in to Mono? It's an open-source version of the .NET api that is cross-platform. Any code that works in Mono can be recompiled in .NET with nothing more than a different #include.

:

()
I guess with these Visual Studio stuff, it takes advantage of newer features of Win7/Win8? I mean, it's there's a lot of stuff you can do with it. :p

Not Win8 yet, because I don't think the API has been released yet. But the libraries have definitely been updated for Win7.

RoryF 06-07-2011 08:14 AM

:

()
Not Win8 yet, because I don't think the API has been released yet. But the libraries have definitely been updated for Win7.

Have you seen how much of Windows 8 has been leaked? I'm pretty sure there might be some new stuff.

Nate 06-08-2011 05:24 AM

:

()
Have you seen how much of Windows 8 has been leaked? I'm pretty sure there might be some new stuff.

By 'leaked', I assume you mean 'announced', right?

But APIs are different. They're only really released through the MSDN and they need a lot more detail to be useable (compared to a leaked copy of the OS installer, which is possible to be fiddled with even without any instructions).

RoryF 06-08-2011 08:18 AM

:

()
By 'leaked', I assume you mean 'announced', right?

No, I mean literally the a whole version of it has been put on the internet. I believe the guy was fired from Microsoft for doing so, but there's quite a lot of new stuff that people may find and be able to use from it.

Nate 06-09-2011 04:10 AM

:

()
No, I mean literally the a whole version of it has been put on the internet. I believe the guy was fired from Microsoft for doing so, but there's quite a lot of new stuff that people may find and be able to use from it.

Unless that's something that happened in the last few days, not that wasn't Win8. The only leak I'd heard of was described as pretty much being Win7 with minor tweaks; it didn't include the new touchscreen interface at all.



Even if it was a full copy of Win8, that's irrelevant. No-one can code with it unless they get the full API information from Microsoft.

moxco 06-11-2011 04:21 AM

I know all the web-based languages (to some degree), HTML, JS, PHP, MySQL, AS3 (though HTML and MySQL aren't really programming languages), and I recently obtained a pdf of C++ for dummies. But before I could be fucked reading it could someone tell me how different C++ is?

STM 06-11-2011 05:44 AM

Well C++ isn't much like html I know that much. I bought a book no it which should arrive soon so that I can do more stuff than just the basics.

Nate 06-11-2011 06:14 AM

:

()
I know all the web-based languages (to some degree), HTML, JS, PHP, MySQL, AS3 (though HTML and MySQL aren't really programming languages), and I recently obtained a pdf of C++ for dummies. But before I could be fucked reading it could someone tell me how different C++ is?

A lot of the syntax for PHP is based on C, dumbed down. You should be able to get started easily enough, once you get through the concept of data types. Then the only thing to deal with is Object Orientedness and pointers and you'll be through the worst of it.

moxco 06-11-2011 07:53 AM

I've always wondered with C++ how games (or anything) is displayed, apart from using the command box. In AS3 I just write some code concerning pre-drawn images and their (x, y and sometimes z) location on the stage, but C++ hasn't got a stage as such.

EDIT: Oh and I'm glad that PHP syntax is similar to C++, as I rather like it. Contrary to JS and AS3 which I find fugly (and apparently are based off Java).

Nate 06-11-2011 06:37 PM

Java has very similar syntax to C++, though the definition of classes is different and Java doesn't have pointers. Not explicitly, at least. PHP is closer to C, as it is not typically used in an OO fashion. I know it can, but it's not done very often.

C++ on its own can only produce console/command line applications. In order to have a user interface, you need a graphics library. That could be a proprietry one from Microsoft or Apple, or a cross-platform one like GTK.

STM 06-17-2011 02:44 AM

On a semi-related note, does any one know how to stop words from splitting in command prompt. For example if you write a sentence like this:

This is a very long sentence and it takes up two lines in command prompt

and the end of the box is.........................................................^ here say

command prompt does this:

This is a very long sentence and it takes up two lines in command pr
ompt

can I stop that from happening?

Phylum 06-17-2011 03:20 AM

It should be possible. Google around for C++ line wrapping or something.