ch8_18.cpp
Upload User: gzy2011
Upload Date: 2021-02-09
Package Size: 20k
Code Size: 0k
Development Platform:

Visual C++

  1. //file ch8_18.cpp
  2. #include"iostream.h"
  3. void main(void)
  4. {
  5.  char buffer1[10]="ABC";
  6.  char buffer2[10]="ABC";
  7.  if(buffer1==buffer2) //是地址的比较
  8.  cout<<"equaln";
  9.  
  10.  else
  11.  cout<<"not equaln";
  12. }