Forum Replies Created

ShikhaTan Member

Well if you’re going to learn it all by yourself, it’s going to need quite some determination…

Most people just think it’s really easy all and all but get very disappointed after like a week or 2-3 since they noticed they didn’t achieve what they wanted by far.

It’ll take probably 2 years if you’re active and good at it.

ShikhaTan Member

you should use foreach to loop over arrays, however, to answer your question as to why your code isn’t working:

In PHP the integer 0 is falsy, the first element in your array is 0 so the while loop never executes (because the first condition is false), you would need to do a type-sensitive comparison to use while:

while (($a = current($num)) !== false) { ... }

Definitely use foreach though.

ShikhaTan Member

I’m not sure if you mean sending keystrokes by as if you were typing in an in game console or something, or whether you mean just modifying content just as cheats. If you mean the first part then I have yet to find a way to do it. If you mean the second part then I’ll go over that now. First thing you need to do is learn how to find an open process and attach to it. From there you can modify the memory addresses (assuming you already have the addresses). If you don’t then finding the memory addresses can be tricky depending on the game. I would suggest learning to use cheat engine and Ollydbg. There are countless tutorials online for these. The easiest way to find an active process would be to use the FindWindow() function. So for example you could declare a variable and define it to the FindWindow():

HWND vWin =  FindWindow(null, ProcessName);

The first argument is the ClassName and the second is the WindowName. You can read more about this function on the msdn dev center. Let me know if you have anymore questions and I’ll try to help where I can. Good Luck!!

EDIT: forgot to mention, you should look up how to create a trainer in C++. This will help you get started in this project.

in reply to: Matrix in C++
ShikhaTan Member
#define maxdim 10

typedef float TRealMatrica[maxdim][maxdim];
         .
         .
         .
TRealMatrica A,B;                         
         .
         .
         .
void ProizvodMatrica(float (*A)[maxdim],float (*B)[maxdim],int NA,int NB)
{
TRealMatrica P;
int i,j,k;

clrscr();
if(NA != NB)
  {
    printf("\nERROR: Rows must be same!");
  }
else
  {
    for(i=0;i
    
ShikhaTan Member

I’m not sure if you understand what you are asking, but here you go:

int fahr = 0;

do
{
    cels = (double) (5.0 / 9 * (fahr - 32));
    System.out.println("Fahrenheit: " + Math.round(fahr) + " to " + "Celsius: " + df.format(cels));

    fahr += 20;
}
while (fahr <= 300);

You don't need a do/while loop here, a while loop or your current loop would work just fine. A do/while loop is a loop that executes ONCE no matter if the condition is false or true. In your case, your while condition will remain true for quite a time.

ShikhaTan Member

For the basics go to:

http://www.w3schools.com

World Wide Web Consortium makes HTML standards, so they serve as the best reference for basic website functionality…

ShikhaTan Member

Learn java, Oracle Sql, C++, Python and PHP.

You have a lot of pdf books around the net.

Take into account any language you learn, will require a lot of your time and patience.

ShikhaTan Member

Just pick a language, know what you want to learn from the language and get at it. If you continue to procrastinate you’ll eventually get nowhere trying to make up your mind here and there.

Dozens to choose from: Python, Ruby, C, C#, C++, Java, Perl, PHP etc…the list goes on.

ShikhaTan Member

Notepad++ for simple file editing.
An IDE like Eclipse/Netbeans/PHPed/PHPstorm/dreamweaver (Whichever you like)
Photoshop for minor image editing.
Safari, Opera, Firefox, Internet Explorer and Chrome, to test your site in different browsers
Any ftp program you like.

Not what you asked, still, imma put it here
A second monitor would come in handy. Edit code on one screen, test on second screen.

ShikhaTan Member

Just add:

echo $retriever->save( 'res/leaders.xml' );

after:

echo $retriever->saveXML();

and it will save back to the file.

ShikhaTan Member

What happens if you use:

$masterContent = $masterElement->getElementsByTagName('users')->item(2);

It maybe 0 indexed so 0,1,2 not 1,2,3. Not sure – haven’t used this myself.

ShikhaTan Member

So on http://root.cern.ch/root/html/src/TH2D.h.html#kvMDeC

It seems to be saying there is a function for:

virtual Double_t GetBinContent(Int_t binx, Int_t biny)

So wouldn’t you be able to just use that instead of making the array of doubles?

But if you really want to make the array of doubles, I don’t think you can initialize with

c[1000,1000]

I think you’d need to use

c[1000][1000]

You can see this in the error where it says the operand of comma has no effect and that it expects to see an end bracket

ShikhaTan Member

You can use a vbs file and run it as invisible, here it is a example from a fast google search.

http://superuser.com/questions/62525/run-a-completly-hidden-batch-file

in reply to: Array of labels
ShikhaTan Member

You aren’t actually adding the labels to the form control collection so they won’t be drawn.

    private void PlaceLabels(int width, int height)
    {
        int xAs = 50;
        int yAs = 20;
        Label[,] labels = new Label[width, height];
        for (int x = 0; x < width; x++)
        {
            for (int y = 0; y < height; y++)
            {
                labels[x, y] = new Label();
                labels[x, y].Size = new System.Drawing.Size(50, 50);
                labels[x, y].Location = new System.Drawing.Point(xAs, yAs);
                this.Controls.Add(labels[x, y]);  // here
                yAs += 10;
            }
            xAs += 10;
        }
    }

Note: If 'this' isn't the context of the form you would need to pass the form instance as a parameter so it knows which form to draw the controls to. Also, you're not adding any label text so the label still won't be visible.

ShikhaTan Member

I’m not too hot on assembly but I know the WP page is not the place to go to learn to code it. A quick search brings up: [the first hit for ‘learn mips assembly’]

Besides that, you’ll also want something specific to your coding environment, and possibly the device you’re coding for. If you find these hard to understand, I recommend you take a step back and read up on assembly programming, and computer architectures, particularly RISC, since MIPS is in this instruction set family. Happy hacking.

Viewing 15 posts - 16 through 30 (of 111 total)
en_USEnglish