兴鹏's profileSimple's worldPhotosBlogListsMore Tools Help

Blog


    October 12

    Cocoa is GREAT

    今天第一次进行了基于Cocoa的编程。感觉很好。掌握了C的知识后,很容易掌握Objective-C的使用,之后再进行Cocoa编程就有一定的基础了。感觉上Cocoa程序开发比起Windows下的软件设计来有几个有点,第一是简洁,生成的代码很少但功能很强大,第二,类的添加和使用很直观,第三,使用连线的方式让对象之间互相调用更快捷和准确。使用Cocoa技术会让开发速度有显著的提高。我的第一个Cocoa应用程序是一个计算两个四元数之间的加法,减法和乘法的计算器。因为我在我们中心的研究课题和四元数相关,做个计算器会更方便以后进行四元数相关的操作。这个四元数计算器提供五种功能,加法,减法,乘法已经使用上次计算结果和清零。
    下面是初始界面,底部会有时间显示

    下面是四元数加法

    下面是四元数减法


    下面是四元数乘法


    下面是使用上一次的计算结果进行计算


    下面是将所有的系数清零




    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://xuxingpeng.spaces.live.com/blog/cns!22B91DD3E2D74DE!2572.trak
    Weblogs that reference this entry
    • None