Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newby Declaration question 1

Status
Not open for further replies.

CodingIsFun

Programmer
Apr 9, 2004
134
US
Hi all experts,

I am new to c++, and have a project to revamp or convert some c++ code to a more inhouse usable language. No one in my group has ever used c++.

most of this makes sense, but I do have a few questions

(1) db_connection *pconn = get_connection();

What is the * for before the pconn variable.

(2) std::string strInitializeCountSql

just confirming that this is a string declaration, right?


(3) SELECT * from FROM test_%1% WHERE test_id=?"

what is the _%1% for?

Thanks in advance...
 
1) * maening a pointer to a variable/structure/object/etc of type db_connection

2) yes

3)the %1% will probably be used to substitute a variable into the SQL statement

If somethings hard to do, its not worth doing - Homer Simpson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top