Search:

Type: Posts; User: Antigloss

Page 1 of 9 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    25
    Views
    7,376

    To write a wrapper for some obsolete code that...

    To write a wrapper for some obsolete code that takes array of c strings as its argument.
  2. Replies
    25
    Views
    7,376

    Thank you very much every one for your kindly...

    Thank you very much every one for your kindly help. Learnt alot from you.
  3. Replies
    25
    Views
    7,376

    To convert any container holding strings to an...

    To convert any container holding strings to an array holding c strings.
  4. Replies
    25
    Views
    7,376

    A Question About C++ Template

    Greetings.

    I wanna write a template function that accepts any container type (such as vector, set, list) but restricts the element type of the container to be string.

    I've tried this, but...
  5. Replies
    1
    Views
    2,005

    A Question On Inside the C++ Object Model

    I'm reading Inside the C++ Object Model, and I'm somewhat confused as described below:

    At the end of "1.2 A Keyword Distinction", the author pointed out that "This idiom is no longer recommended,...
  6. Replies
    4
    Views
    1,039

    a weird problem

    hi guys and gals, here i've got a problem and ask for your kindly help.



    #include <cstdlib>
    #include <cmath>
    #include <iosfwd>
    #include <iostream>
    #include <iterator>
    #include <vector>
  7. Replies
    42
    Views
    4,323

    well, i see. Thanks alot, everybody

    well, i see. Thanks alot, everybody
  8. Replies
    42
    Views
    4,323

    Can you please tell me which section of the...

    Can you please tell me which section of the Standard guarantees these behaviors and why the 1st behaviour is guaranteed? For what good?
  9. Replies
    42
    Views
    4,323

    but why the temporary object in the first sample...

    but why the temporary object in the first sample is destroyed when after main is finished where as the temporary object in the second sample is destroyed immediately? Test() creates just the same...
  10. Replies
    42
    Views
    4,323

    A Question On Reference Type

    First please look at the code



    #include <iostream>

    using namespace std;

    class Test {
    public:
  11. finally, i got how to specialize template methods...

    finally, i got how to specialize template methods


    class t {
    public:
    template <typename T>
    void tt(T i) { }
    };

    template <>
  12. but as you can see here, this is a complete...

    but as you can see here, this is a complete specialization, not partial.
    Partial specialization is OK for function too.
  13. [Help] A Question About Template Specialization

    compiled the following code


    class t {
    public:
    template <typename T>
    void tt(T i) { }
    template <>
    void tt(int i) { }
    };
  14. Replies
    4
    Views
    1,461

    that's because I commented out the errorous code ...

    that's because I commented out the errorous code


    // copy(vec.begin(), vec.end(), ostream_iterator<test>(cout, " "));

    it'll be a compile-time error if you uncomment this line.
  15. Replies
    4
    Views
    1,461

    Help about STL copy algorithm

    I defined a class `test' and also overloaded the << operator for it. It came out that I can apply cout to objects of test to print the contents to the console, but I got stuck when trying to print...
  16. Replies
    3
    Views
    3,369

    What if I don't fill it with anything? That is, I...

    What if I don't fill it with anything? That is, I don't write the following code


    12 memset (icmp->icmp_data, 0xa5, datalen); /* fill with pattern */
  17. Replies
    3
    Views
    3,369

    Question On how to Fill icmp_data

    The following code is from UNP



    1 #include "ping.h"

    2 void
    3 send_v4 (void)
    4 {
    5 int len;
  18. Please Suggest a Good Portable Network Programming Library

    I've tried ACE but found it not quite meet my need. I think it not better than using the native Unix APIs except that it is portable.

    Please kindly suggest me a good portable network programming...
  19. What happen when the stream is in an error state?

    In C++, when the stream is in an error state (e.g. eofbit being set), we cannot perform either read or write operation on that stream. But if it's in C, what happen when the stream is in an error...
  20. Replies
    1
    Views
    2,921

    What is Host Environment?

    As is shown above. What is host environment?
  21. Replies
    3
    Views
    15,799

    rewind(stdin); ? Right or Wrong?

    As fflush(stdin); is wrong. Some one suggests using rewind(stdin) to eliminate input buffer and also clear error state of the stream. Is that right?

    I used Dev-C++ to compile this code, and it...
  22. Replies
    1
    Views
    1,027

    Which functions set status indicators?

    I wonder which functions set status indicators. Could you please give me a list of those functions? Thanks.
  23. Yes. That's what I am thinking about.

    Yes. That's what I am thinking about.
  24. A Question On Specializaton. Please Help!

    Suppose I write a class as follows:



    template <class T1>
    class have_a_try
    {
    public:
    template <class T2>
    T2 test( const T2&, const T2& );
  25. Replies
    16
    Views
    3,968

    Sorry I didn't make my point clear. Let me try to...

    Sorry I didn't make my point clear. Let me try to make it clearer.

    C basic data type int is commonly 32-bit-long currently. Does any computer/compiler make int 64-bit-long instead of 32-bit-long?
Results 1 to 25 of 216
Page 1 of 9 1 2 3 4