Search:
Type: Posts; User: Kmilano
Search:
Search took 0.02 seconds.
-
January 31st, 2019, 02:54 PM
the following code has a memory leak, why?
class Base
{
public:
virtual void doSomething() = 0;
};
class Derived : public Base
-
January 31st, 2019, 07:59 AM
could you please let me know how I can correct my code?
-
January 31st, 2019, 06:37 AM
-
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...
-
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...
-
April 29th, 2018, 04:25 PM
if I use it in both derived and base classes, I will have an error in (4)
-
April 29th, 2018, 01:16 PM
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...
-
April 29th, 2018, 10:10 AM
excuse me, I wrote a code wrongly in post #1
here, in the following again I attached a correct code:
-
April 29th, 2018, 09:35 AM
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,...
-
April 28th, 2018, 04:04 PM
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...
-
April 28th, 2018, 03:54 AM
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...
-
April 27th, 2018, 09:01 AM
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))
-
April 27th, 2018, 08:11 AM
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??
-
April 27th, 2018, 08:02 AM
on this line: Data[i] = rand() % 2; when I want to generate random numbers
-
April 27th, 2018, 07:18 AM
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...
-
April 26th, 2018, 06:27 PM
its possible to use binary numbers inside {}, but I'm looking a way to remove the whole {}
how I can remove it?
-
April 26th, 2018, 03:03 PM
-
April 24th, 2018, 11:48 AM
@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??
-
April 24th, 2018, 06:07 AM
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,...
-
April 24th, 2018, 03:47 AM
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...
-
April 23rd, 2018, 11:26 AM
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...
-
April 23rd, 2018, 10:24 AM
-
April 22nd, 2018, 09:04 AM
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...
-
April 22nd, 2018, 05:12 AM
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...
-
April 21st, 2018, 11:33 AM
thank you dear @2kaud, now it's perfect and correct.
|
Click Here to Expand Forum to Full Width
|