www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/07/10:21:36

Message-ID: <147BBF8976F0D211888508002BA60B66015A68BA@mail8.ntu.edu.sg>
From: #CHUA CHAI GUAN# <PH877172 AT ntu DOT edu DOT sg>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: concatenation between integer and string
Date: Mon, 7 Aug 2000 22:20:46 +0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Reply-To: djgpp AT delorie DOT com

To whom it may concerns,

          Help needed. It should be a simple question. 
          I tried to automate the file-open command by assigning an routine
integer as follows:-

     FILE  *ftp;
 
     for ( i = 0; i < 20; i++)
     ftp = fopen("try" #i ".wts", "w"); 

 { assume that # cound concatenate the string and the integer, but in fact
it's not}

   Anyone have the solution ? Thanks in advance.


have a nice day
ccg
  

- Raw text -


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