- Upvotes Received
- 3
- Posts with Upvotes
- 2
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
- PC Specs
- MS win 7
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. … |
|
|
|
Re:
i want to download windows 3.1 it must be in .IMG format to dd to a usb card in linux for my pc. i want to run old software. |
|
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 … |
|
Re:
I have been advised by many people that it is better to use integer return type for main function instead of void ! I actually dont understand what return 0 means .. main returns 0 value to program ! What does that mean ?! Could you please help me understand … |
|
Re:
I'm getting weird letters and numbers when the array is being shown. What is the problem? I've initialized array1 with 10,20,...etc. So shouldn't it cout those numbers? [CODE] #include <iostream> using namespace std; void reverseArray(int[], int); int main() {//start main const int size = 5; //constant size of array is … |
|
Re:
Why doesn't the if else statement work? Please help... [ATTACH]16773[/ATTACH] |
|
Re:
Please help me....... I want to buy a book for C++... i want your suggestion for this..... i am confused... HELP..... |
|
Re:
Which is the best C++ IDE for windows that is free and where can i get it?I have tried downloading Code Blocks and Dev C++ but none of them works. |