Search Result

Collapse
2 results in 0.0031 seconds.
Keywords
Members
Tags
goto
  •  

  • matt murray
    started a topic Is there something similar to GOTO in python?

    Is there something similar to GOTO in python?

    So I'm trying to write a text based adventure game and there are going to be points where you'll have to travel back to previous rooms. I wasn't really sure of the best way to go about this. Also along the way you'll collect 3 keys and various loot. any help would be great. thanks -Matt


    Code:
    #Doors test
    
    def main():
    
        endprogram = 'no'
    
        while endprogram == "no"
    ...
    See more | Go to post
    Last edited by bvdet; Nov 30 '10, 01:49 PM. Reason: Add code tags

  • noob15
    started a topic Problem with "goto" in c
    in C

    Problem with "goto" in c

    Code:
    #include<stdio.h>
    int main()
    {
        int i=7;
        goto x;
        if(1){
            static int i=5;
            x:   printf("%d",i);
        }
        return 0;
    }
    output == 5

    Code:
    #include<stdio.h>
    int main()
    {
        int i=7;
        goto x;
        if(1){
            int i=5;
            x:   printf("%d",i);
    ...
    See more | Go to post
Working...