KakaoTalk_20190606_001802318.png
  • 246x0w
Welcome
Curriculum
Install&Go
Board
실제 작동 상태를 확인하려면 라이브 사이트로 이동하세요.
  • 카테고리
  • 전체 게시물
  • 내 게시물
이재민
2020년 7월 23일

200723

게시판: 소스 코드 제출

/*

#include <iostream>


using namespace std;


class person

{

int id;

double weight;

string name;

public:

person(int i=1,string n="grace",double w=20.5)

{

this->id=i;

this->name=n;

this->weight=w;

}

void show()

{

cout << id <<' '<< weight <<' '<< name <<endl;

}

};


int main()

{

person grace,ashely(2,"ashely"),helen(3,"helen",32.5);

grace.show();

ashely.show();

helen.show();

}

*/














/*

#include <iostream>

using namespace std;



int big(int a,int b,int c=100)

{

if (c<=100&&b<=100&&a<=100)

{

if (a<b<c&&c<100)

{

return c;

}

else if (a<c<b&&b<100)

{

return b;

}

else if (c<a<b&&b<100)

{

return b;

}

else if (c<b<a&&a<100)

{

return a;

}

else if (b<a<c&&c<100)

{

return c;

}

else if (b<c<a&&a<100)

{

return a;

}

}

else

{

return 100;

}


}


int main()

{

int x = big(3,5);

int y = big(300,60);

int z = big(30,60,50);

cout << x << ' ' << y << ' ' << z <<endl;

}

*/














/*

#include <iostream>

using namespace std;



class mv

{

int *m;

int size;

public:

mv(int n=100,int k=size)

{

m=new int [n];


for (int i=0; i<k; i++)

{

m[i]=k;

}

delete []m;

}

};


int main() {

mv v = new mv;

}

*/

















/*

#include <iostream>

using namespace std;



class au2

{

int size;

public:

au2()

{


}


void setnum(int s[])

{


}

static int* concat(int s1[],int s2[],int size)

{


}

static int* remove(int s1[],int s2[],int size,int& retsize)

{


}

};

int main()

{

int k;

cout << "5개 입력하라. 배열 x에 삽입한다 >>";

cin >> au2::*concat(k);

cout << "5개 입력하라. 배열 y에 삽입한다 >>";

cin >> q[i];


}

*/













#include <iostream>


#include <string>

using namespace std;



class board

{

public:

static int x;

static string s;

static string add(string s1)

{


s.append("x: ").append(s1).append("\n");

x++;


}

static string print()

{

cout << s << endl;

}

};


int board::x = 0;

string board::s = "------게시판------\n";

int main()

{

board::add("중");

board::add("코");

board::print();

board::add("경");

board::print();

}


댓글 0개
0
댓글
댓글 0개
유사 게시물
  • 200723
  • 200723
  • 200723
주소 : 경기도 용인시 광교중앙로 302 블루 스퀘어 602호
연락처 : 031) 216 - 1546
사업자등록번호 : 465-92-00916
​학원 등록 제 4603호