#include #include using namespace std; int main() { char c[100]; cout > c; for (int i = 0; i < strlen(c); i++) { for (int j = 0; j
#include #include using namespace std; int main() { string name, address, age; cout
#include #include using namespace std; int main() { string s1, s2; cout
#include using namespace std; char& find(char a[], char c, bool& success); int main() { char s[] = "Mike"; bool b = false; char& loc = find(s, 'M', b); cout
#include using namespace std; class Accumulator { int value; public: Accumulator(int value) { this->value = value; }; Accumulator& add(int n); int get() { return value; }; }; Accumulator& Accumulator::add(int n) { value += n; return *this; } int main() { Accumulator acc(10); acc.add(5).add(6).add(7); cout
#include using namespace std; class Dept { int size; int *scores; public: Dept(int size) { this->size = size; scores = new int[size]; } Dept(const Dept&dept); ~Dept(); int getSize() { return size; } void read(); bool isOver60(int index); }; Dept::Dept(const Dept&dept) { this->size = dept.size; scores = new int[size]; for (int i = 0; i scores[i] = dept.scores[i]; } Dept::~Dept(..
1. #include using namespace std; int big(int a, int b); int big(int a, int b, int c); int main() { int x = big(3, 5); int y = big(300, 60); int z = big(30, 60, 50); cout
#include using namespace std; void swapArray(int* p, int* q, int size); void printArray(int* p, int size); int main() { cout
보호되어 있는 글입니다.