March 16th, 2010, 04:24 PM
0x0D is the CARRIAGE RETURN character. It could be a possibility the Windows is interpreting a newline as \r\n and inserting \r characters in your stream.
March 15th, 2010, 01:20 PM
You can start by checking out the following links.
FreeTDS http://www.freetds.org/
SQLAPI++ Library http://www.sqlapi.com/
March 9th, 2010, 05:37 PM
You can use string.format method to specify left or right padding.
March 8th, 2010, 04:58 PM
Static functions are member functions whereas friend functions are non-member function.
You should still be able to do:
class A
{
friend void FFF();
};
static void FFF(){}
March 3rd, 2010, 07:49 PM
You can try using fread() and then remove all newline characters from the string.
March 3rd, 2010, 05:53 PM
Yes you are correct. fgets does null terminate the string. But it also stops reading from the stream when it encounters a newline character. Could it be possbile that the output of /proc/cpuinfo has...
March 3rd, 2010, 05:29 PM
If the HTML is well formed you can try parsing it as XML. If it is not, you can look into HTML Agility Pack.
March 3rd, 2010, 05:27 PM
Like MrViggy said, line and type does not seem to be null terminated.
Are you able to print the processor info?
March 2nd, 2010, 02:37 AM
You should use these manipulators before you reference the variables. For example,
double x = 1.23456
cout << setprecision (5) << x << endl;
March 2nd, 2010, 02:20 AM
This part of your code does not instantiate an object of a class.
B * B_obj;
C * C_obj;
To do anything meaningful with the member variables and functions of a class you need to...
March 2nd, 2010, 02:00 AM
Pointer Array args is local to the function process_command(). When you return from this function, all data/memory contents associated with the local variables of process_command() will be destroyed....