حبي الوحيد Posted أكتوبر 7, 2006 Report Share Posted أكتوبر 7, 2006 ممكن حل الاسيمنت.. http://img103.imegashacks.us/img103/4767/scanqv4.jpg وشكراااااااااااااااااا.. Quote Link to comment Share on other sites More sharing options...
bo_jssom Posted أكتوبر 7, 2006 Report Share Posted أكتوبر 7, 2006 تعرف تحله ولا اقول لك الحل Quote Link to comment Share on other sites More sharing options...
حبي الوحيد Posted أكتوبر 8, 2006 Author Report Share Posted أكتوبر 8, 2006 لا مااعرف احله.. Quote Link to comment Share on other sites More sharing options...
صدى الآهات Posted أكتوبر 8, 2006 Report Share Posted أكتوبر 8, 2006 اكا هذي الحل بس عدليه مادري ليش يصير لي عاليمين صاير شوي معتفس اذا ما فهمتي له بعدله لأن الحين حاطته عالسررريع #include<string> #include<iostream> using namespace std; int main(){ string name1,name2,name3; cout<<"Enter two names separated by a space: "; cin>>name1; cin>>name2; cout<<"\nBefore the swap:\n"; cout<<"The first name is: "; cout<<name1<<endl; cout<<"The seconed name is: "; cout<<name2<<endl; cout<<"\nAfter the swap:"<<endl; name3=name1, name1=name2, name2=name3; cout<<"The first name is: "; cout<<name1<<endl; cout<<"The seconed name is: "; cout<<name2<<endl; return 0; } Quote Link to comment Share on other sites More sharing options...
bo_jssom Posted أكتوبر 8, 2006 Report Share Posted أكتوبر 8, 2006 (edited) اتفضل اخوي ماطلبت #include<iostream> #include<string> using namespace std; int main() { string name1, name2, name; cin>>name1>>name2; cout<<"first name"<<name1<<"\n2nd name"<<name2; name=name1; name1=name2; name2=name; cout<<"first name"<<name1<<"\n2nd name"<<name2; return 0; Edited أكتوبر 8, 2006 by bo_jssom Quote Link to comment Share on other sites More sharing options...
حبي الوحيد Posted أكتوبر 10, 2006 Author Report Share Posted أكتوبر 10, 2006 شكرا ماقصرتوااااااا.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.