Esempio n. 1
0
//指定された文字の数を数える関数
int ccount(strtype x, char c) {
	int count = 0;
	char *p;
	p = x.get();//pに文字を受け取る
	while (*p) {
		if (*p == c) count++;
		p++;//次の文字に送る
	}
	return count;
}
Esempio n. 2
0
void show(strtype x){
   char *s;
   s=x.get();
   cout << s << endl;
}
Esempio n. 3
0
void show(strtype x){
   char *s;
   s=x.get();
   cout << a <<"\n";}