Click here to Skip to main content
15,908,768 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Bad Coding? Pin
James R. Twine30-Jan-02 7:04
James R. Twine30-Jan-02 7:04 
AnswerRe: Bad Coding? Pin
Igor Proskuriakov30-Jan-02 7:15
Igor Proskuriakov30-Jan-02 7:15 
GeneralRe: Bad Coding? Pin
James R. Twine30-Jan-02 8:48
James R. Twine30-Jan-02 8:48 
AnswerRe: Bad Coding? Pin
Chris Losinger30-Jan-02 9:02
professionalChris Losinger30-Jan-02 9:02 
AnswerRe: Bad Coding? Pin
Joaquín M López Muñoz30-Jan-02 9:08
Joaquín M López Muñoz30-Jan-02 9:08 
GeneralChange the date of file! Pin
Mazdak30-Jan-02 6:14
Mazdak30-Jan-02 6:14 
GeneralRe: Change the date of file! Pin
Ravi Bhavnani30-Jan-02 6:24
professionalRavi Bhavnani30-Jan-02 6:24 
Generalstring usage problem Pin
30-Jan-02 6:00
suss30-Jan-02 6:00 
I am using string in my program.
I have the following lines in my code:(I am showing only relevant lines)


#include<string>
using namespace std;
........
.............
void main()
{
string myname("Stars");
string yourname;
yourname=myname;
cout<<myname;
}

i get="" compilation="" error="" for="" line..yourname="myname" (says="" "=" operator not defined stuff...)
also for line..cout<<myname (says " <<"="" not="" defined...)

how="" can="" i="" achieve="" what="" intend="" doing="" here?also="" how="" use="" cin="">>yourname?
Please help me.
GeneralRe: string usage problem Pin
Joaquín M López Muñoz30-Jan-02 7:51
Joaquín M López Muñoz30-Jan-02 7:51 
GeneralC++ Macros in Visual C++ Pin
30-Jan-02 5:18
suss30-Jan-02 5:18 
GeneralRe: C++ Macros in Visual C++ Pin
Bill Wilson30-Jan-02 10:14
Bill Wilson30-Jan-02 10:14 
GeneralForaging for Suggestions Pin
Roger Wright30-Jan-02 5:05
professionalRoger Wright30-Jan-02 5:05 
Generala question about exit() method Pin
Gérald Mercet30-Jan-02 4:59
Gérald Mercet30-Jan-02 4:59 
GeneralRe: a question about exit() method Pin
Ravi Bhavnani30-Jan-02 5:05
professionalRavi Bhavnani30-Jan-02 5:05 
GeneralRe: a question about exit() method Pin
Gérald Mercet30-Jan-02 5:17
Gérald Mercet30-Jan-02 5:17 
Generalloading bitmaps Pin
Rajveer30-Jan-02 4:13
Rajveer30-Jan-02 4:13 
GeneralRe: loading bitmaps Pin
.:: RockNix ::.30-Jan-02 4:12
.:: RockNix ::.30-Jan-02 4:12 
GeneralRe: loading bitmaps Pin
lucy30-Jan-02 6:40
lucy30-Jan-02 6:40 
GeneralRe: loading bitmaps Pin
Michael Dunn30-Jan-02 6:45
sitebuilderMichael Dunn30-Jan-02 6:45 
GeneralVC6 Pin
30-Jan-02 3:01
suss30-Jan-02 3:01 
GeneralRe: VC6 Pin
Rüpel30-Jan-02 3:04
Rüpel30-Jan-02 3:04 
GeneralRe: VC6 Pin
30-Jan-02 3:56
suss30-Jan-02 3:56 
GeneralRe: VC6 Pin
Jon Hulatt30-Jan-02 6:44
Jon Hulatt30-Jan-02 6:44 
GeneralRe: VC6 Pin
31-Jan-02 0:25
suss31-Jan-02 0:25 
GeneralRe: VC6 Pin
Jon Hulatt31-Jan-02 0:32
Jon Hulatt31-Jan-02 0:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.