getting started with C++ on Mac

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
bulls.bears2011
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 60
Joined: Tue Oct 28, 2008 6:10 pm

getting started with C++ on Mac

Post by bulls.bears2011 »

Hey, I have been interested in programming for a while, and purchases a book on SAM'S book "Teach Youself C++ in 24 hours). However, the problem lies in that I have a mac and the book seems to be based around windows, and about every game programming thing is windows based. So, I don't really know what to do.
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: getting started with C++ on Mac

Post by MarauderIIC »

Hm... try http://meandmarkpublishing.blogspot.com ... -os-x.html ?

Code should work fine as long as it's standard (IOW, in general, if it doesn't #include <windows.h> it should be fine).
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
NeonNinja♦
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 38
Joined: Sat Oct 25, 2008 4:55 pm
Location: Under your bed eating your couch :D

Re: getting started with C++ on Mac

Post by NeonNinja♦ »

I think PC's are better :D But then again mac's are good because they cant get viruses.... Good luck :D
"Java is C++ without the guns, knives, and clubs" <------- So true.
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: getting started with C++ on Mac

Post by MarauderIIC »

They can too. Just no one's made a prolific mac virus yet d:
Malicious viruses developed is proportional to market share, hm?
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
NeonNinja♦
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 38
Joined: Sat Oct 25, 2008 4:55 pm
Location: Under your bed eating your couch :D

Re: getting started with C++ on Mac

Post by NeonNinja♦ »

Haha that would be hard
"Java is C++ without the guns, knives, and clubs" <------- So true.
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: getting started with C++ on Mac

Post by dandymcgee »

I doubt it would be as difficult as it would be useless. Who cares enough to put any effort towards Macintosh viruses?
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
Kleithap
ES Web Developer
ES Web Developer
Posts: 324
Joined: Sat Jan 26, 2008 9:03 am
Location: Amsterdam

Re: getting started with C++ on Mac

Post by Kleithap »

Marauder wrote:Malicious viruses developed is proportional to market share, hm?
True that, the invisible hand of malicious software :)
XianForce
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 767
Joined: Wed Oct 29, 2008 8:36 pm

Re: getting started with C++ on Mac

Post by XianForce »

NeonNinja♦ wrote:I think PC's are better :D But then again mac's are good because they cant get viruses.... Good luck :D
Mac just keeps there source codes tight...so its a smaller risk of virus...compared to not as many programs/games...I think PC + Anti-Virus owns Mac....big time...but when you start incorporating Vista in...then it starts to even out a bit...

Vista's all right I guess, but it still isn't too great.
User avatar
Trask
ES Beta Backer
ES Beta Backer
Posts: 738
Joined: Wed Oct 29, 2008 8:17 pm
Current Project: Building a 2D Engine
Favorite Gaming Platforms: Sega Genesis and Xbox 360
Programming Language of Choice: C/C++
Location: Pittsburgh, PA
Contact:

Re: getting started with C++ on Mac

Post by Trask »

When I started programming in HS, they had us using a Metroworks IDE, I don't know what's used now, but I remember loving Microsoft's IDE much more. We never got heavy into the MAC specifics of programming, it was all basic work that could be done on any system, just compiled differently. I know there's an old Mac game development book out there, I remember seeing it at my old college's library, though I never read it. If somebody could make a few good games on Apple products, they'd get a huge headstart compared to what's out there. Most game companies stay clear of the Macs due to their small install base, but if you make a few ports or Mac specific games and what not, you could make something happen.
MarauderIIC wrote:You know those people that are like "CHECK IT OUT I just made Linux run on this piece of celery [or other random object]!!"? Yeah, that's Falco, but with ES.
Dear god, they actually ported ES to a piece of celery!
Martin Golding wrote: "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

Re: getting started with C++ on Mac

Post by avansc »

NeonNinja♦ wrote:I think PC's are better :D But then again mac's are good because they cant get viruses.... Good luck :D
HUH? actually macs can get virus', can mac are really awesome development platforms.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

Re: getting started with C++ on Mac

Post by avansc »

XianForce wrote:
NeonNinja♦ wrote:I think PC's are better :D But then again mac's are good because they cant get viruses.... Good luck :D
Mac just keeps there source codes tight...so its a smaller risk of virus...compared to not as many programs/games...I think PC + Anti-Virus owns Mac....big time...but when you start incorporating Vista in...then it starts to even out a bit...

Vista's all right I guess, but it still isn't too great.
what???, mac for the most part is open source, at least the kernel. there are versions of linux that are completely open source and have way less virus' than windows. windows is just based on less secure filesystem.

PS: im not saying windows is bad. infact im on it right now and love it. do all my development in VC2008
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
User avatar
programmerinprogress
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Wed Oct 29, 2008 7:31 am
Current Project: some crazy stuff, i'll tell soon :-)
Favorite Gaming Platforms: PC
Programming Language of Choice: C++!
Location: The UK
Contact:

Re: getting started with C++ on Mac

Post by programmerinprogress »

It's all really a matter scale and market share.

Microsoft Windows is used by a relatively large share of the IT market, therefore, for some annoying teenager in their bedroom, who hates the world and wants to make as big impact as possible, will be more inclined to destroy the largest amount of machines as he/she(you never know) possibly can, therefore their natural choice would be to make viruses that messes up machines powered by windows.

Also, another factor is that there's more machines to pass on the virus, which means the viurs cannot be isolated as easily, and therefore spreads, through the use of networks.


And the final thing to take into account, and this only really counts with linux vs windows AFAIK, is the fact that windows is proprietry, therefore, there are less people, working on solutions, to combat problems with the core operating system, compared to linux which is open source. if theres a problem with linux, someone is likely to either report it, or fix it promptly, instead of wait for a company, which is probably developing an even better operating system, with even more security flaws, to fix the problem.

I could be wrong, if i've got any of this wrong, let me know, it's just how I would see it logically.
---------------------------------------------------------------------------------------
I think I can program pretty well, it's my compiler that needs convincing!
---------------------------------------------------------------------------------------
And now a joke to lighten to mood :D

I wander what programming language anakin skywalker used to program C3-PO's AI back on tatooine? my guess is Jawa :P
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

Re: getting started with C++ on Mac

Post by avansc »

programmerinprogress wrote:It's all really a matter scale and market share.

Microsoft Windows is used by a relatively large share of the IT market, therefore, for some annoying teenager in their bedroom, who hates the world and wants to make as big impact as possible, will be more inclined to destroy the largest amount of machines as he/she(you never know) possibly can, therefore their natural choice would be to make viruses that messes up machines powered by windows.

Also, another factor is that there's more machines to pass on the virus, which means the viurs cannot be isolated as easily, and therefore spreads, through the use of networks.


And the final thing to take into account, and this only really counts with linux vs windows AFAIK, is the fact that windows is proprietry, therefore, there are less people, working on solutions, to combat problems with the core operating system, compared to linux which is open source. if theres a problem with linux, someone is likely to either report it, or fix it promptly, instead of wait for a company, which is probably developing an even better operating system, with even more security flaws, to fix the problem.

I could be wrong, if i've got any of this wrong, let me know, it's just how I would see it logically.

its good logical reasoning, but if you look at mac os version 6 i believe, was rid with virus'. and at that time they had almost no market share.

apple has quite alot of market share really. more than you might think. i think its about 20 percent now. that is significant, they are also prolific in the educational market.

its really a moot point. because if you are safe and secure with your networks you wont get any virus' when i surf the web i use a sandbox. ie, a cirtual machine, so i dont care if it gets infected i just sort through the things that are clean, then transver them, and delete the infected VM.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
Post Reply