This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 교재 다운로드 | |
url.kr/w8gt9k | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
afasdfasd | |
fasd | |
fa | |
sdf | |
asdfasdfasdfsdfasdfsdfsdfasd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
using std::string; | |
class Tennis { | |
public: | |
const string tennis_score(int p1Score, int p2Score) { | |
if (isDeuce(p1Score, p2Score)) return "Deuce"; | |
if (isAdvantageForP1(p1Score, p2Score)) return "Advantage player1"; | |
if (isAdvantageForP2(p1Score, p2Score)) return "Advantage player2"; | |
if (isWinForP1(p1Score, p2Score)) return "Win for player1"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "gmock/gmock.h" | |
#include "customer.cpp" | |
TEST(CustomerTest, StatementForNoRental) { | |
//arrange | |
Customer customer{ string{"NAME_NOT_IMPORTANT"} }; | |
//act | |
string statement = customer.statement(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Sum { | |
public int getSum(int a, int b) { | |
System.out.println("기능을 추가한다."); | |
System.out.println("기능을 또 추가한다."); | |
return a + b; | |
} | |
} | |
public class Main { | |
public static void main(String[] args) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <vector> | |
std::vector<std::string> strs; | |
int map[5][50]; | |
std::string userdata; | |
int n; | |
int main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstring> | |
using namespace std; | |
int main() | |
{ | |
char vect[3][100] = { | |
"ABC", | |
"ABCDEFG", | |
"BTS", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <vector> | |
using namespace std; | |
string str = "ABABAKJKAJKAJSLKJATTATTSAKLA"; | |
int main() | |
{ | |
int dat[200] = { 0 }; |