K

@kimjuha19

9(구조체 가장 비싼 물건 찾기)

C++
10 months ago
#include <iostream> #include <cstring> using namespace std; struct object { char name[20]; int pri; }; int main() {

8(구조체 검색)

C++
10 months ago
#include <iostream> #include <cstring> using namespace std; struct Student { char name[20]; int score; }; int main() {

7(구조체 포인터 함수)

C++
10 months ago
#include <iostream> using namespace std; struct Rectangle { int wid; int len; }; int main() { Rectangle r;

6(구조체 포인터)

C++
10 months ago
#include <iostream> using namespace std; struct Point { int x; int y; }; int main() { Point p;

5(학생 평균 점수 출력)

C++
10 months ago
#include <iostream> using namespace std; struct Score { char name[20]; int math, english, korean; }; int main() { Score s[5];

4(이름 생년월일(구조체 안 구조체))

C++
10 months ago
#include <iostream> using namespace std; struct Data { int year, month, day; }; struct Person { char name[20]; Data birthday;

3(나이가 가장 많은 사람의 이름)

C++
10 months ago
#include <iostream> using namespace std; struct Person { char name[20]; int age; }; int main() { Person p[3];

2(책 가격)

C++
10 months ago
#include <iostream> using namespace std; struct Book { char book[20]; int pri; }; int main() { Book b;

1(이름 나이 키)

C++
10 months ago
#include <iostream> using namespace std; struct Student { char name[20]; int age; int height; }; int main() {

10(x,y 좌표의 합)

C++
10 months ago
#include <iostream> using namespace std; struct Point { int x; int y; }; int main() {

3(포인터 이용해 값 바꾸기)

C++
10 months ago
#include <iostream> using namespace std; struct Student{ int age; char grade; }; int main() {

6(나이 평균 구하기)

C++
10 months ago
#include <iostream> using namespace std; struct Person { char name[20]; int age; }; int main() {

9(글자 뒤집기)

C++
10 months ago
#include <iostream> #include <cstring> using namespace std; struct Word { char text[50]; }; int main() {

5(가장 나이 많은 나이 구하기)

C++
10 months ago
#include <iostream> #include <cmath> using namespace std; struct Student { int age; }; int main() {

8(남여 숫자 구하기)

C++
10 months ago
#include <iostream> using namespace std; enum Gender {MALE,FEMALE}; struct person{ Gender gender;}; int main() { person p[3];

4(추운 계절 따뜻한 계절 분류하기)

C++
10 months ago
#include <iostream> using namespace std; enum Season {봄,여름,가을,겨울}; struct season{ Season season;}; int main() { season p[4];

2(두점 거리 구하기)

C++
10 months ago
#include <iostream> #include <cmath> using namespace std; struct Point { int x; int y; };

1(구조체 정의하기)

C++
10 months ago
#include <iostream> using namespace std; int main(){ } struct Student{ int age; char grade; };

구조체와 함수

C++
10 months ago
#include <iostream> #include <cmath> using namespace std; struct Point { double x; double y; };

최댓값 찾기

C++
10 months ago
#include <iostream> #include <climits> using namespace std; struct fruit { string name; int price; };