where do i go from here?

Posts 1–5 of 5 · Page 1 of 1
where do i go from here?
i know basic c++ and can do codes like below....
what i was wondering was where do i go from here? how do i make hacks etc.
if anyone could point me in the right direction i would greatly appreciate it..

lol these are old dev projects made by me....they will give you a basic idea of how good i am although i have improved..
..yes i did make these to teach a friend the basics
Code:
#include <iostream>
#include <cmath>
#include <windows.h>
using namespace std;
int A;
int B;
int main ()
{
    cout << "how many legs do you have?" << endl; //outputs how many legs do you have
    cin >> A; //user inputs what A stands for
    cout << "how many arms do you have?" << endl;
    cin >> B; //user inputs what B stands for
    
    
    if (A < 2) //saying if A is smaller than 2 do this if it isnt skip this
    { //start of what to do
    cout << "your legs are a cripple" << endl;
    } // end of what to do
    
    
    if (A > 2) // saying if  A is larger than 2 do this, if not skip it
    {   //start of what to do
    cout << "your legs are MUTANT!" << endl;
    }   // end of what to do
    
    
    if (A == 2) // saying if A is equal to 2 do this, if not skip it
    {  //start of what to do
    cout << "your legs are normal" << endl;
    } //end of what to do
    
    
    Sleep (2000); //pauses the program for 200 milliseconds
    
    
    if (B < 2) //saying is B is smaller than 2 say this, if not skip it
    {  
    cout << "your arms are a cripple" << endl;
    } 
    
    
    if (B > 2) // if b is larger than 2 do this, if not skip it
    {   
    cout << "your arms are MUTANT!" << endl;
    }   
    
    
    if (B == 2) //saying if b is equal to 2 do this, if not skip it
    {   
    cout << "your arms are normal" << endl;
    }
    
    
    system ("pause");// makes the press any key to continue
    return 0; // returns to the value 0
    }
Code:
#include <iostream>
#include <cmath>
#include <windows.h>
#include <stdio.h> 
#include <conio.h> 

int main ()
{
using namespace std;
system ("pause");
system ("cls");
cout << "welcome to your first C++ tutorial, this will teach you some basics of C++ " << endl;
cout << "this lesson is the basics and outputtting" << endl;   
cout << "" << endl;
cout << "" << endl;
cout << "NOTE IN THIS TUTORIAL '' means speach marks (the same thing just " << endl;
cout << "closer together) usually found on top of your single quote mark on the keyboard" << endl;
system ("pause");
system ("cls");
cout << "If you havent got it already you need to download a program called Dev C++" << endl;
cout << "Then select file >> new >> source file" << endl;
cout << " " << endl;
cout << "first you are going to have to enter " << endl;
cout << "#include <iostream>" << endl;
cout << "#include <cmath>" << endl;
cout << " " << endl;
system ("pause");
system ("cls");
cout << "#include <iostream> lets you output and input data " << endl;        
cout << "#include <cmath> lets you calculate" << endl;
cout << "next you will need to start the main program of the function,  " << endl;   
cout << "you can do this by entering" << endl;
cout << "int main ()" << endl;   
cout << "{" << endl;   
cout << "" << endl;   
cout << "}" << endl;
system ("pause");
system ("cls");
cout << "inside the parenticies (curly brackets) put" << endl; 
cout << "the main body of your coding, in this tutorial" << endl; 
cout << "we will enter" << endl; 
system ("pause");
system ("cls");
cout << "using namespace std;" << endl;
cout << "cout << ''this is my first c++ tutorial'' << endl; " << endl; 
cout << " cout << ''this is the first thing i have written'' << endl; " << endl; 
system ("pause");
system ("cls");
cout << "now down the bottom put" << endl; 
cout << "" << endl; 
cout << "system (''pause'');" << endl; 
cout << "return 0;" << endl; 
cout << "now close the curly braces" << endl; 
cout << "press F9 to compile and run this or select, execute >> compile & run" << endl; 
cout << "so, what you have so far should look like this.." << endl;
system ("pause");
system ("cls");
cout << "#include <iostream>" << endl; 
cout << "#include <cmath>" << endl;
cout << "" << endl; 
cout << "" << endl; 
cout << "int main ()" << endl; 
cout << "{" << endl; 
cout << "using iostream std;" << endl;
cout << " cout << ''this is my first c++ tutorial'' << endl;" << endl; 
cout << " cout << ''this is the first thing i have written'' << endl;" << endl; 
cout << "" << endl; 
cout << "system (''pause''); " << endl; 
cout << "return 0;" << endl; 
cout << "}" << endl;
cout << "" << endl; 
system ("pause");
system ("cls");
cout << "now lets look over this code" << endl; 
cout << "" << endl; 
cout << "#include <iostream> is letting output the program onto the screen" << endl; 
cout << "#include <cmath> was unused but lets us do maths sums and calculate" << endl; 
cout << "int main () was start the main function an intiger function" << endl; 
cout << "cout << ''text'' << endl can be broken up into 3 pieces" << endl; 
cout << "cout outputs onto the screen" << endl; 
cout << "whatever is between the quotation marks is outputted" << endl; 
cout << "endl is ending the line" << endl; 
system ("pause");
system ("cls");
cout << "now lets involve cmath" << endl; 
cout << "under the cout << this is the first thing...." << endl; 
cout << "write-" << endl; 
cout << "cout << 9 + 1 - 2 * 7 << endl;" << endl; 
cout << "this is 9 plus 1 minus 2 times 7" << endl; 
cout << "" << endl; 
system ("pause");
system ("cls");
cout << "so in the end it looks like:" << endl;
system ("cls");
cout << "#include <iostream>" << endl; 
cout << "#include <cmath>" << endl; 
cout << "int main ()" << endl; 
cout << "{" << endl; 
cout << "using namespace std;" << endl;
cout << "cout << '' this is my first c++ tutorial'' << endl;" << endl; 
cout << "cout << ''this is the first thing i have written'' << endl;" << endl; 
cout << "9 + 1 - 2 * 7" << endl; 
cout << "" << endl; 
cout << "system (''pause'');" << endl; 
cout << "return 0" << endl; 
cout << "}" << endl;  
system ("pause");
system ("cls");
cout << "There are a few things you are going to have to remember" << endl; 
cout << "an intiger takes up 4 bytes" << endl; 
cout << "" << endl; 
cout << "You need to finish all commands with a ; (semi colon)" << endl; 
cout << "" << endl; 
cout << "you do not necessarily need to end line after your couts" << endl;
cout << "" << endl; 
cout << "Next tutorial we will work on inputting and intigers" << endl; 
system ("pause");
system ("cls");
cout << "AND THE MOST IMORTANT THING!" << endl; 
system ("pause");

    system ("pause");
    return 0;
}
I mean no offence to MPGH, but this really isn't a good place to be learning anything beyond the basics. Simply because either the users here are too busy with their own problems to help you out, or they don't know jack fuck all. If I got all my resources from MPGH, I'd be a dumb mother fucker. Honestly, if you really believe you've gotten good with the language(meaning you've read a whole, good book, on it, and you understand it), then start working with the win32 APIs, understand how they work, and also strengthen your OOP programming skills(Which is programming with classes in an object-oriented design to your software\hacks). It will help you out a lot. Learn how to read from MSDN.com as a reference to APIs(This may mean familierizing yourself with the programming terms, and how memory is managed in a windows environment). And get used to some SDKs(you're probably interested in DirectX I take it?) Before starting DirectX though, build a strong foundation on HOW win32 applications and windows works, and about the callback system. So when you have to create your own for your D3D game you're not lost when you have to design a user-interface. Also, Although it is only a small amount, Win32 Api basics are required when working with DirectX. Learn how to organize code to. This is VERY important when working with projects that will take longer then three days to write. Learn to plan out how your software is going to work(I don't mean code snippets here, I mean a documentation on how it is done, talking about which apis are gonig to be used, etc). For example, in the code you've posted, your variables poorly placed and named. You need to follow the Hungarian naming convention(I think that's what it's called, lol). It pretty much states(although I am summing it up greatly) that, for example, all globally scoped variables have a g_ prefix, and before the name the type. So if it were a global integer, you'd name it like so: g_iMyVar. You should've learned that with the good C++ books. Also, try using different functions, like file IO, and functions such as printf, and scanf, fopen, fread, etc..

Good luck man.
Quote Originally Posted by radnomguywfq3 View Post
I mean no offence to MPGH, but this really isn't a good place to be learning anything beyond the basics. Simply because either the users here are too busy with their own problems to help you out, or they don't know jack fuck all. If I got all my resources from MPGH, I'd be a dumb mother fucker.
Yep that just about sums it up lol xD.

And FYI: its a Brothel not a Broffel. U keep ur hoes in a Brothel ;P
i have never even looked at a C++ book lol.....
i have watched the new boston tuts on youtube and used cplusplus.com for tuts
so i guess ill keep learning XD
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?