Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~4K People Reached
Favorite Forums
Favorite Tags
Member Avatar for kent01981

Hi, I am trying to let a string(a sentance) to be red into mysql.but I only can do it within one word, how can I do more? this is my code: //---------------------------------- sql::Driver *driver; sql::Connection *con; sql::Statement *stmt; sql::ResultSet *res; driver = get_driver_instance(); con = driver->connect("localhost", "root", "qwerty"); con->setSchema("menagerie"); stmt …

0
58
Member Avatar for kent01981

How to store string words into individual variable For example: string str1(“Today is a very nice day!”); [B] then we need to store[/B] string s1 (“Today”); string s2(“is”); string s3(“very”); string s4(“nice”); string s5(“day”) Thanks a lot!

Member Avatar for jbennet
0
3K
Member Avatar for kent01981

Hi people, Can anyone helps me out. I need use C++ to do this: [U]"Use polymorphism to build an object which can be stored in a datastructure such as an stl::map but uses polymorphism to perform different actions depending upon the type. You may find an stl::map is also useful …

Member Avatar for Nick Evan
0
177
Member Avatar for kent01981

For example, when searching string_1 in MySQL table found NO RESULT, then want to add string_1 into database table. Using code below: while (res->next()) cout<<"This word means "<<res->getString(2); if (res==0)/[U]/I use this if statement , but don’t work![/U] { cout<<"Would you like to add this word to database?"<<endl; } What …

Member Avatar for Ancient Dragon
0
113
Member Avatar for kent01981

VC++ access MySQL query problem Hi guys, Could you help me out with ------------ string str1 res=stmt->executeQuery("select * from test2 where english='str1'"); ------------ anyone can tell me where is wrong with this query code?below is the error msg I got: 1>.\temp6.cpp(48) : error C2146: syntax error : missing ')' before …

Member Avatar for kent01981
0
291
Member Avatar for kent01981

Hi, I am doing a doorbell using P16F84A chip. I have programmed in asm in MPLAB 8.10,but the code is not working at all. no any errors show up, but just not working. please help me out. #include P16F84A.inc __CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & _RC_OSC errorlevel -302 org …

0
156