View Single Post
ישן 06-09-06, 20:39   # 1
Elad-A
הוסטסניון
 
מיני פרופיל
תאריך הצטרפות: May 2006
הודעות: 1,987

Elad-A לא מחובר  

[C++] צריך עזרה במשהו.

שלום,

אני משתמש בקומפיילר של Dev-C++ וכשאני מנסה את הדוגמאות שיש בכתובת הבאה :

http://vlib.eitan.ac.il/cplusplus2/guide2-1.html

זה תמיד מחזיר שגיאות. ואני פותח בתור C++ ולא C ככה שזה לא הבעיה.

סתם לדוגמא ניסיתי להריץ את הקןד הבא:

קוד:
#include <iostream.h>


int main()
{
  cout<<"HEY, you, I'm alive!  Oh, and Hello World!";
  return 0;    
}
זה מחזיר:

קוד:
1 C:\Dev-Cpp\include\c++\3.4.2\backward\iostream.h:31,               from C:\Documents and Settings\Elad-A\Desktop\New Folder\Untitled1.cpp In file included from C:/Dev-Cpp/include/c++/3.4.2/backward/iostream.h:31,               from C:\Documents and Settings\Elad-A\Desktop\New Folder\Untitled1.cpp 
1 C:\Documents and Settings\Elad-A\Desktop\New Folder\Untitled1.cpp                  from C:\Documents and Settings\Elad-A\Desktop\New Folder\Untitled1.cpp 
32:2 C:\Dev-Cpp\include\c++\3.4.2\backward\backward_warning.h #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
חח מקוד כל כך קטן זה מה שיוצא..

אז מה הבעיה בקומפיילר או בקודים?
  Reply With Quote