• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

C++ programming

Status
Not open for further replies.
Level 15
Joined
Oct 18, 2008
Messages
1,591
I think there is also a free edition of Microsoft Visual Studio that can compile both native C++ and C++/CLI (C++ with .NET). Will look up a link when I get home. If you download it, use Win32 application for native c++ and CRL for C++/CLI

Edit: Visual Studio 2013 preview: http://www.microsoft.com/visualstudio/eng/2013-preview

Not sure if it has more or less functionality than the old ones, if it is limited time, then download the free C++ version of VS2010
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Just the console and a text editor.
Although these are important skills for code management, especially with large projects. I fail to see how they improve your C++ skills.

Far better to learn the basics of the syntax then go browsing through open source projects like emulators and games to see how real code is written.
 
Although these are important skills for code management, especially with large projects. I fail to see how they improve your C++ skills.

Far better to learn the basics of the syntax then go browsing through open source projects like emulators and games to see how real code is written.

That is what i was planning on. I was just looking for some free good software. Thanks for all the responses.
 
Level 16
Joined
Aug 7, 2009
Messages
1,406
Notepad++ with MinGW/Cygwin. I like it more than any of those fancy IDE's, as it's faster than any of those and it couldn't be cleaner than it is already. For smaller things, that is. The Linux command pack that you can install with Cygwin is just the icing on the cake.

Being able to add external header sources can be quite convenient though (quite useful when you have your own library for things like data structures, for example), and managing bigger projects could also become quite painful, so I'd say CodeBlocks and Visual Studio are the ways to go if you cannot/do not want to stick with npp.
 
VS can help specially on understanding how to create windows and objects like buttons I think, since you can drag and drop objects in the form designer and have the code auto-created for you... then you can study the code produced...

of if you want something more lightweight, then either code blocks, sharp develop (I think it has a C++ support), notepad++...
 
Notepad would be terrible for anyone anyway. :p

Another good reason to not use VS all the time while developing on Windows is because of the fun you can have with the latest C++11 and C++14 features available in GCC.

I was using Xcode + Clang while developing on Mac.

What do you mean C++11 and C++14 ?
Can you post some links please.
 
Level 6
Joined
Aug 26, 2009
Messages
192
What do you mean C++11 and C++14 ?
Can you post some links please.

It's about the C++ standard.

About notepad: I actually always liked programming with it, but only with notepad++. You have highlighting in every language, if not, you can get it somewhere. And for compiling etc you can do it with the console. Since I don't want to have a big IDE for every language I have to program in, it's somehow cooler to just use notepad++. The only language I have an IDE for is currently Java (and Scala, eclipse) and since I don't like the C/C++ plugin for it, i still use notepad and the console to program C/C++.
 
Level 16
Joined
Aug 7, 2009
Messages
1,406
About notepad: I actually always liked programming with it, but only with notepad++. You have highlighting in every language, if not, you can get it somewhere. And for compiling etc you can do it with the console. Since I don't want to have a big IDE for every language I have to program in, it's somehow cooler to just use notepad++. The only language I have an IDE for is currently Java (and Scala, eclipse) and since I don't like the C/C++ plugin for it, i still use notepad and the console to program C/C++.

Same here. I also program in Java, C, Python, C#(,Bash), and hopefully soon in C++ too, and having a different IDE for each one is a serious overhead. I can do everything I want to in Npp, and a properly made makefile allows me to have includes and libraries in separate folders without having to type in a single letter. (The 'Introduction to computer graphics' teacher uses C++ and CodeBlocks, for example, and even though compiling a FreeGlut project requires multiple libraries and such, I can still do my homework in C without having troubles with compiling).
 
But if it's okay, deathismyfriend, I've also only started learning C++ days ago, and there's a lot of it I still don't understand... nice to know there's someone like you who's also going to learn it :))

ooo i pretty much learned the basics and some intermediate stuff in C++ i thought it was easy. It is very similar to vJass just different names for things and a nicer syntax. I didn't get into the advanced because i switched to learn C# now though which i like a lot. It has a lot of graphics and user friendly things in it.

Just finished my first chat program with multi client support based on a local server.
I did it in C++ though. Might make it in C#.
 
Level 20
Joined
Apr 14, 2012
Messages
2,901
ooo i pretty much learned the basics and some intermediate stuff in C++ i thought it was easy. It is very similar to vJass just different names for things and a nicer syntax. I didn't get into the advanced because i switched to learn C# now though which i like a lot. It has a lot of graphics and user friendly things in it.

Just finished my first chat program with multi client support based on a local server.
I did it in C++ though. Might make it in C#.


My reaction can only be expressed properly through emoticons:
:vw_wtf::goblin_boom::grin::thumbs_up:

If that makes any sense....
Good luck mate!
 
Level 15
Joined
Oct 18, 2008
Messages
1,591
ooo i pretty much learned the basics and some intermediate stuff in C++ i thought it was easy. It is very similar to vJass just different names for things and a nicer syntax. I didn't get into the advanced because i switched to learn C# now though which i like a lot. It has a lot of graphics and user friendly things in it.

Just finished my first chat program with multi client support based on a local server.
I did it in C++ though. Might make it in C#.

UDP or TCP? That's not bad though either way ;)

Edit: or maybe just HTTP? :D
 
Last edited:
Level 4
Joined
Jun 30, 2013
Messages
76
What is VIM ?

Also did you see how old this thread is ?

Vim looks like simple, but in real its a really good editor. See wiki for it.

It's not that old, and some people do check this post, im sure. I wanted to advise a thing not everyone has ever heard of. It's rly comfortable, because, if u modify it, it puts tabs auromatically, highlights commands and other stuff. Commenting how it's useful, i'd mention that u can simply change 1 string value found in selected area to another. To run and build u need to write 1 short string (depends from OS).
 
Level 15
Joined
Oct 18, 2008
Messages
1,591
Vim looks like simple, but in real its a really good editor. See wiki for it.

It's not that old, and some people do check this post, im sure. I wanted to advise a thing not everyone has ever heard of. It's rly comfortable, because, if u modify it, it puts tabs auromatically, highlights commands and other stuff. Commenting how it's useful, i'd mention that u can simply change 1 string value found in selected area to another. To run and build u need to write 1 short string (depends from OS).

I don't see how it can do anything XCode or Visual Studio 2013 can't do, and you can customize IntelliSense in VS pretty well. Only thing I miss from it is column alignment.

They help you work faster and cleaner, and provide excellent debugging functionality. Tho when it comes to extensions such as ReSharper, there come a few things that are really not needed, but no one forces you to use that.
 
Level 14
Joined
Jun 27, 2008
Messages
1,325
Vim allows extremely fast text editing once you got used to the commands, which are compared to normal text editors super weird.
Learning vim takes some time and you hardly see a benefit from using vim unless you have some solid experience with it. For beginners its just horribly confusing.

If you want to learn vim i suggest you dont try it with your c++ project you worked on for the last 3 years because pressing the wrong button combinations might erase your whole textfile :p
If you want to learn vim check out "vimtutor".

But @ultrapro, its really not a good suggestion for people who look for a c++ ide, because vim is not an ide. You probably should have stated that when comparing it to Code::Blocks and XCode.
 
Level 4
Joined
Jun 30, 2013
Messages
76
I use Vim interacting with command prompt, if i write in .vimrc "set number" and "syntax on", it will make it IDE(not sure i remember certain defenition). To run&build i just type e.g. ":!g++ file.cpp && ./a.out < input", so i don't need any folders, just text file. If you press wrong buttons, you press "u", or "ctrl+r" to undo "u". In insert mode you can't do that much mistakes to be unable to delete it. Command mode is really comfortable, you can press 2 buttons instead of endless mouse clickings. Omfg its totally better than any xcode/codeblox. I've written it just to show that vim is not that simple shit as u describe it. It's really reliable and good text editor, easily-adjustable for programming.
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
Sounds good, almost like writing a makefile every time you want to compile...oh wait, it isn't like writing a makefile, it is writing a makefile every single time you want to compile.

The highlighted words should be text editor, and I prefer SciTe or Notepad++ for that.
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
I use Vim interacting with command prompt, if i write in .vimrc "set number" and "syntax on", it will make it IDE(not sure i remember certain defenition). To run&build i just type e.g. ":!g++ file.cpp && ./a.out < input", so i don't need any folders, just text file. If you press wrong buttons, you press "u", or "ctrl+r" to undo "u". In insert mode you can't do that much mistakes to be unable to delete it. Command mode is really comfortable, you can press 2 buttons instead of endless mouse clickings. Omfg its totally better than any xcode/codeblox. I've written it just to show that vim is not that simple shit as u describe it. It's really reliable and good text editor, easily-adjustable for programming.

as he is Visual Studio 2013 express with combination of C#, he most likely has Windows, and so anything from your console input is pretty much invalid, since there is no decent g++ Windows implementation
 
Level 15
Joined
Oct 18, 2008
Messages
1,591
omg u can type any compiler instead of g++. the only problem is that im quite sure it works on windows quite less efficient... oh! but even w/o command prompt vim is much better than anything else.
.
!

That sounds like a fanboy cheering for his fav editor without even trying out others properly :/

TBH, I'm either using VS or XCode, or, when I don't have the time for tests/compiling, I may just use Notepad++ and later compile using either of the above. Or Android Studio, if it's for Android, but that's another thing.

I've tried so many IDEs so far, but there is really nothing that can compete with these, and Visual Studio Professional is free for students, which I am, so that doesn't really concern me either.
 
Level 4
Joined
Jun 30, 2013
Messages
76
"That sounds like a fanboy cheering for his fav editor without even trying out others properly"

This sounds like the same. And in total it looks like a game "who is more deaf"


PS. ch1ll, im new on hive forums.
 
Last edited:
Level 15
Joined
Oct 18, 2008
Messages
1,591
Sigh, you make me quote myself... >_<

[...] I've tried so many IDEs so far, but [...]

Point is, I know what I'm talking about. No worries tho, nobody can force someone else to use an IDE or editor (except for teachers >_<) and everyone is allowed to have their opinions, I just felt that someone had to reply for your arguments, since the features that you stressed are in fact part of most code editors and IDEs.

Also, I'm not one to anger myself over a forum post, I've better things to worry about ;)
 
Level 16
Joined
Aug 7, 2009
Messages
1,406
nobody can force someone else to use an IDE or editor (except for teachers >_<)

You sure about that? I was using Notepad++ for Java and C# while everyone else (including the teacher, of course) was using NetBeans/Eclipse/Visual Studio/SharpDevelop. And guess what - I never ever fell behind :'D (and I was the first one to complete the course)

I'm using IntelliJ Idea (Java) and Visual Studio (C++ that I picked up on my own, and occasionally C#) now, and to be honest with you, I love both of them (Eclipse is pretty cool too, but I was sick of the GUI going wild/out of control every goddarn time, plus Idea looks cooler/more like VS, and the default hotkeys are similar too). I still use Npp though when I need to, for quickly changing something in a source file, for example, or when I was working on my own C++ collections and I was looking at the JRE sources - of course I'm not going to use an IDE for that as I just want to see the code, but not modify it.
 
Status
Not open for further replies.
Top