Forum: C++ Oct 23rd, 2009 |
| Replies: 2 Views: 172 |
Forum: C++ Oct 23rd, 2009 |
| Replies: 2 Views: 172 Had a look at pointers in the tut I am following, and I can't really get my head around why their useful. It says they are, but tells you no more??? |
Forum: C++ Oct 21st, 2009 |
| Replies: 4 Views: 281 |
Forum: C++ Oct 20th, 2009 |
| Replies: 4 Views: 281 Error Report:
1>------ Build started: Project: Test, Configuration: Debug Win32 ------
1>Compiling...
1>main.cpp
1>c:\documents and settings\henry\my documents\visual studio... |
Forum: C++ Oct 20th, 2009 |
| Replies: 4 Views: 281 Hi,
I am trying to learn C++, and to a certain extent, yeah, it's going alright so far. but I keep getting problems with header files and the like, so I would be really grateful if you guys could... |
Forum: Python Jul 24th, 2009 |
| Replies: 2 Views: 159 was working through a lot of tuts, and just wanted to get a clear understanding of looping and list.pop(). I can see it's not very logical now though. lol
Still very very very noobish.
thanx tho |
Forum: Python Jul 24th, 2009 |
| Replies: 2 Views: 159 Playing about with python I thought about trying to write a program that gets a simple text file eg. hello %s, and using an adress book, loops through it, changing the %s every time into the next... |
Forum: Python Jul 21st, 2009 |
| Replies: 4 Views: 490 Thanks, I can't see why I couldn't work that out!
neway, problem solved. |
Forum: Python Jul 19th, 2009 |
| Replies: 4 Views: 490 Say I have a variable, 'New', who's value is Raw_input("Enter name: ") How could I take this variable and pass it into a class? |
Forum: Python Jul 3rd, 2009 |
| Replies: 6 Views: 308 Using 2.5.4:
came up with
Traceback (most recent call last):
File "C:/Python25/urltest.py", line 2, in <module>
pagetext = urllib.urlopen("http://www.python.org").read()
File... |
Forum: Python Jul 3rd, 2009 |
| Replies: 6 Views: 308 Right, so I looked at some python tutorials about interfacing with internet, but every time a use a code such as:
import urllib
pagetext = urllib.urlopen("http://www.python.org.html").read()... |
Forum: Python Jul 1st, 2009 |
| Replies: 22 Views: 864 Thanks guys, I'm all sorted now.
My comments on this page all sound the same right, well this sounds stupid, but i had no idea that the post had gon onto a second page therefore, I just assumed my... |
Forum: Python Jun 30th, 2009 |
| Replies: 22 Views: 864 OKay then, how would I place that in my code to solve the prblem? |
Forum: Python Jun 29th, 2009 |
| Replies: 22 Views: 864 So how could I put this into my code - saving the contents of the dictionary, and reopeninging them later. |
Forum: Python Jun 29th, 2009 |
| Replies: 22 Views: 864 being fairly unfamiliar with such code, how would that be placed within my code to enable me to save and load the data. |
Forum: Python Jun 29th, 2009 |
| Replies: 22 Views: 864 cheers, but do you have any ideas on pickleing this to create file io
especially regarding the load |
Forum: Python Jun 29th, 2009 |
| Replies: 22 Views: 864 sorry my mistake :)
intro = "Welcome to Adress_Book.py"
name_dic = {}
loop = 1
menu_choice = 0
class Data(object):
def __init__(self, home, mobile, email):
self.home = home |
Forum: Python Jun 29th, 2009 |
| Replies: 22 Views: 864 Using the code you gave me, I modified it a bit to enable more easy user interaction, but I want a function to change an attribute of an entry, say the email.
heres the code so far
intro =... |
Forum: Python Jun 29th, 2009 |
| Replies: 3 Views: 239 Thanks, that really helped me. But what is the point of 'returning' a value instead of just leaving it or printing it. |
Forum: Python Jun 29th, 2009 |
| Replies: 3 Views: 239 This will hopefully be my last noobish question post.
Please could somebody explain or link to explanation:
1.yeild
2.return
thanx in advance |
Forum: Python Jun 29th, 2009 |
| Replies: 9 Views: 387 |
Forum: Python Jun 28th, 2009 |
| Replies: 22 Views: 864 Thanks
that was extremely helpful |
Forum: Python Jun 28th, 2009 |
| Replies: 9 Views: 387 Sorry, please do use the other post, how can i delete this post |
Forum: Python Jun 28th, 2009 |
| Replies: 22 Views: 864 Thanks, but making the class instance the value of the dictionary does not work it just returns the location of the instance in hexadecimal notation.
I have rejigged the code:
class Data:
... |
Forum: Python Jun 28th, 2009 |
| Replies: 22 Views: 864 Hi attempting to make an address book program but hit a snag-
I have:
A class to give various attributes(phone numbers etc)to an instance
which then puts it all into a doc string which can be... |
Forum: Python Jun 28th, 2009 |
| Replies: 9 Views: 387 I was experimenting with python and was trying to create an adressbook style thing. I have a class which creates all of the neccasary attributes, but I also wanted a function which added things to... |
Forum: Python Jun 28th, 2009 |
| Replies: 9 Views: 387 Thanx for clearing that up.
Noobish question number 2:
python and the internet-
How can I embed python into HTML code and how do you interface with the internet using python |
Forum: Python Jun 28th, 2009 |
| Replies: 9 Views: 387 Hi,
I am pretty new to python and I have a really noobish question:
What does %s mean |