블로그
-
열혈 C++ chapter 2 - 6
StdCPPFunc.cpp 1234567891011121314151617#include #include #include #include using namespace std; int
blog.naver.com · 2015.08.13
-
문제 2 - 1, 2 - 2
문제 1 12345678910111213141516171819202122232425262728293031#include using namespace std; int add(int & namespace s.......
blog.naver.com · 2015.08.13
-
문제 2 - 3
12345678910111213141516171819202122232425262728293031323334353637#include using namespace std; typedef
blog.naver.com · 2015.08.13
-
열혈 C++ chapter 2 - 2 새로운 자료형 bool
TrueAndFalse.cpp 123456789101112131415161718192021222324252627#include using namespace std; int main(
blog.naver.com · 2015.08.13
-
[C/C++] wcout 유니코드 출력
( std::locale( "kor" ) ); // 이것을 추가하면 된다. std::wcin.imbue( std::locale( "kor" ) ); // cin은 이것을 추가#include using namespace std;int wmain ( int argc, wchar_t *argv[] ){ std::wcout.imbue( std::locale( "kor" )
blog.naver.com · 2015.02.02
-
[C++] 3.변수와 상수에 대해 알아 보자!
요즘 계속 C++ 강좌를 쓰고 있는데요, 댓글도 하나도 없고ㅠㅠ 아무도 안보는거 같은 기분이랄까< using namespace std; int main() { int kor,
blog.naver.com · 2014.08.18
-
[C++][구조체][Struct] 구조체 포인터를 사용한 예시
-> 애로우 연산자 str->멤버 (1) #include using namespace std; struct Rectangle{ int x,y,width,height; } namespace std; struct Dizzy{ int id; Dizzy*.......
blog.naver.com · 2014.01.24
-
[구조체][C++][배열]구조체 배열/포인터/함수 사용하기
#include #include using namespace std; struct Address{ string name; string phone; string address; };
blog.naver.com · 2014.01.27
-
ifostream, ofstream 파일 입출력.
파일 읽기 - ifstream 형식 : ifstream 객체명("파일명"); 예제 코드 #include #include using namespace std; int main() 파일에 출력 - ofstream 형식 : ofstream 객체명("파일명"); 예제코드 #include #include using namespace std; int main()
blog.naver.com · 2013.11.24
-
(영진전문대 컴퓨터프로그래밍전공반) c++ 7장 연습문제(programming)
클래스의생성자는이름생일입사일을매개변수로받는다 Employee(String name, Date& birthDate, Date& hireDate); #include #include using namespace std; class Date { private : int year; int month; int day; public: Date() { year = 0; month
blog.naver.com · 2012.11.19