Search:
Type: Posts; User: Quentin026
Search:
Search took 0.03 seconds.
-
Hello,
I've a question regarding dijkstra's algorithm in C++. I've always used the following implementation:
struct edge //needed only for std::set, see below {
int vertex;
...
-
June 24th, 2013, 09:36 AM
Hi there,
I'm reading about a technique known as deletion by merging in context of binary search trees. Here's the PDF:
http://www.cs.mun.ca/av/old/teaching/4892/notes/bintrees2_quad.pdf
and...
-
Hi there,
I'm reading a book about data structures and algorithms and I've done 3 exercises on finding computational complexity of the given algorithms. Computational complexity in this case means...
-
I was actually wondering how I could receive those filenames within the program, but I forgot to simply test the argv array. It's all clear right now! Thx for help anyway.
-
Is it impossible to do it with "Send to"?
-
Hi there.
In windows' context menu there is an option "Send to.". I'd like to send a text file (or a few of them) by choosing this option and later my program.exe from the list. How can I handle...
-
November 22nd, 2012, 10:20 AM
Hi there,
I have to write tic-tac-toe game in Visual 2010. My only problem is that I don't know how I can move the cursor with arrows in the console in order to fill in chosen positions in 3x3...
-
August 7th, 2010, 09:29 AM
Now, I know why :)
According to the wxWidgets Wiki:
Yes, I heard something about that... Do you know why are they ignored ?
-
August 6th, 2010, 03:13 PM
It was my mental shortcut :p I know that a source file can't be precompiled.
And about that:
In wxDev-C++ I can't create a .pch from a .cpp file...
-
August 6th, 2010, 11:40 AM
Then why can a precompiled .cpp file contain those things ?
-
August 5th, 2010, 05:18 PM
Why is that ?
A precompiled header is - as the name says - precompiled (we have to compile it only once), so no matter in how many .cpp or .h files we'll include it - a compiler won't compile...
-
August 4th, 2010, 08:24 AM
Not exactly...
Like I said before, the MinGW compiler is able to build this kind of header. The full project rebuilding isn't necessary...
-
August 3rd, 2010, 03:49 PM
Hi there!
I've a quick question about precompiled headers. Why don't set every header file as precompiled in order to reduce compilation time ?
Has a precompiled header any disadvantages...
-
July 21st, 2010, 04:36 AM
Sorry, my mistake :)
Why would I need use a function object ? If I wanted to use that construction, I unnecessarily would have to define a class - when I don't need one...
-
July 21st, 2010, 02:02 AM
Don't forget that I've used use namespace std;, so now, global namespace = std namespace...
Using declaration is something like this ?
using std::cout;
using std::cin;
-
July 20th, 2010, 05:14 PM
Thanks, it helped :)
Can you explain me why :: operator is the solution :confused:
-
July 20th, 2010, 05:11 PM
Exactly...
I know, but in my type-casting which I'm doing by means of reinterpret_cast operator, the new type (here it is int (*)(int)) is exactly the same as while doing type-casting by means...
-
July 20th, 2010, 04:05 PM
Yes, it is, but there is a problem when we use this name in transform function in g++:
#include <algorithm>
#include <string>
#include <cctype>
using namespace std;
int main()
{
-
July 20th, 2010, 02:09 PM
Hi there!
I use g++ compiler which is built-in in Code::Blocks 10.05 and I have quite strange problem while using reinterpret_cast operator.
I'd like to convert following expression:
...
-
July 11th, 2010, 05:15 AM
No, I didn't mean base class :P
base-clause = base-specifier = base-specifier-list
It's a place where we specify base classes which we want derived from.
Simply put:
class A : public...
-
July 11th, 2010, 03:11 AM
Hi there!
I've got two questions about friend declarations.
1)
According to the 11.8.1 paragraph of C++03 standard:
-
August 19th, 2009, 03:30 AM
Hi there,
I've got two exactly the same class templates in two different files but linker (from MS Visual 2008 Express and DevC++ 4.9.9.2) doesn't show any errors. The question is: why ? It just...
-
July 15th, 2009, 04:11 PM
I get it now... Thanks very much :)
-
July 15th, 2009, 03:24 PM
But pointer's address in this example
template <int* p>
class X { };
extern iVar; //iVar is type int
X<&iVar> x;
-
July 15th, 2009, 02:17 PM
Is this template argument compile-time constant too, although iVar variable is in the other module of program?
template <int* p>
class X { };
extern iVar; //iVar is type int
X<&iVar> x;
|
Click Here to Expand Forum to Full Width
|