שאלה על visual 2008

שייקה 84

New member
שאלה על visual 2008

התקנתי עכשיו visual 2008 ואני לא מצליח לקמפל פרוייקט, אמרו לי שצריך לשים את ה include בלי h בסוף, אבל זה לא עוזר... מה עוד צריך לעשות? תודה רבה
 

selalerer

New member
help us help you

תגדיר "זה לא עוזר". איזה תוכנית כתבת? מה אתה מנסה לעשות? מה קורה בפועל? יש איזשהי הודעת טעות שאתה מקבל? אם כן, תעתיק אותה לפה.
 

שייקה 84

New member
טוב אז ככה

יש לי פרוייקט עם הקבצים הבאים (לכל אחד יש קובץ headr וקובץ cpp): Distance, City, Queue, Graph ועוד קובץ main.cpp ההודעה היא:
1>------ Build started: Project: 1, Configuration: Debug Win32 ------ 1>Compiling... 1>Queue.cpp 1>c:\documents and settings\שי\שולחן העבודה\לימודים\מונחה עצמים\operator2\op\Queue.h(4) : fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory 1>main.cpp 1>c:\documents and settings\שי\שולחן העבודה\לימודים\מונחה עצמים\operator2\op\Distance.h(5) : fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory 1>Graph.cpp 1>c:\documents and settings\שי\שולחן העבודה\לימודים\מונחה עצמים\operator2\op\Distance.h(5) : fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory 1>Distance.cpp 1>c:\documents and settings\שי\שולחן העבודה\לימודים\מונחה עצמים\operator2\op\Distance.h(5) : fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory 1>City.cpp 1>c:\documents and settings\שי\שולחן העבודה\לימודים\מונחה עצמים\operator2\op\Distance.h(5) : fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory 1>Generating Code... 1>Build log was saved at "file://c:\Documents and Settings\שי\My Documents\Visual Studio 2008\Projects\Project1\1\1\Debug\BuildLog.htm" 1>1 - 5 error(s), 0 warning(s)​
 
אתה צריך לעשות include ל iostream בלי h
include <iostream>​
ואחריו את השורה:
using namespace std;​
קרא בשאלות הנפוצות למה. אם עדיין יש לך בעיה תעלה לכאן גם את התוכנית שאתה מנסה לקמפל וגם את הודעות השגיאה שאתה מקבל.
 
למעלה