Rashakil Fol 978 Super Senior Demiposter Team Colleague

2) Rashakil, if you're gonna post another video of yourself on youtube. Consider wearing something that hides your puny knees.

My knees are now flabby so I don't need to hide them anymore.

And why the hell are you sitting with your knees pinned together like a female?

Why the hell not?

iamthwee commented: Well are you a female? +18
Rashakil Fol 978 Super Senior Demiposter Team Colleague

byte is an unsigned 8-bit integer whose values range from 0 to 255.

char is a 16-bit unicode character type. If you want to represent raw streams of bytes, you'll use bytes. You could also parse the stream of bytes by assuming it uses some sort of encoding, like UTF-8 or ASCII or something, outputting a stream of chars. A char[] is basically a UTF-16 encoded array -- not all unicode characters can fit in one char -- some take two.

Edit: I'm kind of extrapolating when it comes to my statement that a char[] is supposed to be a UTF-16 encoded array. I would expect people to use string instead of char[], and I know I read somewhere that string is encoded in UTF-16.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Amazing. Visiting the Geeks' Lounge is like sitting in a room full of children.

You're amazed by this? You must not be as smart as I thought you were :P

Rashakil Fol 978 Super Senior Demiposter Team Colleague

What do you mean, the "SQL end"? Or "the application end"? I don't understand those terms.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

For starters, replace [1-9]+ with [1-9][0-9]*

When you use a preceding @ sign in C#, that means escape characters won't work. You can then write backslashes freely.

For example, @"C:\Documents and Settings\rashakil\My Documents\serkan love files" would be a valid string literal. If you want to write a double quote character in such a representation, I think (but you should double check that) you can write it by writing two double quote characters: @"blah "" hah" == "blah \" hah"

ddanbe commented: The subtility of your style is by moments unsurpassable LOL! +4
Rashakil Fol 978 Super Senior Demiposter Team Colleague

Yes, they use databases.

When we install software on a client we have some huge SQL files that create all the tables, indexes, and restrictions that we need.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Are you a scientologist?

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Since this seems to be the narcissistic You-Tube video thread... here is mine.

http://www.youtube.com/watch?v=SkrVnfHsmK8

Rashakil Fol 978 Super Senior Demiposter Team Colleague

he used to bother me a lot too, but now we seem to get on.

This is not true. I might act nice to jbennet, maybe, but that's all part of my master plan.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

You should have been more specific.

Why?

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

What's stopping you from making one?

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

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

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

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
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

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

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

No. There is no way to convert between voltages.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

i started to wonder your age.. how old are you?

95 years old

serkan sendur commented: very beneficial +3
Rashakil Fol 978 Super Senior Demiposter Team Colleague

For fuck's sake, pride is retarded.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

You want a struct with a double and a bool.

You should never use inheritance except as a mechanism for polymorphism -- one reason being that 'putting stuff into structs' or classes (a.k.a. composition) is sufficient, another being that using inheritance leads to a complete clusterfuck of disorganization, when you're using it for things that composition is good for. Basically when you have a type T inheriting from U, you should ask, "is T a U"? Well, is [something that is either a double or invalid] a double? No, because invalids aren't really doubles.

It might be helpful to see how other languages handle this problem.

C# has a type Nullable<double> that lets you create values that are either a double or invalid -- and it has special syntax for it, too:

double? x = 3.0;
double? y = null; // i.e. invalid

That's equivalent to using a pointer to a double, where the pointer could be null.

The reason I don't recommend using that kind of solution for C++ is because C++ doesn't have automatic garbage collection, and allocating stuff is a bit more expensive than in garbage collected languages.

A lot of times in C# or Java, people just represent 'invalid' values with null references. In languages without null references, they create a polymorphic type that is either 'just a value of type t' or 'nothing'.

And in C++ you can't inherit from double anyway. So a struct containing a double …

Rashakil Fol 978 Super Senior Demiposter Team Colleague

calloc initializes the memory with zero. calloc = clear + alloc

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Haskell. It's not object oriented -- it's better than object oriented. I "recommend" this because it's my language of choice, but there's a huge learning curve, so it's not ideal.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Who do you think cares quality in todays world? Almost everything is about producing fast and consuming fast, you are American, you know what i mean..

I'm going to haunt all your posts and make your existence on this forum a miserable one.

iamthwee commented: brrrrrrrrilliant. +18
stephen84s commented: You got one recruit on that crusade in me. +7
Rashakil Fol 978 Super Senior Demiposter Team Colleague

All you need to do to fix your problem is look at your code and imagine what a prolog interpreter would do when interpreting it.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Check out this:

string dateString;
DateTime dateValue;

Why do you do this? This is not C. Predeclaration makes code less readable.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Well you have more problems than just that.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Your second predicate is going to match and override whatever you do in your third predicate. You need to handle nested lists before you handle non-nested lists.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

...

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Anyway, your first example (where A gets assigned 54) is perfectly right.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

When you store something in B, that means the predefined value will be overwritten.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

In your code sample, g1 and g2 are local variables in the Main function. They cannot be seen anywhere outside the main function. Since you're trying to use a variable named g1 in GoodMorning, you're getting an error.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Your function Goodmorning is referring to some variable g1, and there is no variable named g1 in its scope. Learn how scope works in C# and you'll understand your problem.

Edit: And I'm assuming all the typos happened because you typed this manually, and you're not actually having problems caused by extra spaces and incorrect capitalization.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Presumably he has random access to the list; otherwise this problem would be impossible.

The answer is pretty simple, and we're not just going to give you the answer.

Here's a hint though: There obviously must be some way to find a value _greater_ than the one you're searching for, in O(log n) time.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Where is the error generated from?

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Maybe I'm not being very clear. I'm saying, suppose your class began with the following:

class dequeint {

private:
       NodeType NodeArray[MAXSIZE];
       int headi; // index of first element: 0 <= headi < MAXSIZE
       int length; // number of elements: 0 <= length <= MAXSIZE
public:

How would you implement it then?

You can see that if your version contained say, 0 in both headi, you'd have no way of knowing if the length was 0 or MAXSIZE.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Maybe some more explanation is needed for me to corret that problem.

Maybe some thinking would work, too.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

What do you mean 'retrieve' the data? You have the data. If you want to use the data, put it in an array and iterate over it.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

This: ((tailsucci+1)%MAXSIZE) !=headi is wrong.

Figure out why.


One problem you have is that if tailsucci and headi are both equal, you can't tell whether the buffer is full or empty. You should store the number of elements in the buffer, instead of storing the value tailsucci, because that's an easy way to avoid this ambiguity.

Rashakil Fol 978 Super Senior Demiposter Team Colleague

Well clearly, the matrix manipulation class should provide clear error messages, throwing exceptions when you try to do impossible things. What do you expect integers to do when you divide by zero? Would you rather report an array out of bounds exception or have a clearer exception that explains that the matrices are of the wrong dimensions?

So the matrix class should throw the exception, and either the user interface should avoid adding mismatched matrices in the first place, or, if you like, catch the matrix class's exception and report the error. You'd probably want a special subclass of InvalidOperationException that users of the matrix can catch to handle errors with their matrices, rather than an internal error in the program.

Regarding cars and garages -- well, who has what responsibility depends on how you're representing the physical universe.