Search the Community
Showing results for tags 'C++'.
The search index is currently processing. Current results may not be complete.
-
i need 1 correction: the screen only use 2D(X, Y) and not 3D(X, Y, Z)... so how can i create the perspective? is these math correct: PosX2D = PosX3D /(FocalDistance+PosZ3D); PosY2D = PosY3D /(FocalDistance+PosZ3D) ? i have seen several tutorials and seems that they have their own Perspective. understand these, i can create my own polygon and move front-back, and left-right.
-
#include using namespace std; struct node { struct node* head; int date; struct node* later; }; struct node* headnode()//Create table header { struct node* head = new struct node; head->head = head; head->later = head; return head; } //Node struct node* headnode(int dat) { struct node* headnode = new struct node; headnode->date = dat; headnode->head = NULL; headnode->later = NULL; return headnode; } // void print(struct nodehead,int date)//Head insertion method { struct node newhead = headnode(date); newhead->head = head; newhead->later = head->later; head->later->head = newhead; newhead->later = newhead; } void printf(struct node* head)//print { struct node* newnode = head->later; while(newnode != head) { cout << newnode->date << endl; newnode = newnode->head; } } int main() { struct node* head = headnode(); print(head, 44); print(head, 33); print(head, 22); printf(head); cout << "Really hard" << endl; system("pause"); return 0; }
-
Earlier versions of Windows come with CRTDLL.DLL, but not MSVCRT.DLL With a few minor patches to GCC it's possible to make it link against CRTDLL.DLL by default instead of MSVCRT.DLL. This means when you compile using the patched toolchain your program assuming it uses no features only available on newer versions of Windows will automatically work on older versions of Windows such as NT 3.51. By using the files from Mingw32 instead of Mingw-w64 it resolved an issue where DLLs would have a .tls section and LoadLibrary would fail on Windows 95 or it would cause crashing on Windows 98 or Windows 2000. I put C++ for pre-2000 in the title because I also patched out a few functions in libstdc++ which require Windows 2000 or later. If you are running Arch Linux you can checkout the PKGBUILD files. https://github.com/ComputerNerd/mingw32-crtdll If you are not a Linux person but want to use this, you can run Arch Linux using a Virtual Machine or look at the PKGBUILD files and run them manually.