- Upvotes Received
- 3
- Posts with Upvotes
- 2
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
19 Posted Topics
Hi there, My question is about 2^(2n) = O(2^n) ; is it true or false? and we know that: [B]f(n) = O(g(n))[/B] if positive integers [B]c[/B] and [B]n0[/B] exist such that for every [B]n >= n0[/B] : [B]f(n) <= c*g(n)[/B] Based on the definition, I'm thinking the above statement is …
I'm studying Sipser's book [B]Introduction to the Theory of Computation[/B]. In [B]Time Complexity[/B] chapter the following NTM is given as a solution to HAMPATH problem (Hamiltonian Path [URL="http://en.wikipedia.org/wiki/Hamiltonian_path"]http://en.wikipedia.org/wiki/Hamiltonian_path[/URL]): -------- N = On input <G,s,t> where G is a directed graph with nodes [B]s[/B] (starting node) and [B]t[/B] (destination node): 1. …
OS: Windows 7 IDE: Visual Studio 2010 Ultimate (free MSDNAA license) using it for C++ and C#
I think it is still illegal to download Windows 3.1 for free and I doubt anyone still sells something that old. so, in my opinion, best thing to do is to contact Microsoft. May be somehow you can buy it directly from Microsoft, it shouldn't be expensive!
Hey there Geeks! Sorry if I'm posting this in the wrong place, it is about a .cpp file but it isn't about C++, it's about the text file. I was doing my graphics programming assignment with directx and it was somewhere around 80% done and suddenly I made a wrong …
Sorry if I'm posting this in the wrong place, it is about a .cpp file but it isn't about C++, it's about the text file. I was doing my graphics programming assignment with directx and it was somewhere around 80% done and suddenly I made a wrong turn with a …
[CODE] #ifndef HYS_MAIN_HEADER_H #define HYS_MAIN_HEADER_H #include <windows.h> #include <windowsx.h> #ifndef HYS_GLOBAL_VARIABLES #define HYS_GLOBAL_VARIABLES namespace hys { const short Null = 0; const bool True = 1; const bool False = 0; }; #endif // HYS_GLOBAL_VARIABLES #endif // HYS_MAIN_HEADER_H [/CODE] I want to avoid using macros as much as possible (C++ …
Is there any drawbacks for using "this" pointer? For example: [CODE] Window_Properties::Window_Properties(wchar_t* wnd_title, wchar_t* wnd_class_name): window_width(1280), window_height(720), window_X(0), window_Y(0) { this->window_title = new wchar_t[ wcslen( wnd_title ) ]; if( this->window_title ) { wcscpy( this->window_title, wnd_title ); } this->window_class_name = new wchar_t[ wcslen( wnd_class_name ) ]; if( this->window_class_name ) { wcscpy( …
This code is from MSDN ([url]http://msdn.microsoft.com/en-us/library/6t4fe76c(v=VS.80).aspx[/url]). [CODE] #include <string.h> class String { public: String( char *ch ); // Declare constructor ~String(); // and destructor. private: char *_text; size_t sizeOfText; }; // Define the constructor. String::String( char *ch ) { sizeOfText = strlen( ch ) + 1; // Dynamically allocate the …
What is the use of declarators in struct's definition? and what is a "tag declarator"? example from MSDN: [CODE] [template-spec] struct [ms-decl-spec] [tag [: base-list ]] { member-list } [declarators]; [struct] tag declarators; [/CODE]
Is an interface also a software? for example, DirectX and OpenGL, are they categorized as software?
hey guys, when i create and place object "A" for example at (0.0, 0.0, 0.0) and "B" at (0.0, 0.0, -10.0) the second object (B) "appears" to be in front of the first object (A) when the camera is at (0.0,0.0,+50.0) looking at -Z which is wrong because A is …
Has anyone tried (or heard about) this website's tutorials? I want a good tutorial on openGL for my computer graphics subject's project. Does it really worth 70$?! there is a demo available here: [url]http://www.gametutorials.com/gtstore/Download/Demos/GT_Demo.zip[/url]
Hi guys:) I just wanted to say that I'm really happy that I found daniweb! Truly a "friendly" online IT community just like "happygeek" said! I am tried of self-titled "experts" (trolls!) in programming forums act like they own the forum and [I]]no one with less experience[/I] should ask his …
This link will help you: [url]http://www2.research.att.com/~bs/bs_faq2.html[/url] Read the answer to " Can I write "void main()"? " question. In short words: 1. "[void main()] is not and never has been C++, nor has it even been C." 2. returning "0" means "successful execution" 3. "Even if your compiler accepts "void …
This is one way to do it. Just compare it to your code you will find the parts that I have changed. [code] #include <iostream> using namespace std; void reverseArray(int[], int); void displayArray(int[], int); void pause(); int main() { // const int size = 10; // int array1[size] = {10,20,30,40,50,60,70,80,90,100}; …
I add "Problem Solving with C++" by Walter Savitch to the books that "vijayan121" mentioned. It is the first book on C++ that I used (when I didnt know ANYTHING about the language). Stroustrup's book is better if you have enough time to read it from the beginning to the …
Bjarne Stroustrup recommends and uses Microsoft VC++ Express in his book "Programming: Principles and Practice Using C++" There must be a very good reason that the creator of the language himself didn't choose mingw as the compiler for this book. You can download MS-VC++ for free from here: [url]http://www.microsoft.com/express/Downloads/#2010-Visual-CPP[/url] or …
The End.
hystaspes