Click here to Skip to main content
15,910,981 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Direct input from a key Pin
RNEELY17-May-04 5:54
RNEELY17-May-04 5:54 
GeneralCode editor for Assembly, C and C++ Pin
Mekong River16-May-04 14:59
Mekong River16-May-04 14:59 
GeneralRe: Code editor for Assembly, C and C++ Pin
psmkb111024-May-04 21:58
psmkb111024-May-04 21:58 
GeneralRe: Code editor for Assembly, C and C++ Pin
Mekong River1-Jun-04 5:42
Mekong River1-Jun-04 5:42 
GeneralReturning a Pointer to a array... Pin
Axiverse14-May-04 18:31
Axiverse14-May-04 18:31 
QuestionHow do I get my pc to support php? Pin
Streetproject14-May-04 10:03
Streetproject14-May-04 10:03 
AnswerRe: How do I get my pc to support php? Pin
Member 122629419-May-04 3:18
Member 122629419-May-04 3:18 
GeneralString Parsing ! Pin
ra_sasi14-May-04 6:23
ra_sasi14-May-04 6:23 
I started with C++ recently Basically i am trying to overload the >> operator but couldn't succeed.The aim is to parse the string into different values.Infact this was provided with IBM open classes but not present with standard C++ string

#include <iostream>
#include <string>
using namespace std;

#define DELIM '~'

main()
{

string S="2~R~10/01/03~Personal Watercraft~Pers. Watercraft~9.0500~";
string s1,s2,s3,s4,s5,s6;

S >> S1 >> DELIM >> S2 >> DELIM >> S3 >> DELIM >> S;

S >> S4 >> DELIM >> S5 >> DELIM >> S6 >> DELIM;

}

Basically i am expecting the values between delimiters to be populated itno s1,s2...

I have declared this fucntion as in IOC
#ifdef __IOC_ANSI_STREAM
friend std::istream& operator>>(std::istream& aStream, string& aString)
#else
friend istream& operator>>(istream& aStream, string& aString)
#endif

Can you experienced guys let me know how to implement this or what has to be done to acheive the desired values.Thanks a lot in advance



Thanks
Sas
Generalemail for large attachements Pin
ramki_14-May-04 5:50
ramki_14-May-04 5:50 
QuestionCreate class trapezium with standard c++ ??? Pin
dung_niit13-May-04 22:25
dung_niit13-May-04 22:25 
AnswerRe: Create class trapezium with standard c++ ??? Pin
Maxwell Chen16-May-04 22:42
Maxwell Chen16-May-04 22:42 
GeneralDelegates in Managed C++ Pin
C LaMorticella13-May-04 5:42
C LaMorticella13-May-04 5:42 
GeneralRe: Delegates in Managed C++ Pin
Member 93002214-May-04 20:10
Member 93002214-May-04 20:10 
GeneralJay Nelson's addin for C++ comment doc Pin
Michael Kairys13-May-04 3:27
Michael Kairys13-May-04 3:27 
Generaljava to C++ Pin
Gra3y12-May-04 23:41
Gra3y12-May-04 23:41 
GeneralRe: java to C++ Pin
ian mariano13-May-04 10:04
ian mariano13-May-04 10:04 
GeneralRe: java to C++ Pin
Gra3y13-May-04 16:22
Gra3y13-May-04 16:22 
GeneralRe: java to C++ Pin
ian mariano13-May-04 17:54
ian mariano13-May-04 17:54 
GeneralRe: java to C++ Pin
Gra3y14-May-04 1:31
Gra3y14-May-04 1:31 
GeneralA C++ Problem, Pin
dung_niit12-May-04 21:30
dung_niit12-May-04 21:30 
GeneralRe: A C++ Problem, Pin
Maxwell Chen12-May-04 23:54
Maxwell Chen12-May-04 23:54 
GeneralLittle endian 4-byte integer in C problem with int = 10 Pin
javamanpro12-May-04 12:00
javamanpro12-May-04 12:00 
QuestionHow to get HDD fabric number? Pin
george ivanov11-May-04 22:05
george ivanov11-May-04 22:05 
QuestionHow to use Amazon Web Services.. Pin
Sumit Kapoor11-May-04 2:38
Sumit Kapoor11-May-04 2:38 
QuestionHow to use put_Picture Pin
GFABBRI10-May-04 23:38
GFABBRI10-May-04 23:38 

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.