Forum: C++ Nov 7th, 2009 |
| Replies: 5 Views: 535 here is the code
#include <fstream>
#include <iostream>
#include <cstdlib>
#include <cctype>
using namespace std;
void open_file(ifstream& fin); |
Forum: C++ Nov 7th, 2009 |
| Replies: 5 Views: 535 Ill be away from my comp with the program for a few hours, but thanks for the answer. I spent like an hour google searching for that and found nothing. |
Forum: C++ Nov 7th, 2009 |
| Replies: 5 Views: 535 So far, I have only read about using void functions to take on ifstreams as a parameter. Yet I want to be able to make a single function that takes a file of numbers as a parameter, and do some... |
Forum: Python Mar 22nd, 2009 |
| Replies: 2 Views: 460 Hello python is my first language, and i have read 1 book on it and gone through a tutorial, but i still don't feel like i have a firm grasp on python. I hear the best way to master a programing... |
Forum: Python Mar 6th, 2009 |
| Replies: 1 Views: 299 Someone told me the error already, i wrote file.write() instead of f.write(). |
Forum: Python Mar 6th, 2009 |
| Replies: 1 Views: 299 Hello i Just learned about the Exec statement, so i trying to make a flash card program that saves your cards. The way that i wanna keep the cards persistent is to save a dictionary to a text file... |
Forum: Python May 20th, 2008 |
| Replies: 2 Views: 453 sorry mixed up on the tags
'readTextfile.py--reads and displays text files'
def opener():
#get filename:'
fname = raw_input('enter filename: ')
print |
Forum: Python May 20th, 2008 |
| Replies: 2 Views: 453 i recently started python and i wanna learn how to implement modules in my program, but when ever i try to string modules together it says function not callable how do u make functions callable and... |
Forum: Python May 11th, 2008 |
| Replies: 6 Views: 546 thank you so much, your fix worked perfectly |
Forum: Python May 11th, 2008 |
| Replies: 6 Views: 546 this is the code thats suposed to tell the user to type another number if its <100 or >0
elif number>100 and number<0:
number=int(raw_input("again")) |
Forum: Python May 11th, 2008 |
| Replies: 6 Views: 546 thank you, i have fixed most of my code now but i have 2 questions.
i fixed x+=1
elif x==1:
a=0 by changeing the elif an if. so my first question is why did it need to... |
Forum: Python May 11th, 2008 |
| Replies: 6 Views: 546 i am trying to teach myself python using this book called, core python programing by wesley chung. one of the exersises in this book says make a text based menu application that uses more than one of... |