Register for your free account! | Forgot your password?

Go Back   elitepvpers > Conquer Online 2 > CO2 PServer - Discussions / Questions
You last visited: Today at 06:38

  • Please register to post and access all features, it's quick, easy and FREE!


How many people here are really programmers?

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 312
How many people here are really programmers?

If you think you are, please post the answer to the equation:

2 ^ 2 = ?



_tao4229_ is offline  
Old 08/31/2009, 07:49   #2
 
elite*gold: 0
Join Date: Mar 2009
Posts: 427
Received Thanks: 479
Quote:
Originally Posted by _tao4229_ View Post
If you think you are, please post the answer to the equation:

2 ^ 2 = ?
2 of course


ookamocka is offline  
Old 08/31/2009, 07:57   #3
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 908
0
kinshi88 is offline  
Old 08/31/2009, 08:33   #4
 
elite*gold: 0
Join Date: Jun 2009
Posts: 93
Received Thanks: 17
2 ^ 2 = 4


~*|Limbo|*~ is offline  
Old 08/31/2009, 08:41   #5
 
elite*gold: 0
Join Date: Mar 2008
Posts: 55
Received Thanks: 4
0
tribalost is offline  
Old 08/31/2009, 08:41   #6
 
elite*gold: 0
Join Date: Dec 2005
Posts: 22
Received Thanks: 1
that is an incorrect format. Should be from right to left.

? = 2 ^ 2
GraveDigger is offline  
Old 08/31/2009, 09:35   #7
 
elite*gold: 0
Join Date: Nov 2006
Posts: 160
Received Thanks: 15
xD if in math 4
rubenz is offline  
Old 08/31/2009, 12:43   #8
 
elite*gold: 0
Join Date: Mar 2008
Posts: 268
Received Thanks: 24
After long hours of late night work, its 22...
onlyme64 is offline  
Old 08/31/2009, 14:47   #9
 
elite*gold: 0
Join Date: Nov 2008
Posts: 44
Received Thanks: 6
0
Rab is offline  
Old 08/31/2009, 14:49   #10
 
elite*gold: 0
Join Date: Aug 2009
Posts: 47
Received Thanks: 3
0
_xTreme_ is offline  
Old 08/31/2009, 14:55   #11
 
elite*gold: 20
Join Date: Aug 2009
Posts: 1,344
Received Thanks: 650
I think this depends on which language its being used in.
More or less, the answer is based on the language
The only time I've seen the XOR being used was in my friends CO encryption method.

I don't know... I'm not too fond of it.
Zion~ is offline  
Thanks
1 User
Old 08/31/2009, 14:56   #12
 
elite*gold: 66
Join Date: Feb 2008
Posts: 900
Received Thanks: 479
its 8
_MaryJuana is offline  
Old 08/31/2009, 14:57   #13
 
elite*gold: 0
Join Date: May 2006
Posts: 450
Received Thanks: 466
Quote:
Originally Posted by _tao4229_ View Post
If you think you are, please post the answer to the equation:

2 ^ 2 = ?
you probably aren't.

^ is completely syntax dependent, so its 100% clear the right answer is 42.
Kane49 is offline  
Thanks
1 User
Old 08/31/2009, 15:23   #14
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 995
PHP Code:
  public enum CalculateMode
        
{
            XOR = 
0,
            
Power
        
}
        public static 
sbyte CalculateAnswer(byte valueCalculateMode mode)
        {
            switch (
mode)
            {
                case 
CalculateMode.XOR:
                    return (
sbyte)(value value);
                case 
CalculateMode.Power:
                    return (
sbyte)Math.Pow(valuevalue);
            }
            return -
1;
        }
        public static 
void Main(string[] args)
        {
            try
            {
                
byte value 0;
                if (
byte.TryParse(args[0], out value))
                {
                    
CalculateMode mode = (CalculateMode)Enum.Parse(typeof(CalculateMode), args[1]);
                    if (
Enum.IsDefined(typeof(CalculateMode), mode))
                    {
                        
Console.WriteLine("'{0}' calculated with {1} is {2}"valuemode.ToString(), CalculateAnswer(valuemode));
                        
Console.ReadLine();
                    }
                    else
                    {
                        
Console.WriteLine("'{0}' is not defined in CalculateMode."mode.ToString());
                        
Console.ReadLine();
                    }
                }
                else
                {
                    
Console.WriteLine("'value' is invalid. Check first param.");
                }
            }
            catch (
ArgumentException)
            {
                
Console.WriteLine("mode wasn't defined in CalculateMode.");
                
Console.ReadLine();
            }
        } 
Have fun.
tanelipe is offline  
Old 08/31/2009, 15:48   #15
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
This has to do with programming CO Private Servers?
If so, I'm not a programmer.


Basser is offline  
Closed Thread



« [Help!!]Private Server | [Bored] »

Similar Threads
I need a programmers help!
04/09/2010 - CO2 Programming - 3 Replies
:D...... can anyone create a bot for DexterityCO, its like a auto npc answerer in just seconds or milisec its for the npc named "sevensages" i need it to be clicked faster... and is it possible that you can create an auto gold loot w/o getting...
Tip for programmers
01/23/2009 - CO2 Main - Discussions / Questions - 1 Replies
last week using cid proxy by 7-9 hours a day i got like 6-10kk for each day.. but i got also 3 chars botjailed.. because autoloot in cidproxy is easily detectable for other online players.. he only drops uppon gold and jump as a crazy frog.. so.....
[Help]People can't Kill people in a normal attack.
11/10/2008 - CO2 PServer - Discussions / Questions - 0 Replies
People can't attack each other in a PK place in a normal attack they only can attack each other with a skill(fastblade and other) and before it worked now it is not =/ Any help?
to all vb programmers
05/02/2006 - CO2 Main - Discussions / Questions - 1 Replies
is there anyone who can post a working visual basic source about reading memory, like the one that was posted in guides, but without the tsearch thing would be nice =/



All times are GMT +2. The time now is 06:38.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.