Technote/Data Structure C++42 [C++] using 1 #include namespace A_COM { void function(void) { std::cout 2009. 9. 16. [C++] namespace #include namespace A_COM { void function(void) { std::cout 2009. 9. 16. [C++] in-line 함수 #include #define SQUARE(x) ((x) * (x)) int main(void) { std::cout 2009. 9. 16. [Data Structure] HomeWork 1 : pointer #include using namespace std; void f(int x,int& y) { int w= 16; x+=y; y =w+x; } int main() { int x = 10,y = 11,w = 12; f(x,y); x=10;y = 11;w = 12; f(y,x); x = 10;y=11;w=12; f(w,w); } #include using namespace std; bool sameArray(int A[],int sizeA,int B[],int sizeB) { int i; if(sizeA != sizeB)return false; for (i =0 ; i< sizeA;i++){ if(A[i] != B[i]) return false; } return true; } int main() { retu.. 2009. 9. 16. 이전 1 ··· 6 7 8 9 10 11 다음