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

Search:

Type: Posts; User: Kmilano

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Thread: important

    by Kmilano
    Replies
    3
    Views
    1,052

    question

    the following code has a memory leak, why?



    class Base
    {
    public:
    virtual void doSomething() = 0;
    };
    class Derived : public Base
  2. Thread: Question

    by Kmilano
    Replies
    3
    Views
    700

    Re: Question

    could you please let me know how I can correct my code?
  3. Thread: Question

    by Kmilano
    Replies
    3
    Views
    700

    Question

    c++ program
  4. Replies
    1
    Views
    3,281

    Question-please help me

    I need to write c programming able to generate 3 processes able to work in a chain, for example, each process waits for a predecessor to start again, in a circular way(process 3 is the predecessor of...
  5. Replies
    1
    Views
    699

    an issue about obj. oriented programming

    Hello
    I need an alternative way to describe the following vector for using in the base class, because for inheritance, I must put a vector inside a base class and then it will call automatically in...
  6. Re: debug assertion error(there is a bug in my code)

    if I use it in both derived and base classes, I will have an error in (4)
  7. Re: debug assertion error(there is a bug in my code)

    thank you so much
    its totally correct
    just one question(last one :D)??

    I must use this vector which is a first vecto, as a void function in the derived class and virtual void in base class, but...
  8. Re: debug assertion error(there is a bug in my code)

    excuse me, I wrote a code wrongly in post #1

    here, in the following again I attached a correct code:
  9. Re: debug assertion error(there is a bug in my code)

    I applied all points you noticed in your poste, but I dont know why my code will return weird numbers(it must return binary numbers)
    my code in post #1 is working in release state in visual studio,...
  10. Thread: Question

    by Kmilano
    Replies
    3
    Views
    760

    Re: Question

    I used inheritance and object-oriented programming in c++ (visual studio)
    I have a base class and some derived classes.
    In the derived class, I defined some void function and inside them, one void...
  11. Thread: Question

    by Kmilano
    Replies
    3
    Views
    760

    Question

    In my code, I used a global vector which a content of another vector will return in this global vector for using and calling in another part of my code.
    when the inheritance is used, where I must...
  12. Re: debug assertion error(there is a bug in my code)

    about your reply in post #9
    a warning is for another loop(not the loop that you changed in #9)
    in this loop:
    for (i = 1, x = 0; i < pow(2, r); i = pow(2, x))
  13. Re: debug assertion error(there is a bug in my code)

    when I initialize element from zero the output of my code (special desired calculation among bits) will be wrong
    how I can solve this problem in your opinion??
  14. Re: debug assertion error(there is a bug in my code)

    on this line: Data[i] = rand() % 2; when I want to generate random numbers
  15. debug assertion error(there is a bug in my code)

    hello
    I prepared a following code in visual studio 2017 and when I want to run it in debug state then an error will occurred about debug assertion and I think there is a bug in my code(when I run it...
  16. Replies
    5
    Views
    942

    Re: question about defining a vector

    its possible to use binary numbers inside {}, but I'm looking a way to remove the whole {}
    how I can remove it?
  17. Replies
    5
    Views
    942

    question about defining a vector

    bb
  18. Replies
    11
    Views
    1,312

    Re: IMPORTANT-call the output of a matrix

    @2kuad

    could you please explain which element or variable must be called from the first matrix in first code for multiplying with the 1D matrix in second code??
  19. Replies
    11
    Views
    1,312

    Re: IMPORTANT-call the output of a matrix

    so I think the content of the first matrix is not used in the second code, in the following code just a 2D vector called matres is defined


    void Ham::Decode(std::vector<double> &codedVector,...
  20. Replies
    11
    Views
    1,312

    Re: IMPORTANT-call the output of a matrix

    Hello
    Dear @2kuad, your code works, but unfortunately I cannot use it in my code, because the decode vector generate randomly in another part of my code.

    the structure of the code must follow the...
  21. Replies
    11
    Views
    1,312

    Re: IMPORTANT-call the output of a matrix

    for a multiplication of 2 matrices if the bits of the first matrix(1D matrix with one row and 7 column) and the bits of each row of second matrix(which is the matrix correspond to the first code(with...
  22. Replies
    11
    Views
    1,312

    IMPORTANT-call the output of a matrix

    ee
  23. Thread: questionm

    by Kmilano
    Replies
    8
    Views
    844

    Re: questionm

    to do inheritance, for each void function which I apply in the derived class, I must define them in the base class and the header of derived class:

    in the file derivedClass.cpp I wrote your code...
  24. Thread: questionm

    by Kmilano
    Replies
    8
    Views
    844

    Re: questionm

    hello, In my code I used object-oriented programming and inheritance, so I must use the void function for inherite from base class,
    now this code works correctly without inheritence and out of my...
  25. Thread: questionm

    by Kmilano
    Replies
    8
    Views
    844

    Re: questionm

    thank you dear @2kaud, now it's perfect and correct.
Results 1 to 25 of 41
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)