3讲_377802481

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 清清清清清清清清清清清清 清 C++ 清清清清清清清清清清清清清清 ►清清清清清清清清清清清清清清 ►清清清清清清清清清清清清清清清清清清清清清清清清清清清清清清清清清清清清清清清 ►清清清清清清清清清清清清 ­­­ 清 C 清清清清清清清 ►清 C++ 清清清清清清清清清清清清清清清清清清清清清清清清 ­­­ 清清清 C 清清清清清清清清清清清清清 清清清清清清清清清清清清清清清清清清清清 7 清清清清清清清清 CIMS 清清 #include "../require.h" #include <iostream> #include <string> using namespace std; class G { int i; public: G(int ii); }; G::G(int ii) { i = ii; } int main() { cout << "initialization value? "; int retval = 0; cin >> retval; require(retval != 0); int y = retval + 3; G g(y); } // DefineInitialize.cpp 8 清清清清清清清清 CIMS 清清 ► 清清清清清清清清清清清清清清清 清清清清清清清清清清清清清清清清清清清清清清清清 清清清清清清清 清清清 ►int a[5] = {1,2,3,4,5}; ►int b[6] = {8}; // 清清清清清清清 0 ►int c[7] = {0}; // 清清清清清清清清 0 清清清清清清清清清清清清清清清清 ►清清清清清清清清清清清 ►清清清清 9 清清清清清清清清 CIMS 清清 清清清清清 Y y3[1000] 清清 class Y { private: int t; public: Y(int A); //…………………………… }; Y y2 = {Y(1), Y(2), Y(3)}; 0 清清清清清清清清 CIMS 清清 ► 清清清清清清清清清清清清清清清清清 清清清清清清清清清清清 清清清清清清清清清清清清清清清清清 ►Y y3[1000]; 清清清清清清清清清清清清清清清清清清 ►Y y4; 清清清清清清清清清清清清清清清清清清清清清清清清清清清清清清清清清清 清清清清清清清清清清清清清清清清清清清清清清清清清清清清清清 Ex10 客客客客客客客客客 1...
View Full Document

This document was uploaded on 02/25/2014.

Ask a homework question - tutors are online