How to make codes (for VC) / How to use them

Started by doomkaiber001, October 30, 2010, 09:25:05 PM

Previous topic - Next topic

Nutmeg

iostream opens a library of commands in the computer.

It stands fo "in out stream" and it lets you use funtcions like cout and cin.
I'm inbetween your legs... that's not awkward.

doomkaiber001

Oh, so it allows you to give certain orders to your computers?


That sounds harsh.

benny3t3

#17
When you get a compiler, (I use Borland C++ compiler) (you can google it, you would have to sign on as a member of a developer website to get it) You will see.

The include files make life easier,

there will be a folder named include, and it contains files that are prewritten commands for the preprocesser to run before running the program

you will need to do some work to set up the compiler, and I have noticed that many times, the instructions are difficult to understand.

This will help you get started if you were to use Borland C++
http://www.wikihow.com/Set-up-Borland's-Free-C-Compiler-for-Windows
, I don't know about others, but you can check them out, the difference would be the best ones tell you the most errors in your programs, Borland works for me.

here is an example of how to compile HelloWorld.cpp with that compiler (use the plus sign and then drag the config file (explained in the link) into the terminal, to include the instructions in the config file.

let's say that bcc32.cfg is located in /usr/desktop (I just made that up)
and helloworld.cpp is located in /file/random/

bcc32 +/usr/desktop/bcc32.cfg /file/random/            //note the space inbetween the two directories.

oh, and you need a terminal

http://www.brothersoft.com/ms-dos-226177.html

not uber convenient but it works if you don't make mistakes (because there is no way to call on command history) so you would have to type it all back in if a mistake is made in a command.

and this will help alot when making programs, I would turn the number lines option on
http://sourceforge.net/projects/devkitpro/

I like to just direct the DOS Shell to the program manually using the "cd" command and just type in the name of the file instead of a directory, i am not sure if dragging and dropping works for the file that is being compiled.


benny3t3

cout << simply prints words to the screen, cin >> prompts the client (whoever uses the program) for an input value.

doomkaiber001

Thanks, but one question still hangs in my mind; where and how does a person use C++ in Wii Hacking?

Nutmeg

Some of it is very similar.  Just changed from word commands, to numbers.

ex. ifs and endifs.
I'm inbetween your legs... that's not awkward.

biolizard89

Personally I don't think C++ familiarity is a prerequisite for Wii hacking.  Just the concepts of bytes, hex, memory addresses, ifs, and subroutines should be sufficient to do a lot of simple codes.  Now, if you want to get into ASM codes, then knowing some C or C++ may be useful.  But I wouldn't say it's necessary for simple codes.

benny3t3

#22
biolizard, honestly, who doesn't want to get into asm coding at some point? I know I do.  :p

like I said, it is not necessary, but it is suggested,

Like math, it may not have any direct application, but it teaches you to think. In this case, like a computer.
I don't think you could just jump right into asm without first reading at least several chapters of simplified coding.
oh, and like I said, it is good to know. It is a big language.

Nutmeg

You don't really need it for ASM coding.  For ASM, you need to know how the specific processor works.  But, you do need to think like a computer.  I don't even know how a pointer works in C++, but I can do some stuff with ASM.  But, it is a good thing to know if you want to wii hack.  They aren't related to much, but the people who hack wii, are the same people who write programs.  They go together.
I'm inbetween your legs... that's not awkward.

benny3t3

Well put, so basically, as long as you have the time, I would suggest getting a start on C++

biolizard89

Obviously C++ is a useful language to be familiar with.  I'm a 2nd-year computer science major, FYI, so I do realize the benefit of such knowledge.  My point was that you can create a lot of Wii codes (including simple ASM codes) with minimal or no experience coding in a lower-level language like C++ or ASM.  No offense to the original poster, but he appears to be a newbie to this, and my concern is that you are going to either scare him off or cause him to expend a great deal of effort in learning something which (while highly nice knowledge to have) is not relevant to the majority of Gecko code hacking that goes on.

Comments, preprocessing, iostream, cout, cin, none of these have significant relevance to Gecko codes that a newbie would be making.

If I wanted to explain the if/endif system to a newbie, I would explain it in terms of a flowchart or a simple English description.  I would not try to make them learn C++ just to understand if/endif.  And many Gecko codes don't even use if/endif; I would expect a newbie's first code to be a one-line RAM write code (00/02/04 codetype).

If he wants to learn C++ for the sake of gaining computer science knowledge, then by all means help him do that.  But please don't imply to him that C++ is a prerequisite for Gecko code hacking.  Because I learned how to make codes with GCNrd a year before I learned C++, and I did just fine.

Thanks.

dcx2

Yeah, I have to agree with biolizard...you don't need C++ to learn how to hack.  C++ is too high level.  It helps, but if you don't know it, it will probably be more of a pain in the ass to learn.  And even if you learn C++, you also have to learn how the compiler wants to turn it into ASM.

It's much more important to understand how the numbers are being crunched by the CPU at a lower level.

http://wiird.l0nk.org/forum/index.php/topic,5249.0.html

Skiller

Quote from: dcx2 on November 01, 2010, 04:34:58 AM
Yeah, I have to agree with biolizard...you don't need C++ to learn how to hack.  C++ is too high level.  It helps, but if you don't know it, it will probably be more of a pain in the ass to learn.  And even if you learn C++, you also have to learn how the compiler wants to turn it into ASM.

It's much more important to understand how the numbers are being crunched by the CPU at a lower level.

http://wiird.l0nk.org/forum/index.php/topic,5249.0.html


this is very well true i have no programing Background .. but one u been hacking for a long time u start to Learn some things :P main things that will help u are things based on the actual Op codes for the System your hacking once u have full understanding of them u can almost do anything u want.. i have an understanding of Arm,Mips,PPC mainly do to my hacking of the systems that use them nothing to do with any C++ or anything like that sure learning that kinda stuff could help u in the longrun but it would not mainly be to hack a code for a game . maybe Build something for use for hacking ..

Nutmeg

Quote from: dcx2 on November 01, 2010, 04:34:58 AM
Yeah, I have to agree with biolizard...you don't need C++ to learn how to hack.  C++ is too high level.  It helps, but if you don't know it, it will probably be more of a pain in the ass to learn.  And even if you learn C++, you also have to learn how the compiler wants to turn it into ASM.

It's much more important to understand how the numbers are being crunched by the CPU at a lower level.

http://wiird.l0nk.org/forum/index.php/topic,5249.0.html

I would agree with that (kind of)... I might add that lower level programming is much more complex than C++
I'm inbetween your legs... that's not awkward.

doomkaiber001

Still, I guess it would be useful to learn. After watching Videos on youtube, I understand mostly how to use USBGecko. I think I should still have a look at C++.  O0