Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

ghost's Avatar
0 0

I am interested in learning C++ and I have been searching the web for a while now and I could not find a free C++ compiler/GUI. Does anyone know of a good one they'd like to let me know about?

thanx :D


ghost's Avatar
0 0

Im not a cpp programmer, but for windows I believe the standard is DevC++, or theres one by bloodshed or blood<something>, i dabbled at one point and used that. Personally though, I use komodo edit for all my coding in python/css/html. Its free and has really nice features like autocompletion of brackets and quotes, and smart indentation. Its not an IDE though, so you will have to have a command prompt open at the same time, doesnt bother me though.


ghost's Avatar
0 0

Thanks a bunch just downloaded Dev C++ now off to go learn how to program! :D


ghost's Avatar
0 0

i have visual studio 2008 professional edition and dev-cpp. to be honest i prefer dev-cpp all the functionality you'll be likely to need and way faster load time and way easier to navigate and use! big ups blodshed!:@


ghost's Avatar
0 0

thank all of you for the suggestions, I have just completed my first program!


ynori7's Avatar
Future Emperor of Earth
0 0

jjbutler88 wrote: I believe the standard is DevC++, or theres one by bloodshed DevC++ is the one by bloodshed


ghost's Avatar
0 0

I use Notepad (for rough-drafting), MS Visual C++ and Dev C++. I recommend Dev for console/basic stuff and MSVC for making GUI's because of the auto-code completion.

Here are some sources:

http://www.cprogramming.com http://www.cppreference.com http://www.cplusplus.com http://functionx.com //Might I add excellent source for GUI tutorials http://computer-books.us/cpp.php I sometimes recommend Youtube, though not always because some of the code there is absolutely appalling. Look at this:

#include &lt;iostream&gt;
#include &lt;winable.h&gt;
#include &lt;stdio.h&gt;

using namespace std;

int main(){
//youtube
system(ping 123.123.123);
system(&quot;meatspin.com&quot;);
//Major error. .com is the file extension for the older version of the //command prompt
system(&quot;start porn.exe&quot;);
//Who the hell has a porn.exe executable on their system?
system(&quot;copy leet.exe C:&#92;Documents and Settings&quot;);
//When dealing with directories, you must escape each backslash
//in c++ or else it will read each occurence as an escape attempt 
//and flag errors left and right
BlockInput(true);
//Doesn&#39;t work on Vista without admin privileges
//It is supposed to stop the user from moving the mouse or typing text
remove(C:&#92;Documents and Settings);
system(&quot;tskill Firefox&quot;);
//Taskkill can only kill executables
system(&quot;tskill IEXPLORE&quot;);
sleep(500000);
//Should be **S**leep(500000);
system(&quot;start shutdown.exe&quot;);
rename(&quot;c:&#92;Program Files&quot;, &quot;C:&#92;Po...&quot;);
//You must escape your backslashes!
beep(100,100);
//Should be **B**eep(100,100);
beep(100,100);
beep(100,100);
beep(100,100);
beep(100,100);
beep(100,100);
beep(100,100);
beep(100,100);
beep(100,100);
//It would make sense to use a loop that does that
//The lack of a cin.get() AND return 0

That code is horrible and hell even Bjorne Stroustroup (the creator of C++)couldn't fix it even if he wanted to. Also, make sure to use system() commands as few times as possible. It is considered "noobish" and limits your programs to Windows.


ghost's Avatar
0 0

#include &lt;iostream&gt;
using namespace std;

int main ()
{
  

  int a, b, c, d, z, f, g, l, i, j;
  int result;

  

  a = 5;
  b = 2;
  c = 10;
  d = 6;
  z = 7;
  f = 52;
  a = a + 3;
  g = 8;
  l = 1;
  i = 3;
  j = 4;

  result = a + b + c + d - z + f - g + l - i + j;

  
  cout &lt;&lt; result;

 
  return 0;
}

my second C++ program ever :D it equals 65 (i know its stupid but just thought id share it)


ghost's Avatar
0 0

skathgh420 wrote: (i know its stupid but just thought id share it)

Don't share it. It's stupid- wait, you know this. Why are you posting this?


kkoliver's Avatar
Member
0 0

This is the online class Michigan Tech University offers in c++. It's good because the professor is still teaching the class, posts videos of the classes, and writes tons of example code. All the course material is posted free for anyone.

http://www.csl.mtu.edu/cs2141/www/Home.html


ghost's Avatar
0 0

skathgh420 wrote: thank all of you for the suggestions, I have just completed my first program!

http://en.wikibooks.org/wiki/C_%26_C%2B%2B_X

there are so many beginner books to read, i bought and read two when i started out; C++ for dummies and Learn To Program With C++. The first one is a litle outdated but…