Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Greater & Less Than
#21
Code:
Sub deck_Initialize( c() As Integer )

  Dim suits As Integer
  Dim elements As Integer
  

  Redim c( 1 To 52 )
  For suits = 0 To 3
    
    c( suits * 13 + 1 ) = 13
    
    For elements = 1 To 12
    
      c( suits * 13 + elements + 1 ) = elements
      
    Next
    
  Next


End Sub


Dim cards() As Integer
Dim i As Integer

deck_Initialize( cards() )


For i = 1 To 13

  

  ? i; ":"; cards( i ),
  ? i+13; ":"; cards( i + 13 ),
  ? i+26; ":"; cards( i + 26 ),
  ? i+39; ":"; cards( i + 39 )

Next


Sleep
Reply
#22
what is the correct way of doing this?

Code:
IF slot5% > slot1% AND slot5% > slot2% AND slot5% > slot3% AND slot5% > slot4% THEN
highexample$ = held5$

END IF
Reply
#23
no idea. because that code has no context by itself. please post a full example of code.
Reply
#24
I prefer not to write the code here.

This new question is how can I write multiple operators to get the end result. Such as

slot1% = 10
slot2% = 7
slot3% = 5
slot4% = 4
slot5% = 1

This is where I'm having trouble with, writing the execution out.

IF slot1% > slot2% AND slot1% > slot3% AND slot1% > slot4% AND slot1% > slot5% THEN

...execute somthing

Am I writing it wrong, am I suppose to use buckets? or some comma's? If so where?
Reply
#25
Quote:I prefer not to write the code here.
I prefer not to guess at what you have in mind.

Quote:Am I writing it wrong, am I suppose to use buckets? or some comma's? If so where?
It depends. Explain why you are doing what you are doing, what your needs are - efficiency, flexibility, etc. - and post your algorithm and we might be able to help you. The best solution to a problem is rarely able to surface in such a small section of code.

(you'll probably get better advice with more information; there is no best way to solve software problems)
stylin:
Reply
#26
dude yeah. i'm sick oef people coming here and asking for us to help you, and acting like your code is something i've never seen. are you insulting me? are you saying your code is better than the code that i release for everyone to see??

you think i'm some robot who's designed to give you the answers? fuck that. you want something, you give something. the sooner you learn that, the sooner you stop looking like a fool.


and yeah, i've had a little to much to drink tonight, now you get a nice dose of reality.
Reply
#27
Quote:dude yeah. i'm sick oef people coming here and asking for us to help you, and acting like your code is something i've never seen. are you insulting me? are you saying your code is better than the code that i release for everyone to see??

you think i'm some robot who's designed to give you the answers? fuck that. you want something, you give something. the sooner you learn that, the sooner you stop looking like a fool.


and yeah, i've had a little to much to drink tonight, now you get a nice dose of reality.
Yarr! I agree..
Reply
#28
Unfortunately, the people who do that kind of thing are the same people who don't read a single post before posting, and ignore/insult anyone who tries to tell them anything other then the answer they want, even when the question they wrote sucks beyond belief. I'm not even sure if you made a sticked post called "READ THIS RIGHT FUCKING NOW IF YOU HAVENT BEFORE OR BE BANNED FOR FUCKING LIFE AND HAVE YOUR POSTS FUCKING DELETED" that they would read it.... :roll:

maybe we should put such a post on our forums :laughing:
[Image: freebasic.png]
Reply
#29
Quote:Yarr! I agree..

you only agree with me when i'm drunk and rowdy... :mrgreen:
Reply
#30
Quote:
Z!re Wrote:Yarr! I agree..

you only agree with me when i'm drunk and rowdy... :mrgreen:
Ofcourse..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)