redirection

grey nick

New member
redirection

שלום! מישהו יודע איך לבצע redirection(קריאה של קלט מקובץ) ב-vc++ ? תודה
 

nu shoin

New member
משהו כזה:

נגיד שקובץ הוא IN.TXT אז שמים את הקובץ בתיקיה של בפרויקט, נכנסים ל:
project->settings->debug​
ובשדה program argument רושמים:
<in.txt​
אם גם רוצים שהפלט יכוון לקובץ (out.txt)
<in.txt>out.txt​
 
למעלה