""
All times are GMT -5. The time now is 10:31 AM.  

Go Back   Delta Hackers > [::General Section::] > Tech Support

Notices

Tech Support Need help with something?

Reply
 
Thread Tools Display Modes
  #1  
Old 07-29-2010
Asylum Asylum is offline
Veteran Member
 
Join Date: Feb 2009
Location: Nunya Damn Biz
Posts: 213
Downloads: 38
Uploads: 3
Rep Power: 2314
Asylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond repute
Asylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond repute
Default Help por favor

What's wrong with this? This assignment is really messing with my head.

Code:
'programmer: Asylum
'Created on 7/29/2010
'Purpose: demonstrates AND-Logic, continues to ask for input until user enters a negative number

option explicit
dim x
x = inputbox(“enter a number or a zero to exit:”)

do while x>0
     if x>10 AND x<25 then
            wscript.echo X & “ is between 10 and 25”
     else
            if x >= 25 then
                  wscript.echo X & “is greater than or equal to 25”
            else
                  wscript.echo X & “is less than or equal to 10”
            end if
     end if

     X = inputbox(“enter a number or a zero to exit:”)
loop
__________________
Click the image to open in full size.

Reply With Quote
  #2  
Old 07-29-2010
Kryptech's Avatar
Kryptech Kryptech is offline

 
Join Date: May 2007
Location: Right Behind You
Posts: 2,978
Downloads: 44
Uploads: 13
Rep Power: 24052
Kryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond repute
Kryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond repute

Awards Showcase
Iteration Award 2000th Post Tutorial Maker Problem Solver Most Valued Coder Most Improved Coder Innovation Clean Coder Advanced Coder Active Contributor 
Total Awards: 19

Default

2 end ifs?

....and your quotation marks are all fucked up. They aint quote marks.

Also had to fix your elseif

Windows tells you the line and character for the error.

I never did VBscript before and figured this out in 5 minutes. Your gonna have to try a bit harder I think.

Code:
 
option explicit
dim x
 
x = InputBox("enter a number or a zero to exit:")
 
do while x>0
     if x>10 AND x<25 then
            wscript.echo X & " is between 10 and 25"
     elseif x >= 25 then
                  wscript.echo X & "is greater than or equal to 25"
            else
                  wscript.echo X & "is less than or equal to 10"
            end if
 
     X = inputbox("enter a number or a zero to exit:")
loop
__________________
Click the image to open in full size.

Reply With Quote
  #3  
Old 07-29-2010
Asylum Asylum is offline
Veteran Member
 
Join Date: Feb 2009
Location: Nunya Damn Biz
Posts: 213
Downloads: 38
Uploads: 3
Rep Power: 2314
Asylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond repute
Asylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond repute
Default

Thanks..i'm so lost in this class right now. I'm getting a small taste of what you game hackers do everyday. Now I feel like shit asking for hacks lol.
__________________
Click the image to open in full size.

Reply With Quote
  #4  
Old 07-29-2010
kap kap is offline
DH Coders

 
Join Date: Jul 2007
Location: Philadelphia, PA
Posts: 382
Downloads: 4
Uploads: 0
Rep Power: 2460
kap has a reputation beyond reputekap has a reputation beyond reputekap has a reputation beyond reputekap has a reputation beyond reputekap has a reputation beyond reputekap has a reputation beyond reputekap has a reputation beyond reputekap has a reputation beyond reputekap has a reputation beyond repute
kap has a reputation beyond reputekap has a reputation beyond reputekap has a reputation beyond reputekap has a reputation beyond reputekap has a reputation beyond reputekap has a reputation beyond reputekap has a reputation beyond reputekap has a reputation beyond reputekap has a reputation beyond reputekap has a reputation beyond reputekap has a reputation beyond reputekap has a reputation beyond reputekap has a reputation beyond reputekap has a reputation beyond reputekap has a reputation beyond repute
Send a message via MSN to kap
Default

Quote:
Originally Posted by Asylum View Post
Thanks..i'm so lost in this class right now. I'm getting a small taste of what you game hackers do everyday. Now I feel like shit asking for hacks lol.
It's actually not that hard... It just depends if you have the right brain/logic for it...
Reply With Quote
  #5  
Old 07-29-2010
KN0WF34R's Avatar
KN0WF34R KN0WF34R is offline
Moderator

 
Join Date: Aug 2008
Location: Under Ghoster's Trailer
Posts: 708
Downloads: 27
Uploads: 3
Rep Power: 4028
KN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond repute
KN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond reputeKN0WF34R has a reputation beyond repute

Awards Showcase
Tutorial Maker Most Improved Coder Clean Coder Advanced Coder Active Contributor Iteration Award 1 Year Vetern $50 Donator $20 Donator $10 Donator 
Total Awards: 11

Default

Nothing wrong with Asylum's brain or logic skills... Stuff like the quote marks can be put down to whether or not you're trying to code while your eyes are tired. You'll get better as you go along, just don't be afraid to ask when you're stuck. It's much better to ask and feel like a noob than to not ask and remain a noob. Sticking with it in spite of the frustration is about 90% of learning to code well.
__________________
Quote:
Originally Posted by fef View Post
yea i wanna like go to a warez site and get c++
but i dont want a virus.. =/
Click the image to open in full size.
Click the image to open in full size.
Click the image to open in full size.
Reply With Quote
  #6  
Old 07-29-2010
StevePwns StevePwns is offline
V.I.P Member

 
Join Date: May 2007
Location: UpDaStreeT
Posts: 1,368
Downloads: 16
Uploads: 2
Rep Power: 4042
StevePwns has a reputation beyond reputeStevePwns has a reputation beyond reputeStevePwns has a reputation beyond reputeStevePwns has a reputation beyond reputeStevePwns has a reputation beyond reputeStevePwns has a reputation beyond reputeStevePwns has a reputation beyond reputeStevePwns has a reputation beyond reputeStevePwns has a reputation beyond repute
StevePwns has a reputation beyond reputeStevePwns has a reputation beyond reputeStevePwns has a reputation beyond reputeStevePwns has a reputation beyond reputeStevePwns has a reputation beyond reputeStevePwns has a reputation beyond reputeStevePwns has a reputation beyond reputeStevePwns has a reputation beyond reputeStevePwns has a reputation beyond reputeStevePwns has a reputation beyond reputeStevePwns has a reputation beyond reputeStevePwns has a reputation beyond reputeStevePwns has a reputation beyond reputeStevePwns has a reputation beyond reputeStevePwns has a reputation beyond repute

Awards Showcase
Nice GUI 5 Month Vetern Tutorial Maker Most Improved Coder Innovation SRV's Man Award Clean Coder Advanced Coder Active Contributor 1 Year Vetern 
Total Awards: 12

Default

remember everyone starts somewhere man, keep it up and dont quit. you'll get it.
__________________
Click the image to open in full size.
Click the image to open in full size.
Click the image to open in full size.
Click the image to open in full size.

Click the image to open in full size.






Reply With Quote
  #7  
Old 07-30-2010
Kryptech's Avatar
Kryptech Kryptech is offline

 
Join Date: May 2007
Location: Right Behind You
Posts: 2,978
Downloads: 44
Uploads: 13
Rep Power: 24052
Kryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond repute
Kryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond reputeKryptech has a reputation beyond repute

Awards Showcase
Iteration Award 2000th Post Tutorial Maker Problem Solver Most Valued Coder Most Improved Coder Innovation Clean Coder Advanced Coder Active Contributor 
Total Awards: 19

Default

Yeah, stick with it man.

Time is the single most important thing with learning to code. Eventually it becomes second nature. Like KNOWFEAR said, sticking with it through the hard parts is the key to it. Gotta have that never die attitude.
__________________
Click the image to open in full size.

Reply With Quote
  #8  
Old 08-01-2010
Asylum Asylum is offline
Veteran Member
 
Join Date: Feb 2009
Location: Nunya Damn Biz
Posts: 213
Downloads: 38
Uploads: 3
Rep Power: 2314
Asylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond repute
Asylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond reputeAsylum has a reputation beyond repute
Default

I actually referred back to this exercise you helped me with for my other assignments. In the back of my brain I kept thinking "KT says I gotta try harder", and I did. Here is what else I worked on.

Code:
'Programmer: Asylum
'Created on 7/31/2010
'Purpose: creates a shortcut on my desktop to CPU-Z


Dim objShell, strDir
Set objShell = CreateObject("wscript.Shell")
strDir = objShell.specialFolders("desktop")

set shortcut = objShell.createShortcut(strDir & "\cpuz.lnk")
shortcut.targetpath = "C:\Program Files\CPUID\CPU-Z\cpuz.exe"

shortcut.description = "A link to CPUZ"
shortcut.HotKey = "ctrl+alt+C"
shortcut.save
__________________
Click the image to open in full size.

Reply With Quote
Reply

Tags
favor, por

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:31 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.