Thank you very much. It works!
Type: Posts; User: Petike
Thank you very much. It works!
Hello,
how to read all numbers from a file to std::vector?
I have tried this one:
ifstream in;
vector numbers;
.
Once more many thanks for answers.
Wow,
so that is great, I thought that only in the case of "pointers" (as function arguments) the slicing doesn't occur.
Thus, if I understand it well, when using the reference technique...
...
Thanks for answers.
So the best solution for me is probably what "medievalelks" said:
"I usually store (smart) pointers to the base in containers, so I use pointers in that case. When passing to a...
Hi,
I have a little problem about "polymorphism" in c++.
Just for beginning:
=================================================
In "Java" language, there are all the objects (or types) accessed...
I would say it in other words.
Almost always I have downloaded whatever game, application or other software, I have just installed it and then launch it, and it was running ok. And I want to do the...
Hi all,
how can I make in Visual Studio the application which will be stored only in one exe file?
I don't want the application to require some other resources (some dlls, or other stuff) when it...
Hi again,
I would have another question.
It should not be too hard to find out the best and the worst case of some algorithm.
But how can I find out the average case of some algorithm?
In other...
Thanks to both.
It is now much clearer to me.
Hi all,
I have some problems with "asymptotic notations". I have already learned the thery about that but there is still something unclear for me "in practice".
Let me show you some simple...
Thanks.
Thanks.
Hi,
is this type of comment supported in ANSI C:
printf("Hello World\n"); // Prints "Hello World"
Because I am not sure if it could be used only in C++.
Thanks.
Hi,
I have seen a lot that some function arguments use as prefix the "underscore" character. For example:
void* malloc(size_t _Size);
It is a common way to declare the function arguments...
Just a little question. What is "C99"? I have seen that also in some other posts here, but I have never seen it before? It is some type of compiler?
By the way, I use "Microsoft Visual Studio 2008".
Hi,
I have (unfortunately) found out that C doesn't support the "bool" keyword. So what is the most common (or best) way to use boolean statements in my code?
I have tried this:
typedef int...
Ohh, thaaaaaank you.
I can't believe I didn't try it before.
Now it works.
Thanks master5001
Hi master5001,
no I don't want to do anything with values, I would like to add to the pointer "pInt" a number for example 1, so that it would point to the address "1 byte" next to pInt and no "4...
Hi all,
let's say we have an array of char (thus array of "bytes"):
char pool[1000];
and let's say the 1st element of array is stored at address "00000000", the 2nd one at "00000001", the...
Thank you all very much for your answers.
Hi all,
let's say we have a fixed array:
char pool[10000];
And now we want to "allocate" (not using "malloc", just take the addresses from this static array) e.g. 5 bytes and save them in...
Thanks.
Hi all,
I would like to declare an array of "bytes" like that:
<SOMETHING> pool[10000];
For example:
char pool[10000];
Thank you both for nice explanation.