Tuesday, February 11, 2014

Comment out

// OJT1.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//

#include "stdafx.h"
#include <stdio.h>

#define TRUE 1
#define FALSE -1
#define STRING_SIZE 256

int startPoint = 0;
int endPoint = 0;

int checkComment(char *);
int stOutput(char *);

int main()
{
    char str[STRING_SIZE];
    int i = 0;
    int comment;

    printf("文字を入力したください。\n");
    scanf("%s",&str);
   
    comment = checkComment(str);
    if(comment == TRUE)
    {
        stOutput(str);
    }
    /*
    for(i = 0; str[i] != NULL; i++)
    {
        printf("%c",str[i]);
    }       
    printf("\n");
    */
    return 0;
}

int checkComment(char *str)
{
    int i = 0;
    int startComment = 0;
    int endComment = 0;
    int checkComment = 0;

    for(i = 0; str[i] != NULL; i++)
    {
        printf("%c",str[i]);
        if(str[i] =='/' && str[i+1] =='*')
        {
            //printf(" /* を発見!!\n");
            startComment = TRUE;
            startPoint = i;
        }
        if(startComment == TRUE && str[i] =='*' && str[i+1] =='/')
        {
            //printf(" */ を発見!!\n");
            endComment = TRUE;
            endPoint = i + 2;
        }
    }
    printf("\n");
    checkComment = startComment * endComment;
    return checkComment;
}

int stOutput(char *str)
{
    int i = 0;
    int j = 0;

    //printf("stOutput\n");

    for(i = 0; i < startPoint; i++)
    {
        printf("%c",str[i]);
    }
    for(j = endPoint; str[j] != NULL ; j++)
    {
        printf("%c",str[j]);
    }
    printf("\n");
    return 0;
}

Thursday, January 27, 2011

About Wordpress .

Describe Wordpress.

 WordPress is an open source Content Management System (CMS), often used as a blog publishing application, powered by PHP and MySQL. It has many features including a plug-in architecture and a template system. WordPress is used by over 13% of the 1,000,000 biggest websites . WordPress has a web template system using a template processor .



Why is Wordpress useful?

 Because user can re-arrange widgets without editing PHP or HTML code; they can also install and switch between themes . The PHP and HTML code in themes can also be edited for more advanced customizations .



How would you use Wordpress and why?

 Because it uses easily very much, and is convenient .



How might Wordpress help you to learn English? (List 2 or 3 possibilities.)

Because it is possible to mutter with the foreigner .
And it is possible to touch an overseas person .

Is there any disadvantage to using Wordpress?

 The br-tag in the source is deleted and a necessary changing line not only is done but also a part of burial tag is deleted without permission.



 Administration is quite easy in Wordpress?
Describe the Wordpress administration system, and and two or three things the administrator can do.

 WordPress Multi-User (WordPress MU, or just WPMU) was a fork of WordPress created to allow multiple blogs to exist within one installation that is able to be administered by a centralized maintainer .

Thursday, January 20, 2011

About podcasting service.

 What is the most famous podcasting service?

  ESL podcast .


Describe that podcasting service.

 Podcast It is a system that can subscribe as for the program of the voice and the video .  


Why are podcasting services useful for language learning? Describe three reasons.


  A lot of good English courses are delivered to podcast free of charge. Because it is possible to hear it in wherever you like and when you like, you can study English easily.


Find some podcasting programs that you might listen to.

 ESL Podcast 650 – Buying Television and Movie Programs


Is there any disadvantage to using a podcasting service?

 I think that quite a lot of programs exist, it might be difficult to meet a really good program .


Explain how to use a podcasting service.

 Use it to study English by hearing it many times .

Thursday, January 13, 2011

About flickr

Describe flickr .

The comment can be mutually written by sharing with the stranger besides the photograph privately taken can be arranged, be classified, and be exhibited on the web. It made it hugely by popularity not only went out to the user as a community like such an image bulletin board and the social network service, etc. but also being widely used as a place of a joint keeping and sharing the photograph among bloggers .

Why is flickr useful ?

 Because it might encounter the photograph where it is possible to classify by putting every key word (meta data) that is freely called "Tag" in the photograph that someone improved in Flickr, the community is not formed with other users through tag, and tag was expected to be traced .


How often should flickr be used and why ?

It is necessary to be used every day because it is easy to use it very much .



How can flickr help you to learn English? (List 2 or 3 possibilities.)

The photograph pasted with an overseas person can be spoken .
Various photographs in the world can be seen.


Is there any disadvantage of using flickr?

There is a problem of the copyright.


Explain how to use flickr.

First of all, it logs it in .  A favorite photograph is pasted to the site after that and the photograph is shared each other . The usage is very easy .

Thursday, December 16, 2010

About map building service

Describe a map building service .

Online map information service . The shop, the restaurant, and the service, etc . of the region that can be scrolled by dragging it with the mouse, and specified can be retrieved, and a map of a target place and the near appearance be confirmed . The photographic display, the map, and the photograph where the satellite photograph besides a usual map display is displayed can be displayed combining it .


Why are map building services useful?

Because everyone can easily use it .


How often should map building services be used and why?

Because everyone can easily use it .
It is possible to use it even times how many because it is free . 


How can map building services help you to learn English? (List 2 or 3 possibilities.)

An overseas name of a place can be remembered .
The name of a place in English is understood . 


Is there any disadvantage of using map building services?

There is a possibility that the privacy issue is caused when the technology advances, and it becomes an application in real time .


Explain how to use a map building service.

First of all, it lives on a favorite site . If it is clicked to want to see in the map, the place is expanded .

Friday, December 10, 2010

About English mania

Describe the web service.(Describe how it works .)

 Twitter is communications services that can contribute the short sentence named, an individual user is "Tweet", and inspect it .


Why is it useful ?

Various clients and the client web services that have useful functions are open to the public, and by using them it is possible to do .


How often should it be used and why ?

 It is necessary to be used every day because the usage is very easy .


How can it help you to learn English ?

 Because it is possible to mutter with the foreigner .
And it is possible to touch an overseas person .


Is there any disadvantage of using this web service ?

The written content must disappear at once .


Are there any problems with how you use this web service ? What are they ?

There must be a person who writes abuse etc. , too . 

Thursday, November 25, 2010

About Twitter

Describe the web service.(Describe how it works .)

 Twitter is communications services that can contribute the short sentence named, an individual user is "Tweet", and inspect it .


Why is it useful ?

Various clients and the client web services that have useful functions are open to the public, and by using them it is possible to do .


How often should it be used and why ?

 It is necessary to be used every day because the usage is very easy .


How can it help you to learn English ?

 Because it is possible to mutter with the foreigner .
And it is possible to touch an overseas person .


Is there any disadvantage of using this web service ?

The written content must disappear at once .


Are there any problems with how you use this web service ? What are they ?

There must be a person who writes abuse etc. , too .