Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How do you run code in C++??
Index -> Programming, C++ -> C++ Help
Goto page Previous  1, 2, 3  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
wtd




PostPosted: Wed Mar 24, 2010 9:40 am   Post subject: Re: How do you run code in C++??

[quote="Kharybdis @ Wed Mar 24, 2010 2:56 am"]
wtd @ Tue Mar 23, 2010 12:21 pm wrote:
Kharybdis @ Tue Mar 23, 2010 10:50 am wrote:
If you're running windows, dev c++ or visual c++ is your best bet for a good compiler. Linux has its own compilers, like vi or nano, i think.


Dev C++ and Visual C++ are both integrated development environments. This means that they usually bundle up a compiler, but also include a bunch of other crap to scare off novice programmers.

Vi and nano are both just text editors, and will not serve to compile C++ code.


my bad. yah, they are text editors. in linux, i just make .cpp or .h files in vi or nano and then run them by using g++. You mention that the IDEs scare the novice programmers, but if you want to learn c++, they're still the best option./quote]

No. They're not. C++ is a "get your hands dirty with nitty gritty details" language. It is beneficial to work with a (decent) text editor and command-line compiler.
Sponsor
Sponsor
Sponsor
sponsor
TheGuardian001




PostPosted: Wed Mar 24, 2010 2:38 pm   Post subject: Re: How do you run code in C++??

If anything IDE's are much friendlier to newer people, since they don't require mucking around in command line, providing a simple "do everything and run" button.

Of course, having a "do everything" button also tends to give you at least a bit less control over the compile process, and also puts quite a bit of overhead on compiling. If you really want to be developing in C++, you'll have to know command line compiling eventually. It's more difficult to get the hang of, but it's still the better option.
DtY




PostPosted: Wed Mar 24, 2010 4:17 pm   Post subject: RE:How do you run code in C++??

I don't like IDEs, but can you imagine trying to teach 30 students how to (1) use the command line (2) start the compiler (3) why you should do the compiling and linking in two steps, when you can do everything in one step (3) how to write a makefile

Pretty much all before you start to write any programs?

[edit] Scons might not be a bad idea to teach instead of an IDE though, it's basically an IDE without the text editor, and exposes some of the low level compiler stuff.
wtd




PostPosted: Wed Mar 24, 2010 11:27 pm   Post subject: RE:How do you run code in C++??

I feel like a broken record.

If you just want to get down to writing programs, C++ is the wrong language.
USEC_OFFICER




PostPosted: Thu Mar 25, 2010 11:08 am   Post subject: RE:How do you run code in C++??

Yah, try Python. It's quite swell.
apomb




PostPosted: Thu Mar 25, 2010 1:19 pm   Post subject: RE:How do you run code in C++??

or ruby

or you could try shoes... seems that all of the shoes links are broken here here though... sad.

edit: http://shoes.heroku.com/ is the new home of shooooes.

thank you for listening.

goodday
andrew.




PostPosted: Thu Mar 25, 2010 3:54 pm   Post subject: RE:How do you run code in C++??

Yeah I think Ruby or Python would be the best choices for a first programming language because they are easy to learn, but also because they don't need to be compiled.
USEC_OFFICER




PostPosted: Thu Mar 25, 2010 5:42 pm   Post subject: RE:How do you run code in C++??

Plus Python syntax is so simple. The indentations are the formating. eg. They replace the brackets in C++. I have no idea about Ruby though. Only that Google uses it.
Sponsor
Sponsor
Sponsor
sponsor
DtY




PostPosted: Thu Mar 25, 2010 6:13 pm   Post subject: Re: RE:How do you run code in C++??

USEC_OFFICER @ Thu Mar 25, 2010 5:42 pm wrote:
Plus Python syntax is so simple. The indentations are the formating. eg. They replace the brackets in C++. I have no idea about Ruby though. Only that Google uses it.
Ruby has two different syntaxes for blocks, depending on what you're doing. The first has an implicit start, after a conditional, loop or function definition, and either do...end or {...} for blocks, which are pretty much anonymous functions.
livingheaven




PostPosted: Sat Mar 27, 2010 4:48 pm   Post subject: Re: How do you run code in C++??

thx guys Very Happy
livingheaven




PostPosted: Sat Mar 27, 2010 4:50 pm   Post subject: Re: How do you run code in C++??

right now im using turing, but i thought turing is limited so i decided to go in C++
TheGuardian001




PostPosted: Sat Mar 27, 2010 5:11 pm   Post subject: Re: How do you run code in C++??

C++ is not generally a good first step out of Turing... I'd definitely recommend going to something a bit easier to learn, like Python or Ruby, before working your way up to C++.

Although neither of them are compiled languages (meaning that anybody who wants to run them needs an interpreter, and has access to the source), they do have quite a bit of power in them and are much easier to simply write and run.

Still, I suppose that if you're really set on learning C++, there's nothing out there to stop you. Plenty of people have learned C/C++ just by diving into it, so if you think you're up for it, more power to you.
TerranceN




PostPosted: Sat Mar 27, 2010 5:35 pm   Post subject: Re: How do you run code in C++??

livingheaven @ Sat Mar 27, 2010 4:50 pm wrote:
right now im using turing, but i thought turing is limited so i decided to go in C++


But is it actually limiting to you? Don't decide not to use a language just because some people don't like it. Besides, by the time you find Turing limiting, you will be able to easily learn a new language.
wtd




PostPosted: Sat Mar 27, 2010 10:11 pm   Post subject: Re: How do you run code in C++??

livingheaven @ Sun Mar 28, 2010 5:50 am wrote:
right now im using turing, but i thought turing is limited so i decided to go in C++


Kind of like saying: "I hate the kiddie pool, so I'm going diving in the Mariana Trench."
SNIPERDUDE




PostPosted: Sun Mar 28, 2010 12:42 pm   Post subject: RE:How do you run code in C++??

Ah, vacation of '98. Thems was good times.
Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 3  [ 31 Posts ]
Goto page Previous  1, 2, 3  Next
Jump to:   


Style:  
Search: