Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
oh yay i got it. i can calculate the area of a rectangle now using one of the examples he gave us! awesome. so I just need to type those 2 things in everytime? well, change it according to where my .cpp is saved, but the second line will be the -clang thing? and what if there are errors, what does it do?
 
this is awesome. i dont feel like im wandering aimlessly anymore. i will be prepared for my second class it seems! lol
THANKS so much everyone for putting up with my idiocy and being patient :)
 
in the middle there it kind of got a bit painful ;)
hey how would i go to a location with spaces? like the rest of my examples are stored in a folder called Math 1116? Should i change that to like, math_1116 or is there a way to deal with the spaces?
 
in the middle there it kind of got a bit painful ;)
hey how would i go to a location with spaces? like the rest of my examples are stored in a folder called Math 1116? Should i change that to like, math_1116 or is there a way to deal with the spaces?
If the folder is on the desktop cd ~/Desktop/Math\ 1116 will get you there. I never put spaces in my folders since it is a bit of a pain to navigate them in the terminal.
 
Last edited:
in the middle there it kind of got a bit painful ;)
hey how would i go to a location with spaces? like the rest of my examples are stored in a folder called Math 1116? Should i change that to like, math_1116 or is there a way to deal with the spaces?

You can also use the tab key to auto-complete! Try it out; it is a real time saver.
 
oh cool!! thanks guys :) this is going to be such a rough class i think, im like the only girl its so weird. i guess the next step is to learn how to write these things huh! haha
 
It will come in time.:cool:

You can always check back here for any help you might need.
Yeah I will definitely be doing that! I dont think I will feel comfortable talking to the prof, because I'm not good at understanding people with a thick accent and the whole encounter would just be awkward. The lab instructor seems to be a nice english as a first language lady, so she might be of some assistance! But I will just keep bumping this thread to the top with any questions I have..I wouldnt want to continuously make new threads!
 
Yeah I will definitely be doing that! I dont think I will feel comfortable talking to the prof, because I'm not good at understanding people with a thick accent and the whole encounter would just be awkward. The lab instructor seems to be a nice english as a first language lady, so she might be of some assistance! But I will just keep bumping this thread to the top with any questions I have..I wouldnt want to continuously make new threads!

Separate threads for separate problems are probably better. And the only way to understand your prof better is to talk to him/her!
 
If you say so, I may end up with a lot of questions! Lol but yeah I guess speerate threads would keep everything concise and organized. Hes one of the profs Im super intimidated by, so I think If I feel I am doing okay I will steer clear. he seems too smart for his own good to be honest.
 
I would advise at least trying to learn to use Xcode. The fact of the matter is that the command line is generally only used for compiling command-line apps. GUI apps generally require some sort of IDE, at least for designing the GUI, which I assume you will someday intend to do since the command line is only something one uses behind the scenes nowadays... For now though, Xcode can do far more than you need; I suppose it's a matter of what you plan to do with your programming. Even windows programming will be easier if you can get used to IDE programming. IDEs tend to have many similar features.
 
I would advise at least trying to learn to use Xcode. The fact of the matter is that the command line is generally only used for compiling command-line apps. GUI apps generally require some sort of IDE, at least for designing the GUI, which I assume you will someday intend to do since the command line is only something one uses behind the scenes nowadays...

Hum, none of what you said here is true. You can compile GUI code from the command line, you can build GUI apps without an IDE, even for designing the GUI. The command line is far more than something one uses behind the scenes nowadays too.

The OP is doing a math class, the command-line is fine for that.

Balamw pointed the OP to a GCC build rather than XCode, that's what the OP installed.
 
Hum, none of what you said here is true. You can compile GUI code from the command line, you can build GUI apps without an IDE, even for designing the GUI. The command line is far more than something one uses behind the scenes nowadays too.

The OP is doing a math class, the command-line is fine for that.

Balamw pointed the OP to a GCC build rather than XCode, that's what the OP installed.

You misunderstood most of what I said. My point is that generally you use IDEs for GUI development these days, or at least that's what they teach, and I meant in terms of code. You can use command-line tools within code to make your job easier, and it's something I do often. I'm talking about programming here, not computer usage in general.
 
My point is that generally you use IDEs for GUI development these days, or at least that's what they teach, and I meant in terms of code.

The OP is in a C++ class, not an Objective-C or GUI class. What kind of GUIness are they going to get into at this point?

The compilers are only <300MB to download vs. ~4GB for Xcode.

Which do you think is more intimidating for a newbie?

B
 
The OP is in a C++ class, not an Objective-C or GUI class. What kind of GUIness are they going to get into at this point?

The compilers are only <300MB to download vs. ~4GB for Xcode.

Not to mention copy/pasting commands or typing them up from notes/litterature is much easier than finding that button/checkbox/field that might or might not be there in your particular GUI package's version.
 
The OP is in a C++ class, not an Objective-C or GUI class. What kind of GUIness are they going to get into at this point?

The compilers are only <300MB to download vs. ~4GB for Xcode.

Which do you think is more intimidating for a newbie?

B

I don't see how size of a download is proportional to the level of intimidation.

In fact, I would think a typical individual new to programming would find compiling in the command line much more intimidating, assuming no previous conformability with doing tasks in the command line.

However, to go along with what KnightWRX was getting at, IDEs often are too specific making it difficult to do more generalized things and far too forgiving of mistakes.

Starting pure with a text editor and a complier is the best way to learn.
 
There is another option to get Xcode, install it from the OS X install disk that came with the computer.
 
There is another option to get Xcode, install it from the OS X install disk that came with the computer.

Unfortunately that doesn't work so well under Lion. Either the machine didn't come with disks (at least the MBAs don't), or the one on disk is the older version (Xcode 3) that isn't really supported for install under Lion.

B
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.