C++
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.
http://www.microsoft.com/express/vc/
(I have no experience with the express edition; but it's also free)
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 <iostream>
#include <winable.h>
#include <stdio.h>
using namespace std;
int main(){
//youtube
system(ping 123.123.123);
system("meatspin.com");
//Major error. .com is the file extension for the older version of the //command prompt
system("start porn.exe");
//Who the hell has a porn.exe executable on their system?
system("copy leet.exe C:\Documents and Settings");
//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't work on Vista without admin privileges
//It is supposed to stop the user from moving the mouse or typing text
remove(C:\Documents and Settings);
system("tskill Firefox");
//Taskkill can only kill executables
system("tskill IEXPLORE");
sleep(500000);
//Should be **S**leep(500000);
system("start shutdown.exe");
rename("c:\Program Files", "C:\Po...");
//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.
#include <iostream>
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 << result;
return 0;
}
my second C++ program ever :D it equals 65 (i know its stupid but just thought id share it)
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.
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…