Food Clan .::. Zombie Assassins
image Navigation image
 
· Search Our Site

· Join [ZÅ]

Important Links
· Home
· Special Requests
· Allies & Friends

Features
· Newsletter
· Fan Fiction
· YouTube Page
· Hall of Fame

Rules & Information
· Website Rules
· Membership Rules
· Server Rules & Info
· Classic Server Password Test
· The History of [ZÅ]
· Site & Server Admins
· Staying Safe Online


Other
· News Categories
· Downloads
· Photo Gallery
· Hall of Shame
· I DON'T THINK RAZ IS GOD
 
image image
image Last Seen Users image
 
· [LÅZY]LazyTarget 3 weeks
· [ZÅ]Riptide 4 weeks
· [ZÅ]Giants11 weeks
· [ZÅ]Razberry12 weeks
· [ZÅ~V]Stuntman13 weeks
· [ZÅ]SlimJim14 weeks
· [ZÅ]Noobo17 weeks
· [ZÅ~V]DrkInferno26 weeks
· ZA Flax37 weeks
· [ZÅ]ODST-LoL40 weeks
· [ZÅ]JP41 weeks
· lkshadow45 weeks
· [ZÅ]MasterA55 weeks
· [ZÅ]Dudeman55 weeks
· [ZÅ]Link-MC--LoL-CSGO57 weeks
· [ZÅ]Innervision61 weeks
· [ZÅ~V]Phoenix64 weeks
· [ZÅ~V]BrickSquad75 weeks
· {FC}Cookie78 weeks
· [ZÅ]Bvigil81 weeks
· [ZÅ~V]Boxhead82 weeks
· [ZÅ]Vlexis89 weeks
· {FC}Wings89 weeks
· [ZÅ~V]Buck90 weeks
· {FC~V}Coyote158 weeks
· [ZÅ~V]TheHatofLove164 weeks
· Kennan171 weeks
· [ZÅ]Paradox-MC-172 weeks
· zuko188 weeks
· A§H»ĴΘΘĶ195 weeks
· [ZÅ]Vaxjo198 weeks
· coldplay99198 weeks
· [ZÅ~V]RAGE198 weeks
· samtheman32203 weeks
· [ZÅ]ninja203 weeks
· [ZÅ]Code203 weeks
· FRINGE204 weeks
· [ZÅ]Leve204 weeks
· [ZÅ~V]Ezrab204 weeks
· BMF204 weeks
· MRBILL204 weeks
· [ZÅ~V]Hercules206 weeks
· ginny18245 weeks
· [ZÅ~V]Cloverton283 weeks
· [ZÅ]Carnage-WoWs299 weeks
· [ZÅ]Mist-Stn300 weeks
· theatticus308 weeks
· [ZÅ~V]Star312 weeks
· [ZÅ~V]Neo316 weeks
· [ZÅ]Saviour324 weeks
· [ZÅ~V]Irock23325 weeks
· [ZÅ]Revenge-Stn335 weeks
· Habu341 weeks
· [ZÅ~V]Althor352 weeks
· Founder~[ZÅ~V]Trunks353 weeks
· [ZÅ~V]Llamas358 weeks
· [ZÅ~V]Bagels361 weeks
· Founder~[ZÅ~V]Coke367 weeks
· Teemo367 weeks
· Rabidtaco368 weeks
· [ZÅ~V]BlackAdder-LoL374 weeks
· [ZÅ~V]Ice382 weeks
· Hav389 weeks
· [ZÅ~V]Huggy394 weeks
· [ZÅ~V]RealmHunter395 weeks
· [ZÅ]Tulip-LoL-CSGO397 weeks
· [ZÅ~V]Pizzleini401 weeks
· [ZÅ~V]Martyr403 weeks
· Java408 weeks
· SpartanJaz412 weeks
· [ZÅ~V]Luna413 weeks
· [ZÅ~V]Kíttý426 weeks
· [ZÅ~V]Sinder428 weeks
· arbiterspar434 weeks
· Bacon439 weeks
· Magnum443 weeks
· H4WK451 weeks
· [Lagzy]462 weeks
· [ZÅ]Whatmesage469 weeks
· [ZÅ~V]Suika472 weeks
· Zidane472 weeks
· [ZÅ~V]Pieeater473 weeks
· [ZÅ~V]Numpty473 weeks
· [ZÅ]Swicey473 weeks
· [ZÅ~V]ChAr473 weeks
· Smile.jpg473 weeks
· Ronald473 weeks
· Bane473 weeks
· [ZÅ]Soulcyon-LoL473 weeks
· TacoCookie473 weeks
· [ZÅ]Buckwheat473 weeks
· [ZÅ~V]PirateKing-LoL474 weeks
· ShawnPeezy485 weeks
· [ZÅ~V]JOSEPH5499 weeks
· xXKrysisXx505 weeks
· Chuck505 weeks
· Homeless506 weeks
· Warrior507 weeks
· [ZÅ~V]Smurf509 weeks
· JunkyMonkey509 weeks
 
image image
image View Thread image
 
 Print Thread
Won't Compile
Dudeman
#1 Print Post
Posted on 07/16/2014 13:41:00
User Avatar

Super Admin


Posts: 1277
Joined: 03.01.12

Anyone know Visual Basic? I have a feeling it's the Console.WriteLine w/company name&cost but not sure

Download source  Code

Module Module1

    Sub Main()
        'local variables
        Const fiberCost As Double = 0.87
        Dim companyName As String
        Dim numFeet As Double = 0
        Dim totalCost As Double = 0
        Console.Write("Enter company name: ")
        companyName = Console.ReadLine()
        Console.Write("Enter number of Fiber: ")
        numFeet = Console.ReadLine()
        totalCost = numFeet * fiberCost
        Console.WriteLine("Your company " + companyName + "had a total cost of $ " + totalCost +)
        'this causes apause so you can see your program
        Console.Write("Press enter to continue...")
        Console.ReadLine()
    End Sub



Edited by Dudeman on 07/16/2014 16:57:49
steamsignature.com/profile/english/76561198038766087.png
 
Send Private Message
ninja
#2 Print Post
Posted on 07/16/2014 15:35:49
User Avatar

Super Admin


Posts: 4174
Joined: 15.11.10

Use code tags when posting code!

I don't know VB but I would guess that Console.ReadLine() returns a string so it doesn't like you trying to store it as a double and do arithmetic with it.

For the console writing line, check whether you can concatenation strings with doubles, and you probably want to remove that last plus.
Edited by ninja on 07/16/2014 15:37:45
steamsignature.com/status/english/76561198019046882.png

i.imgur.com/EzcOjDS.png
My brain is open.
- Paul Erdős
 
Send Private Message
Mist
#3 Print Post
Posted on 07/16/2014 16:19:29
User Avatar

Numpty


Posts: 1242
Joined: 22.07.13

Is it me or does anyone else not understand this language?
 
Send Private Message
Dudeman
#4 Print Post
Posted on 07/16/2014 16:58:33
User Avatar

Super Admin


Posts: 1277
Joined: 03.01.12

ninja wrote:
Use code tags when posting code!

I don't know VB but I would guess that Console.ReadLine() returns a string so it doesn't like you trying to store it as a double and do arithmetic with it.

For the console writing line, check whether you can concatenation strings with doubles, and you probably want to remove that last plus.


Edited for your viewing pleasure XD and I'll take a look at that ReadLine() Grin
steamsignature.com/profile/english/76561198038766087.png
 
Send Private Message
RazNinjaMike
#5 Print Post
Posted on 07/17/2014 06:48:58
User Avatar

Moderator


Posts: 4586
Joined: 20.11.10

i believe dudeman is trying to get the boobs on his desktop background to move
 
Send Private Message
Dudeman
#6 Print Post
Posted on 07/17/2014 09:01:27
User Avatar

Super Admin


Posts: 1277
Joined: 03.01.12

RazNinjaMike wrote:
i believe dudeman is trying to get the boobs on his desktop background to move


It's finding a companies cost to put in Fiber Optic Cable between two buildings :/
steamsignature.com/profile/english/76561198038766087.png
 
Send Private Message
ninja
#7 Print Post
Posted on 07/17/2014 10:38:11
User Avatar

Super Admin


Posts: 4174
Joined: 15.11.10

Did you manage to debug it?
steamsignature.com/status/english/76561198019046882.png

i.imgur.com/EzcOjDS.png
My brain is open.
- Paul Erdős
 
Send Private Message
Dudeman
#8 Print Post
Posted on 07/17/2014 14:50:26
User Avatar

Super Admin


Posts: 1277
Joined: 03.01.12

easy and yes.....it was the addition signs, they were supposed to be ampersands (&)

I think pseudocode has the addition signs to seperate calling for variables and actually quoting them.

TLDR; I just mixed up VB with Pseudocode rookie mistake :/

P.S. After this class I'd love to shoot the shit with some of you other programmers. I think it's fairly easy moving from language to language as long as you are alright at Pseudocode. Or so I hear. Hell, we can always use more programmers in the clan. amiright?
Edited by Dudeman on 07/17/2014 14:53:03
steamsignature.com/profile/english/76561198038766087.png
 
Send Private Message
ninja
#9 Print Post
Posted on 07/17/2014 17:33:48
User Avatar

Super Admin


Posts: 4174
Joined: 15.11.10

Dudeman wrote:
easy and yes.....it was the addition signs, they were supposed to be ampersands (&Wink

I think pseudocode has the addition signs to seperate calling for variables and actually quoting them.

TLDR; I just mixed up VB with Pseudocode rookie mistake :/

P.S. After this class I'd love to shoot the shit with some of you other programmers. I think it's fairly easy moving from language to language as long as you are alright at Pseudocode. Or so I hear. Hell, we can always use more programmers in the clan. amiright?

Many languages overload + for string concatenation, so that's probably why you've seen that and used it.
This Stackoverflow post explains the problem you had: http://stackoverf...-in-vb-net
In essence, the compiler tried to cast your string to a double and add it to the double (since + is a numerical operator). However, you wanted to concatenate the string with the double, so you're best off using the & which is reserved for string concatenation.
steamsignature.com/status/english/76561198019046882.png

i.imgur.com/EzcOjDS.png
My brain is open.
- Paul Erdős
 
Send Private Message
Smurf
#10 Print Post
Posted on 07/25/2014 12:05:27
User Avatar

Wanker


Posts: 552
Joined: 11.06.12

It looks like your doing good so far. From what the code looks like, you have a bit of C+ and VB mixed in it. Haven't seen much of this because C+ and C++ is so much more in depth than actual VB. This is my code for writing/reading lines in VB.

Here is the code to write to the file:

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
FileIOPermissionAccess()
If TextBox1.Text = "[ZÅ]" Then
MsgBox("Enter a Player's name to add them.", MsgBoxStyle.Exclamation, "Error"Wink
Else
File.AppendAllText(c, TextBox1.Text & vbCrLf)
TextBox1.Text = "[ZÅ]"
MsgBox("Player Added to the list", MsgBoxStyle.Information, "Saved!"Wink
ReadFile()
End If


Here is the code to read the file (Readfile())

Private Sub ReadFile()
Try
ComboBox1.Items.Clear()
a = File.OpenText(c)
While a.Peek <> -1
b = a.ReadLine()
ComboBox1.Items.Add(Cool
End While
a.Close()
Catch ex As Exception
MsgBox(ex.Message)
End Try


The Readfile() I have to create on my own so I could make a call to the code. The Readfile() will call the sub in the button1_click then also close the file so it doesn't stay open in RAM

If you need any help dudeman, you can message me over the site or catch me on Xfire when I am on. I have two semesters of VB and have all the programs from the first semester. Unfortunately I wasn't able to recover second semesters code off my failing HDD
Edited by Smurf on 07/25/2014 12:07:58
i771.photobucket.com/albums/xx359/Firedeval46/smurf_you_by_rodakrodak_zps504bbe26.jpg
i771.photobucket.com/albums/xx359/Firedeval46/smurfcopy_zpsc8795677.jpg
 
Send Private Message
Dudeman
#11 Print Post
Posted on 07/26/2014 04:42:55
User Avatar

Super Admin


Posts: 1277
Joined: 03.01.12

Smurf wrote:
It looks like your doing good so far. From what the code looks like, you have a bit of C+ and VB mixed in it. Haven't seen much of this because C+ and C++ is so much more in depth than actual VB. This is my code for writing/reading lines in VB.

Here is the code to write to the file:

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
FileIOPermissionAccess()
If TextBox1.Text = "[ZÅ]" Then
MsgBox("Enter a Player's name to add them.", MsgBoxStyle.Exclamation, "Error"Wink
Else
File.AppendAllText(c, TextBox1.Text & vbCrLf)
TextBox1.Text = "[ZÅ]"
MsgBox("Player Added to the list", MsgBoxStyle.Information, "Saved!"Wink
ReadFile()
End If


Here is the code to read the file (Readfile())

Private Sub ReadFile()
Try
ComboBox1.Items.Clear()
a = File.OpenText(c)
While a.Peek <> -1
b = a.ReadLine()
ComboBox1.Items.Add(Cool
End While
a.Close()
Catch ex As Exception
MsgBox(ex.Message)
End Try


The Readfile() I have to create on my own so I could make a call to the code. The Readfile() will call the sub in the button1_click then also close the file so it doesn't stay open in RAM

If you need any help dudeman, you can message me over the site or catch me on Xfire when I am on. I have two semesters of VB and have all the programs from the first semester. Unfortunately I wasn't able to recover second semesters code off my failing HDD


Sounds good, bud I may have to take you up on that. I received a 88 on my midterm this week Grin but the assignments are sometimes difficult.
steamsignature.com/profile/english/76561198038766087.png
 
Send Private Message
Smurf
#12 Print Post
Posted on 08/07/2014 17:31:43
User Avatar

Wanker


Posts: 552
Joined: 11.06.12

Dudeman
Sounds good, bud I may have to take you up on that. I received a 88 on my midterm this week Grin but the assignments are sometimes difficult.


Hey no problem. I passed my VB class with flying colors. This shit is my life now. I can't stop typing code ~modpower~

If im not on xfire. Message me over the site and I should get an email from it. If not, just email me at my address and I will definitely get it - Spidyshood@yahoo.com
Edited by Smurf on 08/07/2014 17:46:07
i771.photobucket.com/albums/xx359/Firedeval46/smurf_you_by_rodakrodak_zps504bbe26.jpg
i771.photobucket.com/albums/xx359/Firedeval46/smurfcopy_zpsc8795677.jpg
 
Send Private Message
Jump to Forum:
 
imageimage
image Login image
 
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
 
image image
image Shoutbox image
 
You must login to post a message.

RazNinjaMike
08/07/2026 16:28:22
hmm

Drkinferno
04/30/2026 16:29:13
not dead

stunt1man
02/17/2026 17:22:06
Still alive. ~B_Slap~

Hobo
02/16/2026 21:44:26
Wassup gang ~craptacular~

stunt1man
01/30/2026 12:29:22
Anytime I post something in the thread, it's not visible.

stunt1man
01/27/2026 20:09:23
The ISP blocked you.

Target
12/29/2025 21:50:19
Ditto! Grin

stunt1man
12/28/2025 16:40:54
Happy new year. ~noob~

Target
11/27/2025 12:34:23
Happy Thanksgiving :3

Target
10/31/2025 09:30:28
Happy Halloween everyone! Smile

Target
10/25/2025 09:09:20
https://www.youtub
e.com/watch?v=AMGJ
7OMqyvI woah

stunt1man
10/24/2025 16:32:18
Hola Papi!

Link
09/29/2025 23:37:58
OMG HI GUYS!!! I was able to finally log in after so many years!!! I hope everyone is doing well in life! Man, time flies!

RazNinjaMike
09/26/2025 06:40:34
if you dont got discord, go get it. its great for chatting as well Cool

stunt1man
09/21/2025 11:10:02
~Nana~

Drkinferno
09/15/2025 20:05:42
no, I log in time to time

stunt1man
09/07/2025 12:26:37
~argue~

Innervision
08/30/2025 14:52:46
Hope everyone is doing well, good ol shoutbox lol Smile

stunt1man
07/31/2025 18:41:06
I had replied to the thread and it broke. ~ban?~

FC_SlimJim
06/22/2025 20:43:11
idk what happened with that thread cause i cant access it either lol

 
image image
image image