| www.delorie.com/archives/browse.cgi | search |
| From: | Mark Phillips <umphill5 AT cs DOT umanitoba DOT ca> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: _String.h |
| Date: | Wed, 23 Jun 1999 09:48:59 -0500 |
| Organization: | The University of Manitoba |
| Lines: | 18 |
| Message-ID: | <Pine.SUN.3.96.990623094722.7445A-100000@silver.cs.umanitoba.ca> |
| References: | <Pine DOT SUN DOT 3 DOT 91 DOT 990623154147 DOT 2661A-100000 AT is> <3770DE3B DOT 57B24320 AT unn DOT ac DOT uk> |
| NNTP-Posting-Host: | silver.cs.umanitoba.ca |
| Mime-Version: | 1.0 |
| X-Trace: | canopus.cc.umanitoba.ca 930149344 29854 130.179.24.6 (23 Jun 1999 14:49:04 GMT) |
| X-Complaints-To: | Postmaster AT cc DOT umanitoba DOT ca |
| NNTP-Posting-Date: | 23 Jun 1999 14:49:04 GMT |
| In-Reply-To: | <3770DE3B.57B24320@unn.ac.uk> |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
>
> Does anyone know what is going wrong here?
>
No, I don't. But this piece of code might do what you want:
#include <iostream.h>
#include <string> // Note lack of .h
int main() {
string a; // Note uncapitalization of string
a="Hello World";
cout << a << endl;
return 0;
}
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |