Hi,
I am new to kdb. I got below code, which doesn’t work - could you
please let me know where I am going wrong?.
cout doesn’t print anything - it breaks in assigning columnNames.
int c = khpu(“localhost”, 9090 ,“id:pwd”);
K mytab, columnNames, columnData;
result = k(c,“d:name
salary! (tom
dick`harry;30 30 35)”,(K)0);
int nCols,nRows;
mytab=ktd(result);
columnNames=kK(mytab->k)[0];
columnData=kK(mytab->k)[1];
nCols=columnNames->n;
nRows=columnData->n;
cout << "Columns are : " << nCols << "Rows are : " << nRows << endl;
Thank you.