كود PHP:
#include<iostream>
using namespace std;
ثمّ عليك الانتهاء بِ
داخل ال mainكود PHP:
system("pause");
}
السلام عليكم
عندنا في الجامعة نستخدم الفيجوال سي القديم الاصدار السادس
وعندي في الجهاز الاصدار 2005
واريد اضافة
include<iostream.h#
والمشكلة انه لا يتعرف عليها وياتي بخطأ التالي
Cannot open include file: 'iostream.h': No such file or directory
البرنامج هو كالتالي:
#include <iostream.h>
class complex { public:
void add(complex);
void sub(complex);
void print(complex);
complex(int=1,int=1);
private:
double real , image;};
void complex:: add(complex h){
real+=h.real;
image+=h.image;
}
void complex::sub(complex r) {
real-=r.real;
image-=r.image;}
void complex:: print(complex s){
cout << real << image;}
complex::complex(int a,int b){
real=a;
image=b;}
void main (){
complex t1(2,3);
complex t2(1,2);
t1.add(t2);
t1.print(t2);
t1.sub(t2);
t1.print(t2);}
كود PHP:
#include<iostream>
using namespace std;
ثمّ عليك الانتهاء بِ
داخل ال mainكود PHP:
system("pause");
}
شكرا جدا لك اخي تم الحل........
المفضلات