Reputation: 1 Apprentice
- Active Posts:
- 22 (0.02 per day)
- 14-August 12
- Profile Views:
- Last Active:
- Sep 09 2014 10:33 AM
- Dream Kudos:
Posts I've Made
Posted 9 Sep 2014I wish not to use something less heavy and more lightweight in itself. I think I saw something about 'Vim' but not sure what exactly it is. If I must in the end, I'll download code::blocks (visual doesn't run on my computer for some reason,I already tried and it just crashes. Was on when I bought it)
Instead of making another thread for something quick, is there an easy program I can use that can compile and run c++. I'm looking for something simple with just text-like the IDE that comes with python install.
Posted 5 Sep 2014I know c++ can be interpreted in browser, and I was wondering if anyone knew a website that can interpret c++ and run it cross platform and use a graphics library too.
Posted 14 Jul 2014As I read it, it sounds almost exactly what i am currently trying to do-but more technical and strange. What i have now up there works if I take the function 'info' out of the class(and remove 'self'),but as it is now,does not work. I am trying to make it as easy as possible and doing 'pokemon.info(id#,wanted_element)' would be easier to understand than using just info outside of the class. But as I said, i get an error:
Traceback (most recent call last): File "C:\Users\Admin\Desktop\Pokemon Mengakana\pokemon.py", line 399, in <module> Pokemon.info(1,0) TypeError: unbound method info() must be called with Pokemon instance as first argument (got int instance instead)
I have the function inside the class and include the 'self' when needed.
Posted 14 Jul 2014I feel kinda stupid now of not thinking i could add tuple to new list and search through that new list. I want to add a function to my class to speed up and make things easier when finding a specific spot. When i create the function outside of the class, it works. But if i insert it into the class(+ adding self to top) and change the calling of it to include the class name, it spits out an error saying Pokemon must be called before info (got int instead)
import operator class Pokemon(object): def __init__(self,name): self.name=name self.pokemon=pokemon find=[ ('???',0,0,0,0,0,0,0,'???','???','???'), ('Bulbasaur',45,49,49,65,65,45,1,'grass','poison','medslow'), ('Ivysaur',60,62,63,80,80,60,2,'grass','poison','medslow'), ('Venasaur',56,80,83,100,100,80,3,'grass','poison','medslow'), ('Charmander',39,52,43,60,50,65,4,'fire',0,'medslow'), ('Charmeleon',58,64,58,80,65,80,5,'fire',0,'medslow'), ('Charizard',78,84,78,109,85,100,6,'fire','flying','medslow'), ] def info(self,pokemon,place): found=Pokemon.find[pokemon] print 'name:',found print 'Chosen Spot:',found[place] Pokemon.info(1,0)
(i honestly feel stupid about the previous post and how wasteful of space it is. Though,searching the web has found no results that have worked. All the ones I come to say i should do something like 'info=pokemon.info()' or of the sort. Did not work doing that either. I would be really appreciate if I could get this last piece of the puzzle found and placed, with this i should be able to do everything else i planned)
- Member Title:
- New D.I.C Head
- Age Unknown
- Birthday Unknown
- Click here to e-mail me
grimofdoom hasn't added any friends yet.