|
-
Jun 15th, 2005, 08:11 AM
#1
Thread Starter
Frenzied Member
How do I add 2+2
VB Code:
Option Explicit
Private Sub Form_Load()
Dim np As CNumberProcessor
Dim no As cNumberOperator
Dim n1 As CNumber
Dim n2 As CNumber
Set np = New CNumberProcessor
Set no = New cNumberOperator
n1.Operand.Add 2
n2.Operand.Add 2
no.Operator = "+"
np.AddOperator no
np.AddOperand n1
np.AddOperand n2
np.Process
Debug.Print np.Result
End Sub
VB Code:
Option Explicit
Private Sub Form_Load()
Dim n1 As Long
Dim n2 As Long
n1 = "2"
n2 = "2"
Debug.Print n1 + n2
End Sub
I know which way I prefer.
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Jun 15th, 2005, 08:18 AM
#2
Re: How do I add 2+2
With a bucket dear yrwyddfa, dear yrwyddfa, dear yrwyddfa, with a bucket dear yrwyddfa, dear yrwyddfa add it
-
Jun 15th, 2005, 08:24 AM
#3
Re: How do I add 2+2
I usually do it in my head. I'm smart like that
-
Jun 15th, 2005, 08:24 AM
#4
Thread Starter
Frenzied Member
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Jun 15th, 2005, 08:55 AM
#5
Re: How do I add 2+2
Is that your witty sideways glance at OOP? Oh what a wag you are.
I don't live here any more.
-
Jun 15th, 2005, 08:56 AM
#6
Thread Starter
Frenzied Member
Re: How do I add 2+2
I didn't think it was witty, nor sideways
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Jun 15th, 2005, 09:04 AM
#7
-
Jun 15th, 2005, 09:05 AM
#8
Thread Starter
Frenzied Member
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Jun 15th, 2005, 09:08 AM
#9
-
Jun 15th, 2005, 09:09 AM
#10
-
Jun 15th, 2005, 09:12 AM
#11
Re: How do I add 2+2
 Originally Posted by NoteMe
Wow man, this python sounds REALLY advanced
I don't live here any more.
-
Jun 15th, 2005, 09:14 AM
#12
-
Jun 15th, 2005, 09:24 AM
#13
Re: How do I add 2+2
 Originally Posted by wossname
Wow man, this python sounds REALLY advanced 
Yeah it is...it kills me just thinking about it....at the moment my work here at CERN evolves using python to steal from someone in Japan..
-
Jun 15th, 2005, 09:42 AM
#14
Re: How do I add 2+2
 Originally Posted by NoteMe
Yeah it is...it kills me just thinking about it....at the moment my work here at CERN evolves using python to steal from someone in Japan.. 
My work never evolves.
-
Jun 15th, 2005, 09:49 AM
#15
Re: How do I add 2+2
 Originally Posted by mendhak
My work never evolves. 
Come to CERN. You can become my 3rd secretary... ...your first job will be to massage my shoulders. They are hurting, and I need a massage befor I am going to play football today..
ØØ
-
Jun 15th, 2005, 10:34 AM
#16
Re: How do I add 2+2
I rely on SandpaperTM to do my math for me.
-
Jun 15th, 2005, 11:32 AM
#17
Fanatic Member
Re: How do I add 2+2
What is this "math" I keep hearing about?
Here's to us!
Who's like us?
Darned few, and they're all dead!
-
Jun 15th, 2005, 11:37 AM
#18
Re: How do I add 2+2
math is the singular of the much overused "maths"
-
Jun 15th, 2005, 01:00 PM
#19
-
Jun 15th, 2005, 01:50 PM
#20
Supreme User
Re: How do I add 2+2
 Originally Posted by visualAd
I usually do it in my head. I'm smart like that 
I dont think i can quite manage that, my brain isnt quite advanced enough, it struggles to manage 1+1, ABC = XYZ
-
Jun 15th, 2005, 04:40 PM
#21
Re: How do I add 2+2
6 x 9 = 42
Douglas Adams proved it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|