This code snippet is working for me...i just added "'.'" to ur code at cin.getline. Earlier...memset will initialize ur variable to '0'.
#define ARYA 3000
class Address
{
private:
char * cAddress;
public:
Address(); //Constructor...
You can use callback fn to sort the data
I wrote like this..
create a structure with the columns...
for eg., i 've 3 columns first name, last name and term
typedef struct {
LPTSTR pszLastName;
LPTSTR pszFirstName;
LPTSTR pszTerm;
} ITEMDATA, *PITEMDATA;
and use this structure to fill...
i wrote like this...it is working...
void main()
{
char str[256];
memset(str,0,255);
cout<<"Enter some text of test : ";
cin.getline(str,256,'.');
cout<<str<<endl;
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.