Alright so I just started writing C and Python on my comp and I have a few questions before I can get started. Sorry for the noob questions I would appreciate if someone could just help me through it.
Python:
So I'm running Python on a Dell Inspiron 1400 on Windows XP. And I'm in the python interpreter. What do I put to point the interpreter to a file? I put python C:\Python32\test.py and it doesnt work. Also I dont like clicking on a file to open it cuz it just opens, runs and exits before I cam see anything. Am I doubt something wrong? Lol.
C:
Ok so im using a C compiler program (C++ Dev) and it works great. Except when I run a file, like in python, it just opens, runs and exits before I can see anything. How can this be prevented?
Thanks in advance.
A few questions.
Started by Gavin, Apr 25 2011 10:52 PM
10 replies to this topic
#1
Posted 25 April 2011 - 10:52 PM
Quote
Complainismo strikes again
#2
Posted 26 April 2011 - 01:08 AM
Bump ;)
Quote
Complainismo strikes again
#3
Posted 26 April 2011 - 01:12 AM
There is something about the closing right away when running python in cmd in my PDF tut I have. I believe I bookmarked it. I'll look for you :)
#4
Posted 26 April 2011 - 01:16 AM
Alright also can you see if you can find the link to that Bash PDF you have? Thanks bro :)
Quote
Complainismo strikes again
#5
Posted 26 April 2011 - 01:17 AM
Pm me your email I'll send it to you :)
#6
Posted 26 April 2011 - 01:18 AM
Damn takes forever to search a some-thousand page ebook using iBooks :(
#7
Posted 26 April 2011 - 01:29 AM
Gavon said:
Alright so I just started writing C and Python on my comp and I have a few questions before I can get started. Sorry for the noob questions I would appreciate if someone could just help me through it.
Python:
So I'm running Python on a Dell Inspiron 1400 on Windows XP. And I'm in the python interpreter. What do I put to point the interpreter to a file? I put python C:\Python32\test.py and it doesnt work. Also I dont like clicking on a file to open it cuz it just opens, runs and exits before I cam see anything. Am I doubt something wrong? Lol.
C:
Ok so im using a C compiler program (C++ Dev) and it works great. Except when I run a file, like in python, it just opens, runs and exits before I can see anything. How can this be prevented?
Thanks in advance.
Python:
So I'm running Python on a Dell Inspiron 1400 on Windows XP. And I'm in the python interpreter. What do I put to point the interpreter to a file? I put python C:\Python32\test.py and it doesnt work. Also I dont like clicking on a file to open it cuz it just opens, runs and exits before I cam see anything. Am I doubt something wrong? Lol.
C:
Ok so im using a C compiler program (C++ Dev) and it works great. Except when I run a file, like in python, it just opens, runs and exits before I can see anything. How can this be prevented?
Thanks in advance.
Python: from the cmd type python script.py or open it in IDLE and hit f5
C: add scanf("Press enter To exit...")
#8
Posted 26 April 2011 - 01:35 AM
For the python do you mean from the cmd window or python prompt? Cuz im on windows so I can't execute python from a cmd window
Quote
Complainismo strikes again
#9
Posted 26 April 2011 - 01:38 AM
Also the C one works great thanks a bunch.
Quote
Complainismo strikes again
#10
Posted 26 April 2011 - 02:46 AM
Gavon said:
For the python do you mean from the cmd window or python prompt? Cuz im on windows so I can't execute python from a cmd window
it does if you set the PATH right. or else just go to your python dir and then type python.exe C:\path\to\file.py
#11
Posted 26 April 2011 - 02:51 AM
Ok thanks
Quote
Complainismo strikes again











