This is not what I wanted.
I don't want pointer to the allocation it does to store the data.
I want a pointer to the actual vector structs in the memory, where it keeps all its members and etc'...
Type: Posts; User: walla
This is not what I wanted.
I don't want pointer to the allocation it does to store the data.
I want a pointer to the actual vector structs in the memory, where it keeps all its members and etc'...
Hello,
I just wrote a couple lines of code to see how the memory of vector variable is and I cant seems to make it show in the watch window.
vector<BYTE> buf;
buf.push_back('b');...
Just to say, I already gave up and changed this stupid goto :o
Anyway currently there is no finally there.
Let's say that is __finally
Does goto from catch make __finally irrelevant?
Thanks!
Every thread has another handle to the file (the same file to all) in order that every handle will hold its own offset.
Anyway, is it safe to read from the file in several thread at the same time...
VS.
Of course the code isn't mine, I need to maintain it while doing minimum changes.
Hi :D
Just to make sure, if there is goto from within try block then we will not arrive to finally, correct?
Thanks
we already managed but thanks, apparently this is not trivial, not all functions you can run :D
I will quote from wiki the solution :D:
"Interpreters of Reverse Polish notation are often stack-based; that is, operands are pushed onto a stack, and when an operation is performed, its operands...
Assume you have a complex structure (e.g. hash table) that you hold ptr to (pHash).
Now in the middle of nowhere, you would like to print the data within pHash (with no real time edit+compile) .
Is...
why
pa=&(data_buffer[0][0]); /* Pointer points at contents at [0][0] */
size=*pa; /* Put contents of pointer into (size)*/
why not just
size=data_buffer[0][0]
It is usually said about regular expressions :)
You have to go out on the evenings after work, only working is a guaranty for depression.
Sunlight is important too, at least 10 minutes a day!
just a guess:
author is only 30 chars long, maybe you try to put there something with more chars?
then you may fall in the printf.
because you want to show an error only when the user gives an input that is not album and also not single.
If you would put or there it will actually don't show an error never.
Let's assume there...
Interesting..
thanks :D
He didn't use anything from std
I wish to be the manly version of Nikita, this can be useful..
BTW, I didn't try to compile but I think the
using namespace std;
is unnecessary in your current implementation.
First of all I will recommend in the future to use more explanatory title.
Second, the problem is much more difficult than you are trying to solve in the code.
e.g. lets say n=10, then your...
There are some problems. for example:
itemNumber is a class member, the line
scanf(fPtr, "%d", &itemNumber);
is wrong.
you need to allocate memory for one Item and then use its data to put...
welcome :wink:
Simple google search could give you so many results.
here is one of them:
TUTORIAL: Defining and Overloading Operators in C++
I think this is the comment of the year! :)
I met some people that weren't really interested in computers and went to study it anyway, they were not happy.
Don't you like something else that can...
Hello!