EvilZone

Programming and Scripting => C - C++ => : Chef June 21, 2013, 04:19:58 PM

: Day 1 of me learning C++
: Chef June 21, 2013, 04:19:58 PM
Hello guys, I started on C++ last night, here is what I wrote and put all my notes so I remember and know what each line is for.


Let me know if my notes are accurate, or if there are any mistakes or if anything I should just know! Thank you!


: (cpp)
//Test one using C++ by Chef

//Lines beginning w/ # are directives for the preprocessor.
#include <iostream>
// Tells the preprocessor to include iostream standard file.
// iostream includes declarations of basic input-output library
using namespace std;
//namespace std(standard) is the entity in which we are writing code.
int main ()
// beginning of the main function, start of execution, all C++
// programs must have a main function, makes this function #1
{
   //cout functions requires iostream. This is a statement line.
   cout<<"Hello World!";
   //semicolon is the end of a statement in C++.
   //Most common syntax error is not using semicolon.
   return 0;
   //return statement causes main function to finish.
}
//cout is the standard output stream in C++.
//cout is always declared in the iostream standard file within the
//std namespace.






//The code above has the same functions as the one below, just written differently.
#include <iostream> using namespace std; int main () {cout<<"Hello People!"; cout <<"Testing 1 2 3!"; return 0;}
: Re: Day 1 of me learning C++
: Fur June 21, 2013, 04:23:18 PM
Code can be posted in a  [ code=Cpp] tag (remove the space).
: Re: Day 1 of me learning C++
: dense June 21, 2013, 04:33:48 PM
The last line is incorrect, preprocessor directives need a line for themselves. Other than that, if you actually understand each line of the code then you're at a great start  ;)
: Re: Day 1 of me learning C++
: Phage June 21, 2013, 04:34:28 PM
I don't hope you are going to use Evilzone as a diary and post your progress everyday?

- lol, you have made a Hello, World! in C++ there's not much to explain about that. Otherwise what dense wrote.
: Re: Day 1 of me learning C++
: Chef June 21, 2013, 04:49:25 PM
No I'm not going to use EZ as a diary. I just want to, since its my start, ask y'all make sure I'm doing it correctly. I'll only have questions as I go along.
 
Could you all explain what line is incorrect? I thought #include <iostream> was the preprocessor directive?
: Re: Day 1 of me learning C++
: dense June 21, 2013, 04:53:43 PM
The last one, #include <iostream> has to have it's own line.
:
#include <iostream>
using namespace std; int main () {cout<<"Hello People!"; cout <<"Testing 1 2 3!"; return 0;}
: Re: Day 1 of me learning C++
: Chef June 21, 2013, 04:59:15 PM
The last one, #include <iostream> has to have it's own line.
:
#include <iostream>
using namespace std; int main () {cout<<"Hello People!"; cout <<"Testing 1 2 3!"; return 0;}

Oh okay, I understand now. It didn't say anything about that in the tutorial! I was actually written the same way.

Now I know! ;)
: Re: Day 1 of me learning C++
: ande June 21, 2013, 05:03:40 PM
Code can be posted in a  [ code=Cpp] tag (remove the space).

Fixed OP's post.


I don't hope you are going to use Evilzone as a diary and post your progress everyday?

- lol, you have made a Hello, World! in C++ there's not much to explain about that. Otherwise what dense wrote.

Why not? I think its great. Probably useful for others learning C++.


No I'm not going to use EZ as a diary. I just want to, since its my start, ask y'all make sure I'm doing it correctly. I'll only have questions as I go along.

Use EZ as your diary if you like. Maybe not EVERY day tho. Depends how much work you put into each day I guess. :)
: Re: Day 1 of me learning C++
: Chef June 21, 2013, 05:06:06 PM
Fixed OP's post.


Why not? I think its great. Probably useful for others learning C++.


Use EZ as your diary if you like. Maybe not EVERY day tho. Depends how much work you put into each day I guess. :)

Pretty much what I was gonna do. lol




I'm pretty damn hooked on this C++ right now. I wish I was at home, I downloaded Microsoft Visual Studios last night which is pretty awesome. 30 day trial though. :(  Any others out there I could use in replace of MS?I haven't downloaded a compiler either yet!




Staff note: Please dont double post.
: Re: Day 1 of me learning C++
: ande June 21, 2013, 05:18:47 PM
Pretty much what I was gonna do. lol


I'm pretty damn hooked on this C++ right now. I wish I was at home, I downloaded Microsoft Visual Studios last night which is pretty awesome. 30 day trial though. :(  Any others out there I could use in replace of MS?I haven't downloaded a compiler either yet!


Staff note: Please dont double post.


You can download the express edition of visual C++, no limitations there. It is of course not as massive as the entire visual studio package but it gets the job done. Alternatively you can use something like code::blocks, Dev-C++ or netbeans c++ package.
: Re: Day 1 of me learning C++
: Chef June 21, 2013, 05:22:47 PM
(http://www.cplusplus.com/doc/tutorial/variables/scope_of_variables.gif)
The global variables are the variables you "declared to be those variables", right?
And awesome, I will download that tonight!
 
And what? Did I double post?
: Re: Day 1 of me learning C++
: ande June 21, 2013, 05:33:49 PM
(http://www.cplusplus.com/doc/tutorial/variables/scope_of_variables.gif)
The global variables are the variables you "declared to be those variables", right?
And awesome, I will download that tonight!
 
And what? Did I double post?

You decide what variables are global.

Yeah, you posted two posts after each other. No biggie.
: Re: Day 1 of me learning C++
: Neea June 21, 2013, 06:21:51 PM
My advice is, don't abuse of global variables.... sure as you learn they're easier to just declare them, but most of them can be replaced with local variables. Also you definitely need to learn the difference between them. Global variables exist thorough the execution of your program, meaning if you modify their value in a function, that value will persist as you return in the main body (also you will learn all about functions soon), whereas if you have a local variable in a function it's value will no longer exist after that function finishes its execution ..... unless you explicitly return it.


Example:



: (Cpp)
#include <iostream>
using namespace std;


int globalVariable;


void myFunction(){
    int localVariable=34;
    globalVariable++; //or globalVariable = globalVariable+1;
}


int myFunct(){
    int var = 34;
    return var;
}
int main(){
    globalVariable = 0;
    cout << "Global variable = " << globalVariable << endl;  // will print 0
    myFunction();
    cout << "Global variable = " <<globalVariable << endl;  //will print 1
    cout << " Local variable = " << localVariable << endl; //you will get a warning of undifined variable, will print out trash that is at that memory address
    int localVar = myFunct();
    cout << "LocalVar = " << localVar << endl; // will print 34


    return 0;


}
: Re: Day 1 of me learning C++
: Chef June 21, 2013, 06:24:36 PM

Okay so I just got introduced to strings from the tutorial.


: (cpp)
//strings can be written w/ out an initial value but given one
// during execution.
#include <iostream>
#include <strings>
using namespace std;
int main ()
{
   string mystring;
   mystring = "This is my no value string.";
   cout << mystring <<endl;
   mystring = "My string now has a value.";
   cout << mystring << endl;
   return 0;
}


When starting a string that has no value but gets a value during execution why does it start w/ "string mystring;"?


Why does the string end w/ "cout << mystring << endl;"? What is "endl;"?


Thanks guys.

Staff Note: Code tags bro lol.
: Re: Day 1 of me learning C++
: theifyppl June 22, 2013, 06:02:58 AM
Okay so I just got introduced to strings from the tutorial.



//strings can be written w/ out an initial value but given one
// during execution.
#include <iostream>
#include <strings>
using namespace std;
int main ()
{
   string mystring;
   mystring = "This is my no value string.";
   cout << mystring <<endl;
   mystring = "My string now has a value.";
   cout << mystring << endl;
   return 0;
}


When starting a string that has no value but gets a value during execution why does it start w/ "string mystring;"?


Why does the string end w/ "cout << mystring << endl;"? What is "endl;"?


Thanks guys.


The "string mystring;" line is declaring a string variable named "mystring."  The next line is assigning a value to that string.  It's not mandatory that you do it that way.  You could simply just do it all in one line:


: (cpp)
string mystring = "This is my string";

As for your second question, "endl;" tells the standard output to end the line here.  So, for example, if you had:


: (cpp)
cout << "Hello" << endl << "World";

The output would be:


Hello
World
: Re: Day 1 of me learning C++
: Sparky712 June 22, 2013, 01:51:08 PM
to follow on from theifyppl's post, you have no doubt seen at least one escape sequence.
: (CPP)
mystring = "this is a string with a newline escape\n" ;


as you can see.... you may either use an endl; which ends the current line and starts a new one, or you may use \n which starts a new line.
: Re: Day 1 of me learning C++
: Chef June 22, 2013, 05:22:15 PM
Literals are the most obvious kind of constants. They are used to express particular values within the source code of a program. We have already used these previously to give concrete values to variables or to express messages we wanted our programs to print out, for example, when we wrote:

 
a = 5;
the 5 in this piece of code was a literal constant.
 
This is copy/pasted from the tutorial i'm going through. My question is, isn't "5" also the variable? And "a" the variable identifier?

I got a hang of how to write a code to display text, and solve math problems along w/ write strings but now I'm getting hit in the face w/ constants...


Are my notes correct? Could someone explain why I needed to use "int main ()" and its purpose and when I need it?
:
//Introduction to strings in C++


#include <iostream> //the basic input/output library for C++
#include <string> //the library to be able to use strings

using namespace std; //this is the entity in which we are writing code

int main ()
{
string mystring = "Hello World!"; //string is the variable and mystring is the variable identifier
cout << mystring; //cout is the basic statement line commonly used in C++
return 0; //return 0; tells the computer the code is over
}[code]
: Re: Day 1 of me learning C++
: theifyppl June 22, 2013, 06:33:51 PM
5 is a literal constant because it won't change. You typed the value directly into the program. It sounds weird and obvious, but 5 is going to stay 5.

a = 5; is assigning the value of the literal constant 5 to the variable "a".

b = 0;

0 is a literal constant, I literally typed 0 into the program and 0 is going to stay 0. BUT, the value of b doesn't have to stay 0.

b++;

Now b is 1. The value of b isn't a literal constant. It's not constant at all. Am I making sense?

As for your other question, "int main()" is the main function of your program. It's the function that executes when your program is ran. The reason there's an "int" in front of it is because the function returns an integer (in your case, it returns 0). You'll understand this more when you get into functions. But for now, just know you'll need it in every program you write. The number it returns can be like a status code. Usually, when a program's main function returns 0, it means everything ran smoothly. But once you get into error handling, returning 1 (or some other status code) could mean that an error occurred.
: Re: Day 1 of me learning C++
: Chef June 22, 2013, 06:38:55 PM
Very nice response. I'm getting a hang of this!
I got it I will just keep using "int main ()" when starting to write until I get into the depth of functions.
My question from what you wrote is when you said:
b = 0;
b++; So by putting "++" next to a variable in the line of code it increases the value by 1?
 
Below is from my tutorial. How in the hell do they all equal the same value of 75? That is crazy!

75 //int
0113 //octal
0x4b //hexadecimal

All of these represent the same number: 75 (seventy-five) expressed as a base-10 numeral, octal numeral and hexadecimal numeral, respectively.
: Re: Day 1 of me learning C++
: theifyppl June 22, 2013, 06:54:48 PM
Yes, in C++ and in some (if not most) other common languages, the "++" operator increases the value by 1. "b++;" is equivalent to "b = b + 1;". This is the idea behind the name of C++. It's predecessor (although still highly used) was a programming language called C. C++, hence the name, was supposed to be sort of the sequel of C (C + 1).

And ah, I see you've discovered other numbering systems besides base-10. I wouldn't stress about any of that right now because that's a whole other topic on it's own. You should just know that base-10 (our normal numbering system) is called base-10 because it goes from 0-9 (ten digits). Octal is base-8, and hexadecimal is base 16. Hexadecimal is 0-9, but it's base-16, so it needs six other "digits." To express those, it uses A, B, C, D, E, and F after 0-9. You can research how to read such values and convert them to base-10 if you'd like. There's also binary (base-2) if you want to research how to read and convert that as well. But I wouldn't worry too much about it, for now at least.
: Re: Day 1 of me learning C++
: Chef June 22, 2013, 07:06:32 PM
Yeah I decided to read that part of the tutorial, still not fully grasp it, and move onto the next. I just started using the escape codes. Backlash has a whole entire new meaning to me now! Lol.
Below is from the tutorial. I want to know the point of changing a (char type) to wide characters? It's basically just changing the font right?
 
Finally, if we want the string literal to be explicitly made of wide characters (wchar_t type), instead of narrow characters (char type), we can precede the constant with the L prefix:

 
L"This is a wide character string"

 Wide characters are used mainly to represent non-English or exotic character sets

So here is my new question! It did not explain to me what "double" is or when I should use it! Any thoughts?
:
   
//Below we will be defining constants \
 
this feature is handy when it comes to memory-consuming \
 
variables like 3.14159
   
#include <iostream>
 
#include <string>
 
#define PI 3.14159 //#define is a directive for the preprocessor
 
#define NEWLINE '\n'
 
using namespace std;
 
int main ()
   
{
     double r=5.0; //this is the radius
 
   double circle;
   
   circle = 2 * PI * r;
 
   cout << circle;
 
   cout << NEWLINE;
     return 0;
   
}
 
: Re: Day 1 of me learning C++
: theifyppl June 22, 2013, 07:22:42 PM
A double is a double-precision floating point number. A "float" variable type is a value that allows decimal points, like "1.78". A double is the same thing, but with two times the precision.

For simple stuff like this, feel free to google it. You'll get a much faster response than posting here and waiting for someone to write back. Take a look at this: http://stackoverflow.com/questions/2386772/difference-between-float-and-double (http://stackoverflow.com/questions/2386772/difference-between-float-and-double)

The answer given to the question answers your question very well.

Edit: Sorry, I didn't see the other part of your post, but I'm sure you can find an answer with google as well. Not that I won't help you, I just haven't ever needed to use those.
: Re: Day 1 of me learning C++
: Chef June 22, 2013, 07:25:03 PM
I read that link. If double is so much more precise shouldn't I just always use it over float?
 
Also, does anyone know how to execute the code I wrote using MS Visual C++ 2010?
: Re: Day 1 of me learning C++
: dense June 23, 2013, 12:41:22 AM
If double is so much more precise shouldn't I just always use it over float?

Sure, but it's more expensive in terms of memory.
: Re: Day 1 of me learning C++
: techb June 23, 2013, 07:18:35 AM
Sure, but it's more expensive in terms of memory.

Not just memory, but math involving it too can impact speed and performance. Imagine games using math involving nth places when rendering a vertex matrix of a map, you would get like 5fps. In programming it is up to the coder to decide appropriate datatypes.
: Re: Day 1 of me learning C++
: Chef June 23, 2013, 07:56:52 AM
Not just memory, but math involving it too can impact speed and performance. Imagine games using math involving nth places when rendering a vertex matrix of a map, you would get like 5fps. In programming it is up to the coder to decide appropriate datatypes.

And now it all makes since when I'd hear someone say "This game is coded like shit."
Lol!
: Re: Day 1 of me learning C++
: waspxor June 24, 2013, 07:32:41 PM
I would advise you dive straight into using cstrings or char arrays.
Experience tells me cstrings are something you will see a large amount of in any C / C++ environment.


Personally I strongly prefer them to strings. Try both out and see which you like more~
: Re: Day 1 of me learning C++
: Chef June 24, 2013, 08:18:25 PM
I would advise you dive straight into using cstrings or char arrays.
Experience tells me cstrings are something you will see a large amount of in any C / C++ environment.


Personally I strongly prefer them to strings. Try both out and see which you like more~
Roger that. I just got introduced to string streams last night...
: Re: Day 1 of me learning C++
: bluechill June 26, 2013, 01:32:40 AM
Experience tells me cstrings are something you will see a large amount of in any C / C++ environment.

In my experience that isn't true but it probably varies a lot.  C++ code will almost entirely use C++ strings and then use c_str() to convert when necessary, C code will of course, use C strings.

Personally I strongly prefer them to strings. Try both out and see which you like more~

"like" is not a good judge here.  C++ strings are *always* better than C Strings (char* and char[]).  You can always convert from a C++ string to a C string if you need to (or want to....) but C++ strings have so much more useful features like size(), substr(), insert(), including auto managing memory of the buffer for you, something you would have to manually do with C strings (malloc and realloc is a pain!).
: Re: Day 1 of me learning C++
: Chef June 26, 2013, 04:26:57 AM
In my experience that isn't true but it probably varies a lot.  C++ code will almost entirely use C++ strings and then use c_str() to convert when necessary, C code will of course, use C strings.

"like" is not a good judge here.  C++ strings are *always* better than C Strings (char* and char[]).  You can always convert from a C++ string to a C string if you need to (or want to....) but C++ strings have so much more useful features like size(), substr(), insert(), including auto managing memory of the buffer for you, something you would have to manually do with C strings (malloc and realloc is a pain!).
So in C++ there are C strings and C++ strings? Oh lord, this is gonna be a pain to learn.
: Re: Day 1 of me learning C++
: str0be June 26, 2013, 06:36:08 AM
Oh lord, this is gonna be a pain to learn.


Yes, it will. And not even in a "trial by fire" sort of way. C++ is a language designed to be used by a team of professional developers per project. Judging from your earlier posts, you're a beginner to programming. Do yourself a favor and start with something simpler. I'd suggest going with pure C first, as waspxor hinted at. From there, you can move to C++ if you wanted to. No time wasted.
: Re: Day 1 of me learning C++
: vezzy June 26, 2013, 09:05:03 AM
Actually, I recommend he keep on going. Why should he be dissuaded from so early on? If he's able to grasp C++ to a passable level, then he'll have a very solid foundation for other declarative languages along the way. It's not going to be easy, and he'll have to deal with cryptic error messages, pointers, memory management, but it's worth it.
: Re: Day 1 of me learning C++
: IFailStuff June 27, 2013, 01:54:27 AM
Use EZ as your diary if you like. Maybe not EVERY day tho. Depends how much work you put into each day I guess. :)

I agree so much :D
: Re: Day 1 of me learning C++
: Uriah June 27, 2013, 07:59:01 AM

Yes, it will. And not even in a "trial by fire" sort of way. C++ is a language designed to be used by a team of professional developers per project. Judging from your earlier posts, you're a beginner to programming. Do yourself a favor and start with something simpler. I'd suggest going with pure C first, as waspxor hinted at. From there, you can move to C++ if you wanted to. No time wasted.
Whoa, what? I say keep going strong with c++. All that language changing and anxiety only makes you weaker.
: Re: Day 1 of me learning C++
: Chef June 27, 2013, 05:31:14 PM
Yeah I'm doing my best to stick w/ C++. It's really hard when working 50+ hours a week though...
: Re: Day 1 of me learning C++
: str0be June 27, 2013, 09:11:17 PM

I'm not saying "Don't learn C++".


Actually learning how to program before tackling a language designed for experienced programmers is the better path to take. You can learn something simpler in a fraction of the time. It would make you a better student of C++ and a better programmer overall. Multiple languages is not weakness.
: Re: Day 1 of me learning C++
: Chef June 27, 2013, 09:37:01 PM
What would you recommend me starting with?
: Re: Day 1 of me learning C++
: str0be June 27, 2013, 10:02:19 PM
I recommend plain C to any beginner. It is a small language with a big influence: http://en.wikipedia.org/wiki/Category:C_programming_language_family (http://en.wikipedia.org/wiki/Category:C_programming_language_family)



: Re: Day 1 of me learning C++
: Chef June 27, 2013, 10:28:37 PM
I do want to eventually get into hacking, white hat and black hat. I want to have a vast knowledge around it all. After learning C, my route will head where?
: Re: Day 1 of me learning C++
: theifyppl June 27, 2013, 10:41:47 PM
I do want to eventually get into hacking, white hat and black hat. I want to have a vast knowledge around it all. After learning C, my route will head where?


Well, wherever you want it to go.  There are a ton of different programming concepts you can use and apply to hacking/cracking/etc.  If you're interested in programming malware, you could look into socket programming in order to create client/server applications that communicate over the internet.  That way, if you can get one of the ends on the victim's computer, they can communicate and you can program it to do whatever you want.  You could also learn about hardware hooks, to use a keyboard hook to code a keylogger and email you back the logs.  You could learn about HTTP libraries in order to gather information from websites.  There's so many different ways to approach it. 
: Re: Day 1 of me learning C++
: Chef June 28, 2013, 05:18:26 PM

Well, wherever you want it to go.  There are a ton of different programming concepts you can use and apply to hacking/cracking/etc.  If you're interested in programming malware, you could look into socket programming in order to create client/server applications that communicate over the internet.  That way, if you can get one of the ends on the victim's computer, they can communicate and you can program it to do whatever you want.  You could also learn about hardware hooks, to use a keyboard hook to code a keylogger and email you back the logs.  You could learn about HTTP libraries in order to gather information from websites.  There's so many different ways to approach it. 

Yeah I know there are so many different ways to approach it! It's causing me to feel lost on what to do!
I need guidance! Lol
: Re: Day 1 of me learning C++
: theifyppl June 29, 2013, 12:57:13 AM
Yeah I know there are so many different ways to approach it! It's causing me to feel lost on what to do!
I need guidance! Lol


My advice is to choose what you're most interested in.  You will have much more fun and learn faster if you're learning something you think is cool.  For example, I've always thought that socket client/server applications were especially cool.  So you can guarantee that when I'm learning a new language, programming a client/server application is at the top of my to-do list.  That being said, you don't even need to worry about this stuff until you're ready to move on from the basics of programming. 
: Re: Day 1 of me learning C++
: Neea June 29, 2013, 06:13:47 PM

Yeah I know there are so many different ways to approach it! It's causing me to feel lost on what to do!
I need guidance! Lol


C++  = C + oop extension and pretty makeup lol


Just get the basics done first ... like operators, basic types, functions, parameters, then hit arrays, matrix, lists, try learning basic algorithms (you need this in any programming language), learn a sorting method or 2, take a look on graphs for general knowledge, try out recursion, backtracking, learn about different approaches (basic C) ..... then if you have a thing for oop study objects, classes, containers, design patterns and such (and thats c++) or if you wanna have fun with network connections, ip addresses, sending packs etc learn about processes, fork(), zombies, daemons, threads, sockets, UDP, TCP , client/server apps, peer-to-peer appls etc etc ... So many possibilities lol


You're gonna find these in any programming language, master them in C/C++ and you're gonna master them anywhere. You definitely get a first hand encounter with the "behind the scenes" in C/C++ rather than using any other high level language.


Ofc if you wanna be more hands on (and probably somewhat masochistic for a newbie in programming), learn assembly  ;)
: Re: Day 1 of me learning C++
: Chef June 29, 2013, 06:57:31 PM
That is quiet a lot and I am so interested in getting to learn all of that. Right now I am focused on learning C++. What all must I know to alter, attack, hack, edit, a website?
I currently have a website and I want to test out my abilities(future abilities) on it.
Thanks!
: Re: Day 1 of me learning C++
: Uriah July 01, 2013, 05:34:01 AM
When you say website im going to assume you really did mean website and not server stuff.

If your trying to attack a website, learn how to create one first. For that you will need to know at least php/sql and html, but also some javascript could help. C++ has little place there afiak but im probably wrong, since some of those languages are built on c++. But it would likely be pointless and overly complicated to use c++ for it.

What i do know you can use c++ to do as far as hacking websites go are things like vulnerability scanners, page phishing, ddos, and other tools. But not usually for direct hacking, i dont think. You need to know web languages for that.

If you do intend to learn those, some common vulnerabilities you might want to search include: sqli, lfi/rfi, csrf, and xss. However, any code can be exploited more easily when you actually understand how it potentially works.

Also, i think you need to learn the art of sticking to one thing at a time. Stick with c++ and dont worry about web programming languages, unless that's really what you intended to do in the first place. At most, use c++ to create tools like I wrote above.
: Re: Day 1 of me learning C++
: Chef July 01, 2013, 05:06:21 PM
When you say website im going to assume you really did mean website and not server stuff.

If your trying to attack a website, learn how to create one first. For that you will need to know at least php/sql and html, but also some javascript could help. C++ has little place there afiak but im probably wrong, since some of those languages are built on c++. But it would likely be pointless and overly complicated to use c++ for it.
And I am interested in server stuff as well. I mean I don't want any stone unturned. Basically my outlet into the hacking world is through all these ebooks I downloaded. There are quite a bit of them but I don't mind the time investment in reading them.

What i do know you can use c++ to do as far as hacking websites go are things like vulnerability scanners, page phishing, ddos, and other tools. But not usually for direct hacking, i dont think. You need to know web languages for that.

If you do intend to learn those, some common vulnerabilities you might want to search include: sqli, lfi/rfi, csrf, and xss. However, any code can be exploited more easily when you actually understand how it potentially works.

Also, i think you need to learn the art of sticking to one thing at a time. Stick with c++ and dont worry about web programming languages, unless that's really what you intended to do in the first place. At most, use c++ to create tools like I wrote above.

Your right about sticking to one thing. I been reading a couple very in depth ebooks on C++. I work 48 hours a week so whenever I have free time to develop my knowledge w/ hacking I occasionally do find myself trying to take in everything at once. As far as a web programming language to choose, I will tackle that when the time comes.

Thanks everyone for helping me out. I am sure this thread will help many new community members.