Re: String.h
From: Noah Roberts (nroberts_at_dontemailme.com)
Date: 01/29/04
- Next message: ????: "code contains problem"
- Previous message: Armando: "Re: what is different between <fstream.h> and <fstream>MS VC++"
- In reply to: SenderX: "Re: String.h"
- Next in thread: Default User: "Re: String.h"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 29 Jan 2004 01:01:38 -0800
SenderX wrote:
>>#include <iostream.h>
>>#include <string.h>
>>
>>int main() {
>> string Name;
>> Name = "Carl";
>> cout << Name << endl;
>> return 0;
>>}
>
>
>
> #include <iostream>
> #include <string>
>
> int main()
> {
> std::string Name = "Carl";
>
> std::cout << Name << std::endl;
>
> return 0;
> }
>
>
or
#include <string>
#include <iostream>
using namespace std;
int main(void)
{
string Name = "Carl";
cout << Name << endl;
return 0;
}
-- "I can't help it, the Dominating Trolls made me."
- Next message: ????: "code contains problem"
- Previous message: Armando: "Re: what is different between <fstream.h> and <fstream>MS VC++"
- In reply to: SenderX: "Re: String.h"
- Next in thread: Default User: "Re: String.h"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|