Chapter 1 Example 1

//

//  main.cpp

//  Chapter1

//

//  Created by Daniel Chan on 12/14/14.

//  Copyright (c) 2014 Pookeye Inc. All rights reserved.

//

#include <iostream>

#include <string>

int main() {

    // ask for a persons name and greet the person.

    

    std::cout << “Please Enter your First Name: “;

    

    //read name

    std::string Firstname; //define the variable name

    std::cin >> Firstname; //read the name and put it into variable name

    std::cout << “Please Enter your Last Name: “;

    std::string LastName;

    std::cin >> LastName;

    

    //write a greeting

    std::cout << “Hello, “ << Firstname <<” “ << LastName << “!” << std::endl;

    

    

    return 0;

}

Posted in Uncategorized | Leave a comment

excercise 0-4

//

//  excercixe04.cpp

//  HelloWorld

//

//  Created by Daniel Chan on 12/13/14.

//  Copyright (c) 2014 Pookeye Inc. All rights reserved.

//

#include <iostream>

int main() {

    // excercixe04.cpp

    std::cout << “// a small C++ program” << std::endl;

    std::cout << “#include <iostream>” << std::endl;

    std::cout << “” << std::endl;

    std::cout << “int main()” << std::endl;

    std::cout << “{“ << std::endl;

    std::cout << “\t std::cout << \”Hello, World!\” << std:endl;” << std::endl;

    std::cout << “\t return 0;” << std::endl;

    std::cout << “}” << std::endl;

    

    

    return 0;

}

Posted in Uncategorized | Leave a comment

excercise 0-2

//

//  excercixe02.cpp

//  HelloWorld

//

//  Created by Daniel Chan on 12/13/14.

//  Copyright (c) 2014 Pookeye Inc. All rights reserved.

//

#include <iostream>

int main() {

    // excercixe02.cpp

    std::cout << “This (\”) is a quote, and this (\\) is a backslash” << std::endl;

    return 0;

}

Posted in Uncategorized | Leave a comment

0-0

//This is my first Hello World Program.
//  main.cpp

//  HelloWorld

//

//  Created by Daniel Chan on 12/13/14.

//  Copyright (c) 2014 Pookeye Inc. All rights reserved.

//

#include <iostream>

int main() {

    // First Hello World Program.

    std::cout << “Hello, World!” << std::endl;

    return 0;

}

Posted in Uncategorized | Leave a comment

I decided to create this blog to document my progress in Accelerated C++ book.

This blog will list all my code that I created, while going through this book, this blog is to keep me honest with how far I have gotten through with this book, as self learning is not an easy thing to keep motivated..

My goals are primarily to learn how to code and use it in a financial context.  as it seems all jobs are asking for coding experience…  this book seem to be highly recommended even though it doesnt use the C++11 material…  but I guess I’ll have to get another book for that topic…   lots to learn and little time…

Posted in Uncategorized | Leave a comment

Hello world!

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!

Posted in Uncategorized | 1 Comment