Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Lumio

macrumors member
Original poster
May 20, 2008
54
0
Hi,

I'm really used to TextMate. So I thought of learning C++ with TextMate. Would you recommend it, and if so, how to compile programms written with TextMate?

Greetings
 
Hi,

I'm really used to TextMate. So I thought of learning C++ with TextMate. Would you recommend it, and if so, how to compile programms written with TextMate?

Greetings

To compile you would likely need to do it by hand using gcc. I wouldn't recommend TextMate personally, as I prefer an IDE like XCode or Netbeans (both free obviously) because they have features like auto complete, etc. Its possible, but I don't suggest it, especially to learn the language.
 
Can I use NetBeans out of Box? So I don't need to configurate it? Let's see (in one minute, when it's finished)
 
Sorry for double post... :)
Well, NetBeans is nice, but I have a general question....
What's the header-file for? I mean, when I create a new cpp-file, it adds me also a new .h-file. For what?
 
Sorry for double post... :)
Well, NetBeans is nice, but I have a general question....
What's the header-file for? I mean, when I create a new cpp-file, it adds me also a new .h-file. For what?

You have a long road ahead of you my friend. Any good programming book or tutorial on C++ should explain header files in depth. They are useful, and important. C++, Objective-C, and many other languages use header files of some sort.

Wikipedia: "A header file commonly contains forward declarations of classes, subroutines, variables, and other identifiers. Programmers who wish to declare standardized identifiers in more than one source file can place such identifiers in a single header file, which other code can then include whenever the header contents are required."
 
And what then contains the cpp-file?

I know I have a long and hard road on my way :D but I want to pass it.
 
And what then contains the cpp-file?

I know I have a long and hard road on my way :D but I want to pass it.

Think of the header file as a blueprint for your methods, and in the cpp file you take that blueprint and fill in the guts of the methods.
 
So for example I have one cpp file and there I put in the real code, what the functions and so on are doing? and in the header files I say, that those functions exists?
 
personally i think you should try using eclipse.
eclipse is used by everyone on every platform and can handle all types of code.

i use it at school and my teachers use it at school and at work ( ibm ).

personally i like xcode though. why don't you want to use xcode?

i have my c++ book in digital version if you want it.
 
Hm, what is the big difference between Eclipse and NetBeans?
 
Hm, what is the big difference between Eclipse and NetBeans?
i dunno.
never heard of netbeans really.

o but for some weird reason if you use eclipse, you have to install xcode.
you don't have to use it or anything but its weird. maybe im wrong
 
Hm, what is the big difference between Eclipse and NetBeans?
Both are IDE's, use whichever one works best for you. Netbeans just released a new version a few months back which I love. Personally, I (and my co workers) prefer Netbeans over Eclipse.

Oh yeah, C++ isn't that hard to learn :D

Suuure. Wait until you get into advanced topics.

i dunno.
never heard of netbeans really.

o but for some weird reason if you use eclipse, you have to install xcode.
you don't have to use it or anything but its weird. maybe im wrong

Try it before ya knock it.
 
I think pointers are the same as referenzes in PHP. If so, it's really usefull.
My problem is, that I have a running project beside my office work. :|

//edit:
I added a new class with NetBeans, and beside the normal constructor, it created to other constructors:
Code:
NewClass::NewClass(const NewClass& orig)
and
Code:
NewClass::~NewClass()

What does the parameter in the first one mean and what does the ~ in the second one do?
 
I think this thread is going to get to a personal c++ training and some support for IDEs xD I hope that's no problem :D

well I have a little style problem with eclipse... it "selects" me all used elements. So, when I click into a variable it highlights every other variable. The problem now is, that the background color of this highlightning is too bright. (see the attachment)

I looked up the settings, but I couldn't find the option to change or disable this.
 
Sorry...
file_Picture+14c7af.png

You can see, line is in a light grey. How to change that?
 
Sorry...
file_Picture+14c7af.png

You can see, line is in a light grey. How to change that?
what line?
to be honest i have no idea.
eclipse sometimes has this highlighting thing that it does when you i think triple click, where it lightly highlights everything that is the same thing.
if you just click off it should go away.
i think.

is this a screen shot? or a pic of the screen (camera)?
looks weird.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.