Forum: C++ Oct 8th, 2009 |
| Replies: 2 Views: 217 This means that class x is inheriting class y using the public method meaning that it can contains the same public members as class x. |
Forum: C++ Aug 2nd, 2009 |
| Replies: 17 Views: 491 The constructor of an ifstream, ofstream, or fstream calls the open command with the supplied file, so the open command doesn't need to be called. |
Forum: C++ Aug 2nd, 2009 |
| Replies: 17 Views: 491 It works for me. How are you testing whether or not it is open?
What I did was add: if(answer == 'y' || answer == 'Y')
{
ifstream open("Person.txt");
while(!open.eof()) {
... |
Forum: C++ Aug 2nd, 2009 |
| Replies: 17 Views: 491 Sorry, I forgot to mention that if you use an fstream you have to declare the mode with flags if you're writing instead of reading. So, when you open it, you do data.open("Persons.txt", ios::out) for... |
Forum: C++ Aug 2nd, 2009 |
| Replies: 17 Views: 491 |
Forum: C++ Aug 2nd, 2009 |
| Replies: 17 Views: 491 Your problem is that data is an ofstream which can only be written to and not read from. If you tried to read from it to test if it was open it wouldn't have worked but if you use the member function... |
Forum: Python Jul 29th, 2009 |
| Replies: 1 Views: 171 \u201c is the unicode code for smart quotes which is why it slants. They come out like that because of how the file was originally written and won't change no matter how you read it. You can replace... |
Forum: Game Development Jul 26th, 2009 |
| Replies: 3 Views: 512 Hey, I wouldn't mind helping either, but just for something to do as I won't be able to commit too much time. I've got experience with PHP, Python, and C++, and, like swinefish, don't mind too much... |
Forum: JavaScript / DHTML / AJAX Jul 12th, 2009 |
| Replies: 3 Views: 430 You should use
document.bakeryImage.src=image |
Forum: Python Jul 10th, 2009 |
| Replies: 9 Views: 542 This should do it. You must set x to the line that the info is on
file = open('myfile.txt', 'r')
x = 2
while x:
line = file.readline()
x -= 1
words = line.split()
index = words.index('=')... |
Forum: PHP Jul 8th, 2009 |
| Replies: 1 Views: 249 This function should do the trick as long as you have the PHP GD libraries.
Pass two file paths and it will copy $srcim into $destim and resize it to the size of $size.
For more details see this... |
Forum: Troubleshooting Dead Machines Jul 2nd, 2009 |
| Replies: 2 Views: 1,014 I'm dealing with an Optiplex GX280 that was randomly freezing and then randomly shutting down. After a little bit it stopped turning on altogether and the only things that would happen were that I... |
Forum: USB Devices and other Peripherals May 18th, 2009 |
| Replies: 2 Views: 617 |
Forum: USB Devices and other Peripherals May 10th, 2009 |
| Replies: 2 Views: 617 I have an odd problem. My Epson Stylus Pro 9000 was working fine and then one day it just stopped working and only printed overlapping lines. I tried printing through both the computer and the... |