كنت ابغي استخدام التيربو سي بلس بلس لانني استخدمها لاغراض التعليم ولم تشتغل في جهازي وهذا ذكر في موضوع اخر غير هذا اما اليوم فالموضوع كالتالي:
أستخدم
visual studio 2008
وبمنصة البرمجة في
visual c++ 2008
فوجدت هنالك فروقات بين تلك وبين التيربو سي بلس بلس واول ما واجهته التالي والذي حيرني...في حال كتابة البرنامج التالي
int main()
{
std::cout << 'This is a simple program that outputs some text.' << std::endl;
std::cout << 'you can output more lines of text" << std::endl';
std::cout << 'just by repeating the output statement like this.' << std::endl;
return 0;
}
#include <iostream>
تظهر الاخطاء التالية:
1>Compiling...
1>2.cpp
1>c:\users\ameer.b\documents\visual studio 2008\projects\2\2\2.cpp(4) : error C2015: too many characters in constant
1>c:\users\ameer.b\documents\visual studio 2008\projects\2\2\2.cpp(5) : error C2015: too many characters in constant
1>c:\users\ameer.b\documents\visual studio 2008\projects\2\2\2.cpp(6) : error C2015: too many characters in constant
1>Build log was saved at "file://c:\Users\ameer.b\Documents\Visual Studio 2008\Projects\2\2\Debug\BuildLog.htm"
1>2 - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
]1>------ Build started: Project: 2, Configuration: Debug Win32 ------
مع ملاحظة اني حين اقلل خرج الطباعة في كل من الثلاثة اسطر الى كلمة واحدة يتنفذ البرنامج بدون اخطاء!!!!!!!!!
اين المشكلة ؟؟؟ وكيف علاجها ؟؟؟