CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: shreyansj

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,706

    Re: fwrite adding random bytes?

    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.
  2. Replies
    1
    Views
    877

    Re: Use MSSQL Server in Linux Program

    You can start by checking out the following links.

    FreeTDS http://www.freetds.org/

    SQLAPI++ Library http://www.sqlapi.com/
  3. Replies
    1
    Views
    4,935

    Re: left or right justifying a text file

    You can use string.format method to specify left or right padding.
  4. Re: The 'inline' modifier and friend declarations

    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(){}
  5. Replies
    21
    Views
    4,545

    Re: trying to parse information from /proc

    You can try using fread() and then remove all newline characters from the string.
  6. Replies
    21
    Views
    4,545

    Re: trying to parse information from /proc

    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...
  7. Replies
    3
    Views
    657

    Re: Parsing HTML Help

    If the HTML is well formed you can try parsing it as XML. If it is not, you can look into HTML Agility Pack.
  8. Replies
    21
    Views
    4,545

    Re: trying to parse information from /proc

    Like MrViggy said, line and type does not seem to be null terminated.

    Are you able to print the processor info?
  9. Re: outFILE setprecision and right wont work

    You should use these manipulators before you reference the variables. For example,

    double x = 1.23456
    cout << setprecision (5) << x << endl;
  10. Re: Pure virtual functions and virtual functions

    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...
  11. Re: how can i modify an empty c-string passed into a function?

    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....
Results 1 to 11 of 11





Click Here to Expand Forum to Full Width

Featured