Search:

Type: Posts; User: leo2008

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    455

    It shows *(*ptr2+2) = 10

    It shows *(*ptr2+2) = 10
  2. Replies
    3
    Views
    479

    I am just curious to know what error in the...

    I am just curious to know what error in the function concatenate() defined above?
    The behavior of realloc() in first iteration of loop is undefined.
    Insufficient space is allocated to cat to...
  3. Replies
    3
    Views
    479

    error in function

    #include <stdio.h>


    int main()
    {
    char * concatenate(const char * first, ...) {
    char*cat = NULL;
    const char *p;
    va_list args;
    size_t len =1;
  4. Replies
    2
    Views
    455

    pointer dereference

    int x[] = {1,2,3,4,5}; int *ptr, **ptr2; ptr = x; ptr2 = &ptr;


    referring to the above code sample, how do you update x[2] to 10 using "ptr2"?

    Is it **(*ptr2+2) = 10 or **(ptr2+2) = 10 or...
  5. Thread: ofstream error

    by leo2008
    Replies
    9
    Views
    606

    I still got the same ofstream error at this line...

    I still got the same ofstream error at this line --> fs.open( outputFile, filename);



    ofstream outputFile;
    //ofstream fs;
    // create a name for the file output
    const std::string filename =...
  6. Thread: ofstream error

    by leo2008
    Replies
    9
    Views
    606

    Hi laserlight can you help me suggest a...

    Hi laserlight

    can you help me suggest a working code?
  7. Thread: ofstream error

    by leo2008
    Replies
    9
    Views
    606

    With above changes, output file (test.csv)...

    With above changes, output file (test.csv) doesn't even get created.
  8. Thread: ofstream error

    by leo2008
    Replies
    9
    Views
    606

    should i change code this way? ofstream...

    should i change code this way?



    ofstream outputFile;
    //ofstream fs;
    // create a name for the file output
    std::string filename = "test.csv";
    std::ofstream fs;
  9. Thread: ofstream error

    by leo2008
    Replies
    9
    Views
    606

    I think my compiler support c++11.I checked the...

    I think my compiler support c++11.I checked the Compiler settings and it shows "Language standard (-std) ISO C++ 11. Is that what you meant?
  10. Thread: ofstream error

    by leo2008
    Replies
    9
    Views
    606

    ofstream error

    I keep getting below ofstream error.
    [Error] no matching function for call to 'std::basic_ofstream<char>::open(std::ofstream&, std::string&)'

    What could be wrong here? Is it compiler issue? How...
  11. As far as i know, there is no reader writer for...

    As far as i know, there is no reader writer for CSV file in C++. do we need to use any libraries here like Boost?
    How can I sort the set of data stored in CSV file? I need to eliminate duplicate...
  12. Is it possible to use C++ or Java? Any sample...

    Is it possible to use C++ or Java? Any sample references would help here.
  13. need help to sort and remove duplicate entries

    I have an unsorted set of data that is stored in CSV file. I need to use time stamp to ensure the right set of data column. I need to eliminate duplicate entries from the set of data in CSV file....
  14. Replies
    10
    Views
    1,042

    Any suggestions here?

    Any suggestions here?
  15. Replies
    10
    Views
    1,042

    Need to improve the below code. class Foo...

    Need to improve the below code.



    class Foo
    {
    public:
    virtual void func() const = 0;
    };
    class Bar: public Foo
  16. Replies
    10
    Views
    1,042

    I need to improve the code as it gives some...

    I need to improve the code as it gives some compile errors...Need to fix them.
  17. Replies
    10
    Views
    1,042

    this is full code... #include ...

    this is full code...




    #include <iostream>

    using namespace std;
    class Foo
    {
  18. Replies
    10
    Views
    1,042

    Can someone help me as I am new to C++ and still...

    Can someone help me as I am new to C++ and still learning it. I see the below compile errors. how to fix it? any suggestions please.

    main.cpp: In member function ‘virtual void Bar::func()...
  19. Replies
    10
    Views
    1,042

    improve this cpp code?

    I need to improve this code.
    any suggestions?



    class Foo
    {
    public:
    virtual void func() const = 0;
    };
  20. typedef struct Node { value_t valueof; } Node;...

    typedef struct Node {
    value_t valueof;
    } Node;



    typedef struct BranchNode {

    struct BranchNode *left_node;
    struct BranchNode *mid_node;
  21. how to access pointer to member in nested structure on non class type in c++?

    typedef struct Node {
    value_t valueof;
    } Node;



    typedef struct BranchNode {

    struct BranchNode *left_node;
    struct BranchNode *mid_node;
  22. Replies
    7
    Views
    1,402

    How to create an object in the server and store...

    How to create an object in the server and store client specific data? Using FIFO is it possible or any other method?
  23. Replies
    7
    Views
    1,402

    Any sample reference code would help

    Any sample reference code would help
  24. Replies
    7
    Views
    1,402

    Do I need to serialised the info coming from...

    Do I need to serialised the info coming from client to server?? If so any third party library can be used to do this or use normal win 32 functions?? Please suggest.
  25. Replies
    7
    Views
    1,402

    Client must be able to send some data to server...

    Client must be able to send some data to server via FIFO, in a structure and server must store the information. How can I do this in c++???
Results 1 to 25 of 196
Page 1 of 8 1 2 3 4