2018年2月20日火曜日

開発環境

Head First C ―頭とからだで覚えるCの基本 (David Griffiths (著)、Dawn Griffiths (著)、中田 秀基 (監修)、木下 哲也 (翻訳)、オライリージャパン)の8章(スタティックライブラリとダイナミックライブラリ)、自分で考えてみよう(p. 353)を取り組んでみる。

自分で考えてみよう(p. 353)

//
//  main.c
//  sample1
//
//  Created by kamimura on 2018/02/20.
//  Copyright © 2018 kamimura. All rights reserved.
//

#include <stdio.h>
#include "encrypt.h"
#include "checksum.h"

int main(int argc, const char * argv[]) {
    char s[] = "Speak friend and enter";
    enc(s);
    printf("'%s'に暗号化しました。\n", s);
    printf("チェックサムは%iです。\n", checksum(s));
    enc(s);
    printf("'%s'に復号化しました。\n", s);
    printf("チェックサムは%iです。\n", checksum(s));
    return 0;
}

入出力結果(Terminal)

'Loz~t?ymvzq{?~q{?zqkzm'に暗号化しました。
チェックサムは89561741です。
'Speak friend and enter'に復号化しました。
チェックサムは89548156です。
Program ended with exit code: 0

1 コメント :

Unknownさんのコメント...

Gclub The benefits of eating macadamia

We choose to take care of the family. And a good diet is another matter that we should pay attention to it. Because we choose to eat good for the body, it will make our body immune to help prevent serious diseases, it is called eating good to help our body health is good. with For this, the website. Gclub . Online gaming providers, online gambling, there are also good tips on how to eat a good diet and help prevent disease.

And our website gclub casino mentioned the benefits of eating macadamia nuts to present it. Macadamia oil It is caused by the introduction of macadamia seeds to extract with cold extraction. But do not pass any chemicals. We will have pure oil.

And we can also eat macadamia oil. Because in macadamia oil is rich in omega-3 and unsaturated fats, this type of fat is beneficial to the body as well as the skin. Because in the macadamia oil is high in vitamin E. The skin is soft and moist, reduce wrinkles as well as me.

コメントを投稿