www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/24/09:19:36

Date: Thu, 24 Apr 1997 15:06:15 +0200 (MET DST)
From: Miguel Murillo <mmurillo AT ideafix DOT cps DOT unizar DOT es>
To: djgpp AT delorie DOT com
Subject: It's a Bug? Please.
In-Reply-To: <5jmjve$jc5@lion.cs.latrobe.edu.au>
Message-ID: <Pine.LNX.3.95.970424150338.25520C-100000@ideafix.cps.unizar.es>
MIME-Version: 1.0

Error :
#include <iostream.h>
#include <stdlib.h>
#include <stdio.h>
#include <fstream.h>
#include "Mheader.h"
int main()
{       char *a="HOLA PAOLA";
        cout<<a<<endl;
        (a++)++;
        cout<<a<<endl;
        cout<<"\n Good bye....!!!"<<endl;

}

Fine :

#include <iostream.h>
#include <stdlib.h>
#include <stdio.h>
#include <fstream.h>
int main()
{       char *a="HOLA PAOLA";
        cout<<a<<endl;
        (a++);
        (a++);
        cout<<a<<endl;
        cout<<"\n Good bye....!!!"<<endl;

}

Why ? ...
It's a Bug 
			
	Miguel Murillo.


- Raw text -


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