Rashakil Fol 978 Super Senior Demiposter Team Colleague

Your beautiful hands turn me on...

I'm going to make it so dry for you.

serkan sendur commented: if i had used protection, you wouldnt have existed today. -1
Comatose commented: Priestly +12 Cast Of Healing +12
Ancient Dragon commented: you are an immature newt +36
Rashakil Fol 978 Super Senior Demiposter Team Colleague

It's a much simpler and better solution just to have a lookup table of all the nonobvious board positions modulo rotation and reflection.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

What's stopping you from making one?

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Yes, I can. Why can't you?

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Huh? I did not say that at all.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Is there any other software by which i can make a very nice UI.

Well, define "very nice." The niceness of a UI depends on the developer. How is VS 2008 stopping you from making a nice UI?

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Whoa, what a huge spergation.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Suppose the datatype you're using to hold an IP address is called IPAddress. Then you would want to use a List<IPAddress> to hold your IP addresses. If the datatype you're using is string, you'd want to use a List<string> . If a uint, use List<uint> .

Rashakil Fol 978 Super Senior Demiposter Team Colleague

What? Why did you suddenly start using C?

Comatose commented: Hahahahha Exactly! +12
Rashakil Fol 978 Super Senior Demiposter Team Colleague

Thanks, you are very good at searching and locating information, maybe because your first language is english.

No, I could easily search in French.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

I disagree :(

John A commented: I agree. -4
Rashakil Fol 978 Super Senior Demiposter Team Colleague

The img tags are messed up.

serkan sendur commented: the answer was true damnit -1
Rashakil Fol 978 Super Senior Demiposter Team Colleague

See the class System.Text.RegularExpressions.Regex.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Really? Okay... Then what about

ABC 1000 10 BUY
ABC 1000 10 SELL
ABC 1100 10 BUY

I can't see what algorithm you're using to conglomerate these things.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Do you understand how arrays work?

Rashakil Fol 978 Super Senior Demiposter Team Colleague

That code

is awful.

I would so make fun of you for that.

Show the code that defines the variables txt00 through txt88, so that we can put them in an array.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

If I were you, I would regard each of your details, 1, 2, and 4, as an individual problem to write a function for. Then the program is a simple combination of these functions, meeting detail 3.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

You could start with a function that gets the input from the user.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Stupid questions don't exist

They so do exist.

"Then why does it taste so salty?"

Rashakil Fol 978 Super Senior Demiposter Team Colleague
Rashakil Fol 978 Super Senior Demiposter Team Colleague

You want to calculate the n-term series and not the infinite series?

Rashakil Fol 978 Super Senior Demiposter Team Colleague

What help do you need?

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Okay. And what should the output be with the following input?

ABC 1000 11 BUY
ABC  500 10 SELL
Rashakil Fol 978 Super Senior Demiposter Team Colleague

The transformation you have given isn't well-explained. What would be the output if the input were the following:

ABC 1000 10 BUY
ABC  500 10 SELL
Rashakil Fol 978 Super Senior Demiposter Team Colleague

No.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Your "line equation" is wrong -- you have defined a point.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

No, I don't.

serkan sendur commented: Rashakil Fool +4
Rashakil Fol 978 Super Senior Demiposter Team Colleague

I don't understand, no.

Of course it's possible to have a space between them. And you can check if some particular file has that space, too.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Take your description for how a pointer to a T works.

That description works even when T is a pointer to a U.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

What do you mean "post space between them"?

Rashakil Fol 978 Super Senior Demiposter Team Colleague
Rashakil Fol 978 Super Senior Demiposter Team Colleague

In that case, the right solution would still be to use the closed form expression :)

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Well it's almost like the series for exp(x), except the signs are alternating and it's missing the x^1 term and the x^0 term has the wrong sign. If consider the series you get for exp(-x), you should be close to the answer :)

Rashakil Fol 978 Super Senior Demiposter Team Colleague

So there's your problem. If array2 gets stored 'X' when i is even and 'O' when i is odd, it will just contain { 'X', 'O', 'X', 'O', 'X', 'O', 'X', ... }

You should be using the turn number to figure out whether to write an X or an O, and you should be using the user's input to figure out what square to write the X or O to.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

I assumed you would have no problem spotting the errors, but alas, some are still unnoticed.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Sounds like an introductory book to me. It's not an introduction to Java, though -- it's an introduction to data structures.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

You need some way to convert strings to ints. One way is to use a stringstream, another way, after verifying that all characters of the string are digits and that there is one or more of them, is to use atoi(myStr.c_str())

Rashakil Fol 978 Super Senior Demiposter Team Colleague

No.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Use the extension method System.Linq.Enumerable.OfType<TResult>:

foreach(TextBox tb in this.Controls.OfType<TextBox>())
{
    tb.Text = "";
}
Rashakil Fol 978 Super Senior Demiposter Team Colleague

here is the corrected version :

You have errors.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Can you please share your answer publicly once again.

The answer has not been deleted from the thread.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

I'm am new in the IT thing and looking for someone to help me with the code(all of it).

So your real problem is that you don't understand C#? Then you need to learn C#.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Simulate the code by hand, on paper. Then you'll understand.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Which steps don't you understand?

Rashakil Fol 978 Super Senior Demiposter Team Colleague

No. It should be obvious. Do your own homework.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

It's setting the array elements positioned at multiples of i to false. That's because they're not prime numbers (beacuse they're a multiple of some number).

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Put the common functionality in the same dll -- or better yet just use a version control system with subprojects.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

You're missing braces, for one. And you only have 4 win conditions -- tic tac toe has eight. Why are you using the variable i in the win condition? The win condition has nothing to do with the turn number.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Ooh, the swapping concept! WTF.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

You think you're important? That must make you feel special.

The quality of the forum is what's important, and when members post stupid things, that misinformation must be quashed.