Browse Source

ConsoleApp1_ConventJero32O\

这是一个学习中的尝试。。。。
但DevCpp好像没有实现这个部端。。。。
proginn1658481853 1 year ago
parent
commit
daa7f5ec43
1 changed files with 56 additions and 0 deletions
  1. 56 0
      CppVuGerLoorinKoory/Set_TelpoornOo.cpp

+ 56 - 0
CppVuGerLoorinKoory/Set_TelpoornOo.cpp

@@ -0,0 +1,56 @@
+#include<iostream>
+using namespace std;
+
+typedef struct uInt_n{
+	int n1,n2;
+	uInt_n(int N_1,int N_2):n1(N_1),n2(N_2){
+	}
+	void Cout_up(){
+		cout <<n1 <<" :"<<n2 <<";"<<endl;
+	}
+}n_lotMeaker_Mn;
+
+//template<int Xn,int Ys>
+class obj_pint{
+	public:
+		virtual uInt_n Get_out() = 0;
+};
+
+template<int Xn,int Ys>
+class Pintione:obj_pint{
+	protected:
+		n_lotMeaker_Mn nMMnor;
+	private:
+		template<int nX,int sY> 
+		void Pintf_oRtf(Pintione<nX,sY> mInt_n){
+			cout <<"MInder:: 1 ..: ";
+			nMMnor.Cout_up();
+			cout <<"MInder:: 2 ..: ";
+			mInt_n.Get_out().Cout_up();
+			cout <<"endl frommnnr;"<< endl;
+		}
+	public:
+		Pintione():nMMnor(Xn,Ys){
+		}
+		template<int tx,int ty>
+		Pintione(Pintione<tx,ty> ptxy):nMMnor(tx,ty){
+		}
+	template<int nX,int sY> 
+	obj_pint * nKer_PintUp(Pintione<nX,sY> mInt_n){ 
+	    Pintf_oRtf<nX,sY>(mInt_n);
+		return new Pintione<Xn-nX,Ys-sY>();
+	}
+	uInt_n Get_out(){
+		return nMMnor;
+	}
+};
+
+int main(){
+	obj_pint *oPinter;
+	Pintione<2,5> iPing_25;
+	Pintione<1,4> iPint_14;
+	oPinter = iPing_25.
+	    nKer_PintUp(iPint_14);
+	oPinter->Get_out();
+	return 0;
+}