블로그
-
Hello World 분석
(* 코드는 이전 포스팅에 있던 내용을 그대로 가져왔습니다. )using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace HelloWorld{ class Program { static void Main(string
blog.naver.com · 2015.05.18
-
[C/C++] wcout 유니코드 출력
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
-
(영진전문대 컴퓨터프로그래밍전공반) C++ 상속에서 생성자와 소멸자
#include using namespace std; class Shape { int x, y; public: Shape() { cout << "Shape 생성자()"
blog.naver.com · 2012.11.20
-
(영진전문대 컴퓨터프로그래밍전공반) C++ 8장 연습문제(프로그래밍)
#include #include using namespace std; class Book { string title, writer; int page_number; public :
blog.naver.com · 2012.11.26
-
(영진전문대 컴퓨터프로그래밍전공반) c++ 7장 연습문제(programming)
작성하라. main()에서 이들 정적 메소드를 호출하여 테스트하여 보자. 1마일 == 1.609344킬로미터 1킬로미터 == 0.621371마일 #include #include using namespace std; class MyMetric { public: static double km; static double ml; static double kiloToMile
blog.naver.com · 2012.11.19