🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: cn.bbs.comp.program
1 messages
1 total messages Started by Tomoe Hotaru Thu, 18 Jun 1998 00:00
Re: C++
#678
Author: Tomoe Hotaru
Date: Thu, 18 Jun 1998 00:00
25 lines
1438 bytes
�� �� washington@argo (sam) �Ĵ������ᵽ: ��
: char* p is the same as  char *p;
: And I'm sorry that I don't know what the * mean there.
: �� �� iann@argo (ian) �Ĵ������ᵽ: ��
: : C++
: : char ch;
: : char choice=*"y";
: : person pn;
: : while(choice==*"y"||choice==*"Y")
: : {
: : A very easy question: what is the * here means? 
: : What is the difference between char* p and char *p?

"y"��һ���ַ�����ġ�ֵ����һ���ڴ�ָ�룬��*"y"��
�����ָ��ָ����ڴ浥Ԫ�����ݣ��༴���ַ�ĵ�һ���ַ�'y'��
�������д:
char *choice="y";
while(choice=="y"){...}
����Զ�õ�false���жϽ����Ϊ���DZȽϵ����ڴ�ָ�룬��ǰ������
�ַ�Ȼ�ѷ����˲�ͬ�ĵ�ַ���ҵ�˵��������
--
Super Sailor Saturn

�� ��Դ:��Yat-sen Channel argo.zsu.edu.cn��[FROM: nctws011.zsu.edu]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads