🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.program
Article #678

Re: C++

#678
From: 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]
Technical Details
Message-ID: <3P9O5M$tbF@argo.zsu.edu.cn>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: fc86e,d5a131cc5622f641,start
X-Google-Attributes: gidfc86e,public
From: Saturn.bbs@argo.zsu.edu.cn (Tomoe Hotaru)
Subject: Re: C++
Date: 1998/06/18
Message-ID: <3P9O5M$tbF@argo.zsu.edu.cn>
X-Deja-AN: 363961342
X-Filename: Programming/M.898173190.A
Organization: Yat-sen Channel BBS
Newsgroups: cn.bbs.comp.program