www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/11/07/02:05:51

From: Alex Vinokur <alexvn AT bigfoot DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Assignment 'string = int'
Date: Wed, 07 Nov 2001 08:55:27 +0200
Organization: Scopus Network Technologies
Lines: 42
Message-ID: <3BE8DADE.2D461990@bigfoot.com>
NNTP-Posting-Host: gateway.scopus.co.il (194.90.203.161)
Mime-Version: 1.0
X-Trace: fu-berlin.de 1005116180 36498437 194.90.203.161 (16 [79865])
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

===============================================================
Windows98
gpp : GNU C++ version 2.95.3 20010315/djgpp (release) (djgpp)
      compiled by GNU C version 2.95.3 20010315/djgpp (release).
===============================================================

Is assignment 'string = int' legal ?


#########################################################
################### C++ code : BEGIN ####################
// File mmm1.c

#include <string>
int main()
{
string s1;
  s1 = 127;
  return 0;
}

#################### C++ code : END #####################

#########################################################
################### Compiling : BEGIN ###################

%gpp -Wall -W mmm1.c

--- No errors/warning detected ---

#################### Compiling : END ####################

  ===========================
  Alex Vinokur
    mailto:alexvn AT bigfoot DOT com
    mailto:alexvn AT dr DOT com
    http://up.to/alexvn
    http://go.to/alexv_math
  ===========================


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019