The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Problem with vector<string> ...

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
rlewis Posted - 01/09/2005 : 4:59:57 PM
Origin Version (OriginPro 7.5-SR5 (B870)):
Operating System:WinXP-SP2
The following OC snippet illustrates the problem ...
Is there a way around this ..

void TestOne()
{
vector<char> vcbObj; // Compiles and executes with all casts except vector<string>
//vector<string> vcbObj; // OC Compiler does not like this ...
if(vctProcedure(vcbObj)==true)
{
out_str("Success");
return;
}
out_str("Failure");
}

bool vctProcedure(vectorbase &vcbObj)
{
int vcbType=vcbObj.GetInternalDataType();
switch (vcbType)
{
default:
return (false);
break;
case FSI_DOUBLE:
// Do Something
break;
case FSI_REAL:
// Do Something
break;
case FSI_SHORT:
// Do Something
break;
case FSI_LONG:
// Do Something
break;
case FSI_CHAR:
// Do Something
break;
case FSI_TEXT:
// Do Something
break;
case FSI_MIXED:
// Do Something
break;
case FSI_BYTE:
// Do Something
break;
case FSI_USHORT:
// Do Something
break;
case FSI_ULONG:
// Do Something
break;
case FSI_COMPLEX:
// Do Something
break;
}
return (true);
}

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000