Daily Archives: March 4, 2008


a code snipet.

char s[] = “1.3 this is a test <><<?!\n";
istrstream ins(s);
char ch;
ins.unsetf (ios::skipws); // don’t skip spaces
while (ins) { // false when end of array is reached
ins >> ch;
cout << ch;

Another way to do string separation is to use strtok().


libcpd.lib link problem

I have visual studio.net 2005 beta installed, and half my projects will not work anymore. It seems that any programs that use the c runtime library fail! It looks like Microsoft didn’t package up these files they are missing from the lib directory. My error is : LINK : fatal error LNK1104: cannot open file ‘libcpd.lib’

You just need to go to the project settings, then in the linker tab, add ‘libcpd.lib’ to the Ignore Specific Library box and that should take care of it for now. Otherwise, you can download the Platform SDK which should have all the Win32 .libs you need.