الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

Help meeeeee

مغلق
بدأه mazen_is في 31 ديسمبر 2006 · 5 رد · 982 مشاهدة · في الأسئلة المجابة
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

The program is simple but i do not know where the problem is!

#include <isotream>

using namespace std;

void main ()

{

const float mult =5.0/9.0;

const int sub=32;

cout fahr , cent;

cout << "Enter fehrenheit temperature: ";

cin >> fahr;

cent = "Centigrade equivalent of "<<fahr

<<"is" << cent << endl;

return 0;

}

____________________________________________________________________________________________

The resulte:

____________________________________________________________________________________

--------------------Configuration: Sub1 - Win32 Debug--------------------

Compiling...

Sub1.cpp

d:\my c++ pro\1\sub1.cpp(1) : fatal error C1083: Cannot open include file: 'isotream': No such file or directory

Error executing cl.exe.

Sub1.exe - 1 error(s), 0 warning(s)

____________________________________________________________________________________________

and when i search about this problem (C1083) in MSDN

The tell me :

Fatal Error C1083

Cannot open filetype file: 'file': message

An error occurred opening the specified file.

Tips

This error can occur if the file, subdirectory, or disk on which it resides is read-only. In this case, make the file writable or move the file to a writable disk. See your operating system documentation for information on removing the read-only attribute from a file.

This error may be caused by not having enough file handles. Close some open applications and recompile.

Trying to open a file or directory for which you do not have permission can cause this error. Move the file to a directory where you do have access privileges, or ask your network administrator to grant you access to the file.

If an include file could not be opened, check that the INCLUDE environment variable is set correctly and that the name of the file is spelled correctly.

Using double quotation marks around a complete path specification in a #include directive causes the standard directories to NOT be searched. See The #include Directive in the Preprocessor Reference for more information.

_____________________________________________________________________________________________

But I couldn't find the problem what I can do???

I reinstalled the VC++ and no the problem still

Pleas Help me

:^)

#2

غير هذا السطر إلى

#include <isotream>

إلى

#include <iostream>

وهذا السطر

cout fahr , cent;

إلى

cout<<fahr<<cent;

وأخيراً لو غيرت عنوان الموضوع من

Help meeeeee

إلى

عنوان له معنى لأن عنوانك مخالف لقوانين المنتدى B)

#3

البرنامج به أخطاء أكثر والكود الكامل بعد التصحيح هو :

#include <iostream>
using namespace std;
int main ()
{
const float mult =5.0/9.0;
const int sub=32;
int fahr, cent;
cout << fahr << cent;
cout << "Enter fehrenheit temperature: ";
cin >> fahr;
cout << "Centigrade equivalent of "<< fahr << "is" << cent << endl;

return 0;
}

ولكن الكود يضل منطقياً خطأ حيث أن هذا البرنامج لا يقوم بأي وظيفة مفيدة .

وأعتقد أنك تريد أن تحول من الفهرنهايت إلى السيلليوس .

42_47.gif
#4

السلام عليكم ورحمة الله وبركاته

أولااا شكرااا جزيا على الردود وأسف على الاخطاء الموجودة في البرنامج

فأنا لا أعلم في لغة ال السي باس بلاس

وكلام الاخ ماجد صحيح

أما البرنامج:

#include <iostream>
using namespace std;
int main ()
{
	const float mult = 5.0/9.0;
	const int sub=32;
	float fahr, cent;
	cout << "Enter Fahrenheit temperature:  ";
	cin >> fahr;
	cent =(fahr - sub)*mult;
	cout << "Centigrade equivalent of  " << fahr << "is" <<cent << endl;
  return 0;
}

أما عن العنوان فأعتذر إن لم يكن مناسبا أو غير مرحب كتابة العنوان باللغة الانكليزية!

إن كان كذلك فأرجو ممن بيدهم سلطة تغيير العنوان أن يغيروة فاغاية هي شاهدة مشاركاتكم

الجميلة والمفيدة والغنية

شكرا لكم

#5

أخي mazen_is

ليس المنع بسبب اللغة

لكن هذه قواعد عنوان المشاركة

اقتباس
عنوان المشاركة

1 . يجب أن يكون عنوان المشاركة يدل على محتواها

2 . ان لا يحتوي على عبارات مثيرة مثل " النجدة " ، "الحقونا " ، " سؤال إلى أهل الخبرة " ، " طلب برنامج "

3. كما يمنع منعا باتا توجيه السؤال الي شخص بعينه لان هذا قد يدفع الاخرين الي عدم الاجابة ،و الهدف هو التفاعل من الجميع.

ما غير ذلك فيحق للمشرف غلق المشاركة مباشرة

على هذا الرابط

/index.php?showtopic=29343

#6

السلام عليكم أخواني الكرام

فهمت قصدك

شكرا لمساعدتك

شكرا لكل عضو في هذا المنتدى الكريم لا يبخل بمعلوماته على أحد

شكراااا

هذا الموضوع مغلق.

مواضيع مشابهة