HelpNeed help with where to start!

Posts 1–6 of 6 · Page 1 of 1
Need help with where to start!
Hey there,

So basically, I'm looking for a place to start with C++, specifically, to code hacks for games. Now wait a second, I don't think I can read 1 tutorial and make a hack, or think I will learn all this over night. However, I am looking for someone to perhaps help me out and perhaps give me a little understanding on some stuff while I'm learning. Perhaps through Skype, XMPP, or PM?

Now, the actual issue is, I've looked at many books, books that are supposedly for "beginners", but I read the first page, and already get confused. I try typing out the code myself, and even with comments, it sometimes uses terms I don't even understand or I get errors in my code that aren't explained in the book.

I've looked through many books and eBooks, and they all just seem too complicated. So I turned to tutorials online, via here, other forums, and YouTube. The issue with those is they either; Never go into detail or explain why stuff does what it does, They assume you have some sort of experience with code (Which is fair enough), or you post in the comments saying you don't really understand and get called a "Noob", "******", "Scrub", etc... and no one actually give any good feedback or suggestions.

I hope someone is able to help me out.

Thanks and Regards.

EDIT:
Oh, also thought I would add, no, I'm not one of those kids that intends to copy/paste or learn as quick as possible to code hacks and sell them for money. That's just not my thing. I'm more into it for educational purposes and then just keeping my end result between me and friends.
If you can't read the books and you can't do the online video tutorials the only other option for you is either take a class or give up....

If you get confused on the first page of C++

Code:
#include <iostream>

using namespace std;

int main()
{
	cout << "Hello World!" << endl;

	return 0;
}
If that's confusing for you then you probably won't get anywhere... Go do some stuff in autoit or AHK. It's a hell of a lot easier.

What books did you try to read and what online tutorials did you try to watch?
What parts are you getting confused on?

Edit:
After re-reading, do you mean you need help on where to start hacking? If that's the case you need to learn C++ first... As in, pick up book, read it, understand it.
Quote Originally Posted by InunoTaishou View Post
If you can't read the books and you can't do the online video tutorials the only other option for you is either take a class or give up....

If you get confused on the first page of C++

Code:
#include <iostream>

using namespace std;

int main()
{
	cout << "Hello World!" << endl;

	return 0;
}
If that's confusing for you then you probably won't get anywhere... Go do some stuff in autoit or AHK. It's a hell of a lot easier.

What books did you try to read and what online tutorials did you try to watch?
What parts are you getting confused on?

Edit:
After re-reading, do you mean you need help on where to start hacking? If that's the case you need to learn C++ first... As in, pick up book, read it, understand it.
I understand that;
'#include <iostream>' is including <iostream> I just don't know exactly what iostream is. User input In and Out?
'using namespace std;' No clue what that means tbh.

'int main() {}' is the main function?

'cout << "Hello World!" << endl;' is console out and printing 'Hello World!' and endl means end line? I just don't understand the less than symbols.
'return 0;' Checks to see if the code actually ran? I think it's used for debugging?


Honestly, I'm just assuming that from what I know from VB.NET.
Am I on the right track?
Quote Originally Posted by HyperShifter View Post
I understand that;
'#include <iostream>' is including <iostream> I just don't know exactly what iostream is. User input In and Out?
'using namespace std;' No clue what that means tbh.

'int main() {}' is the main function?

'cout << "Hello World!" << endl;' is console out and printing 'Hello World!' and endl means end line? I just don't understand the less than symbols.
'return 0;' Checks to see if the code actually ran? I think it's used for debugging?


Honestly, I'm just assuming that from what I know from VB.NET.
Am I on the right track?
using namespace std; lets the compiler know where you are getting members of the std class. Without it you would have to write
Code:
std::cout << "Hello World!" << std::endl
This was covered in Chapter 3 of the book I read, and chapters 1 and 2 weren't very long...

Code:
Careful readers will note that this program uses std::cout and std::endl rather
than just cout and endl. The prefix std:: indicates that the names cout and endl
are defined inside the namespace named std. Namespaces allow us to avoid
inadvertent collisions between the names we define and uses of those same names
inside a library. All the names defined by the standard library are in the std
namespace.
One side effect of the library’s use of a namespace is that when we use a name
from the library, we must say explicitly that we want to use the name from the std
namespace. Writing std::cout uses the scope operator (the :: operator) to say
that we want to use the name cout that is defined in the namespace std. § 3.1 (p.
82) will show a simpler way to access names from the library.
<< is a stream insertion operator, it inserts the string "Hello World!" into the stream.
>> is a stream extraction operator, it extracts a value from the stream.

If you wanted to you could do the same thing with sprintf, which is derived from C.

Instead of endl you can use \n which is called an escape character.

Go pick up a book is going to be everyone's advice, for good reason.

To Know: Classes, data types, pointers, arrays, the fundamentals of the C++ programming language.

Once you've got a good concept of that if you want to do some game hacking it's a hell of a lot easier to get started and understand what you're doing. And for things you run into and don't understand you will be able to figure it out. (For example, for the longest time I thought DWORD was some kind of special data type. When I actually started learning the language I realized what "typedef unsigned long DWORD" actually mean)
Quote Originally Posted by InunoTaishou View Post
using namespace std; lets the compiler know where you are getting members of the std class. Without it you would have to write
Code:
std::cout << "Hello World!" << std::endl
This was covered in Chapter 3 of the book I read, and chapters 1 and 2 weren't very long...

Code:
Careful readers will note that this program uses std::cout and std::endl rather
than just cout and endl. The prefix std:: indicates that the names cout and endl
are defined inside the namespace named std. Namespaces allow us to avoid
inadvertent collisions between the names we define and uses of those same names
inside a library. All the names defined by the standard library are in the std
namespace.
One side effect of the library’s use of a namespace is that when we use a name
from the library, we must say explicitly that we want to use the name from the std
namespace. Writing std::cout uses the scope operator (the :: operator) to say
that we want to use the name cout that is defined in the namespace std. § 3.1 (p.
82) will show a simpler way to access names from the library.
<< is a stream insertion operator, it inserts the string "Hello World!" into the stream.
>> is a stream extraction operator, it extracts a value from the stream.

If you wanted to you could do the same thing with sprintf, which is derived from C.

Instead of endl you can use \n which is called an escape character.

Go pick up a book is going to be everyone's advice, for good reason.

To Know: Classes, data types, pointers, arrays, the fundamentals of the C++ programming language.

Once you've got a good concept of that if you want to do some game hacking it's a hell of a lot easier to get started and understand what you're doing. And for things you run into and don't understand you will be able to figure it out. (For example, for the longest time I thought DWORD was some kind of special data type. When I actually started learning the language I realized what "typedef unsigned long DWORD" actually mean)
"using namsepace std;" along with all the other namespaces are very bad things to get used to.
edit: removed.
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us