Staredit Network > Forums > Technology & Computers > Topic: C++ Programming
C++ Programming
Jun 25 2012, 12:28 am
By: luzz  

Jun 26 2012, 12:13 am luzz Post #21



I have the iPhone SDK, thats what xcode is I think... but I have never used flash before, but I can try

Well darn, I guess I'll poke around on stack overflow and look at apples beginners guide stuff xD



None.

Jun 26 2012, 12:30 am CecilSunkure Post #22



You can't really just "make an iPhone app". There's a lot of different things that's required to make something people will want to buy, as in you have to learn a whole lot and the process is non-trivial. I'd suggest getting some books on the subject if you're serious about making something.



None.

Jun 26 2012, 12:35 am luzz Post #23



I have a few, and I want to release a few free apps to see what people think. I can make tableviews, and load things in from XML files, but thats about it.. xD

Only problem is that the books are now out of date with the newest version of Xcode, and lots of errors pop up when i use the sample code from them =/



None.

Jun 26 2012, 1:53 am Lanthanide Post #24



Quote from Jack
Quote from Lanthanide
Quote from Jack
Quote from Lanthanide
Quote from Jack
C is very similiar to C++; C++'s classes are the main difference. To find out about classes, I suggest you read up about object-oriented programming (OOP) on the googley.
That's like saying a skyscraper is very similar to a house, the main difference is the number of windows.
No, it's like saying C is very similar to C++, the main difference is that C++ is object-oriented; the most obvious result of this is classes.
Restating your original claim doesn't make it any less wrong.

Yes, C++ has classes, because it is OO. That by itself makes it a vastly, hugely different beast from C. As in, if you are programming in C++ for any large project, and you do it properly, it will look vastly different from the same program written in C. The problems you encounter in C++ are also of a different nature than those you encounter in C. But hey, I just program in C for a living, what do I know?
I don't especially want to argue over this, but the languages themselves, with regards to syntax particularly, are extremely similar, with most of C++'s differences coming from thefact that is OOP.
Yes, I agree that if you're going to be talking about the superficial shallow stuff such as syntax, that your statement was accurate.

Quote
As you said, that makes it a different beast, but that is the single major difference, and you'd have to be ignorant of the languages to argue that there is another difference between the two languages that is bigger than OOP, that is not caused by OOP.
Really my point is that by saying its "just like C but with OO" you're rather trivialising and distorting the picture for someone who actually doesn't know anything about the language or programming in general. The syntax is similar and statements and constructions within the languages will be similar, but the actual operation of the language is substantially different. It's, like I said, comparing a house to a skyscraper, or a compact convertible 2 door car to an 18 wheel big-rig truck; superficially they are the same but the actual functionality under the hood is very different.



None.

Jun 26 2012, 3:22 am Sand Wraith Post #25

she/her

How do they work differently under the hood? (Should we open a new topic to discuss this?)




Jun 26 2012, 4:58 am Lanthanide Post #26



A program implemented with OO paradigms will generally look quite different from a C program, even a C program that is implemented in an OO-like functionality (as many C programs are).

I don't know enough about the internal operations of C++ compared to C as I don't know C++, however google can tell you a lot, and a lot of it can be quite subtle and complex. Here's one particular thing I found quickly that talks about some of the complains made about C++ for use in embedded systems: http://blogs.kde.org/node/1138

In general though, C does pretty much what you tell it (outside of weird compiler things or memory alignment things), whereas C++ has a lot more 'magic' going on behind the scenes that a developer needs to be aware of if they are writing with performance in mind (and who isn't?). This means C++ can be faster and more powerful to write things in, particularly with fewer lines of code, but also means the types of problems that crop up can be much harder to track down and harder to resolve.

Also found this interesting, on C++ vs Objective-C: http://www.mactech.com/articles/mactech/Vol.13/13.03/CandObjectiveCCompared/index.html
Quote
C++ has a very diverse syntax, many language extensions, and hundreds of quirks. In my first year of C++ programming, I thought that I understood all the important concepts. In my second year, I thought I had it mastered. However, after all this time, I'm still learning about esoteric things that can be done in C++, and the bizarre syntax needed to access those features.


Post has been edited 1 time(s), last time on Jun 26 2012, 5:08 am by Lanthanide.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[05:41 am]
Ultraviolet -- 🤔 so inf is in you?
[04:57 am]
O)FaRTy1billion[MM] -- my name is mud
[04:35 am]
Ultraviolet -- mud, meet my friend, the stick
[10:07 pm]
lil-Inferno -- nah
[08:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
[05:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
[05:24 pm]
lil-Inferno -- poopoo
[05:14 pm]
UndeadStar -- I wonder if that's what happened to me. A returned product (screen) was "officially lost" for a while before being found and refunded. Maybe it would have remained "lost" if I didn't communicate?
[03:36 pm]
NudeRaider -- :lol:
Please log in to shout.


Members Online: NudeRaider, 9sophiee131tM2