Chủ Nhật, 8 tháng 3, 2015

Hướng dẫn cài đặt OpenGL.

 http://cdn.wolfire.com/blog/prototype/opengl2.png
Sau đây là hướng dẫn cài đặt OpenGL (Open Graphic Library) trên các phiên bản Visual Studio. Mặc dù OpenGL đã được cài đặt sẵn trên các driver đồ họa, tuy nhiên nếu không thiết lập và cài đặt thư viện Glut mới sử dụng các hàm này được.
0. Sự khác nhau về OpenGL và Glut:

  • OpenGL là thư viện đồ họa gồm các API về thuật toán vẽ hình, các phép biến đổi, phép chiếu của thực thể.
  • GLUT là thư viện quản lí cửa sổ, các thao tác nhập xuất như bàn phím, chuột, menu đơn. Cũng như các API liên quan tới việc giao tiếp của người dùng với OpenGL.
Và như vậy GLUT như 1 trung gian giữa end-user và thư viện OpenGL. Thông qua các sự kiện của người dùng, GLUT sẽ "catch" - tức bắt các sự kiện đó, phân tích rồi thực hiện theo cài đặt. Và OpenGL sẽ thực thi các lệnh vẽ, thông qua GLUT sẽ trả về kết quả trên màn hình.
1. Tải GLUT tại đây.
2. Giải nén. Trong đó có 3 file cần lưu tâm:
“glut32.dll” Chép vào thư mục C:\Windows\System32. (Nếu cẩn thận thì nên copy sang thư mục khác nữa là :C:\Windows\SysWOW64 )
“glut.h” Chép vào thư mục include của Visual C++.
  • Với phiên bản 2012: Chép vào: C:\Program Files\Microsoft Visual Studio 11.0\VC\include. Đối với bản 2012: thư mục gl không còn tồn tại nữa, thực tế các header file liên quan đến OpenGL đã được đưa đến nơi khác. Thư mục đó vẫn có tên là gl. Vì vậy đối với bản 2012. Khi lập trình ta cần include như sau:

    #include <glut.h>
    #include <gl/gl.h>
    #include <gl/glu.h>
  • Với phiên bản 2010: Chép vào: C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\gl.
  • Với phiên bản 2008: Chép vào: C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\gl.
  • Với phiên bản 2005: Chép vào: C:\Program Files\Microsoft Visual Studio.NET\Vc7\PlatformSDK\Include\gl
“glut32.lib” Chép vào thư mục library:
  • Với phiên bản 2012: C:\Program Files\Microsoft Visual Studio 11.0\VC\lib
  • Với phiên bản Visual Studio 2010: C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib
  • Với phiên bản Visual Studio 2008: C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib
  • Với phiên bản Visual Studio 2005: C:\Program Files\Microsoft Visual Studio.NET\Vc7\PlatformSDK\lib.
3. Thiết lập cho project Visual Studio.

  • Tạo một empty project Win32 console application.
  • Click chuột phải vào dự án ở Solution Explorer, chọn Properties. Phần Linker, mục Additional Dependence nhập các file sau:
    glut32.lib 
    glu32.lib
    opengl32.lib
  • Phần VC++ Directories, chọn mục Include Directories click edit vào trỏ đến đường dẫn tương ứng cho thư mục include ở phần trên. Làm tương tự với Library Directories.
4. Thứ tự include vào file cpp theo thứ tự sau:

#include <GL/glut.h>
#include <GL/gl.h>
#include <GL/glu.h>
5.Lưu ý: Khi include các thư viện stdio.h, stdlib.h thì phải include các file này trước, sau đó mới include các header file của GLUT

Project Source Code Manager on Google Code Using NetBean IDE and SVN


I. Google Code là gì?
Google Code là một trang web của Google trong đó tập trung các nhà phát triển các dự án phần mềm mã nguồn mở được hỗ trợ bởi Google. Trang có rất nhiều mã nguồn phần mềm và danh sách các dịch vụ có hỗ trợ các API công cộng để phục vụ cho việc phát triển các phần mềm hỗ trợ khác. Chúng ta sử dụng Google Code như 1 free web host để lưu giữ thông tin,source code cũng như những thư mục khác phục vụ cho project của nhóm.
Trang chủ Google Code tại VN : http://code.google.com/intl/vi-VN/

Thứ Bảy, 7 tháng 3, 2015

All kinds of C Sharp books

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXOVPyZJnuQOA10Y8JIypbu_uDyd0iD-DZ5KnqVDiKpgKqv4w8OkjA3fTtjjlTU7TcmYixo6x8roqW6CxMDt55_YbEmtJSHX33MRSwzWw52haZqtQ3O1VGq1pM3dJIyOOaZZG3F7r-N0_I/s1600/c-sharp-img.pngAll kinds of C Sharp books, for everybody who wants to program C Sharp.
from "for dummies" to mastering bibles... I hope you like this

List :


  1. (Ebook - Pdf) - 70-316 Mcsd Mcad - Correctexams - Developing Windows Applications With C Sharp (Ver 6.0).pdf
  2. (Ebook - Pdf) Msdn Training - Introduction To C Sharp Programming For The Microsoft .Net Platform.pdf
  3. (Ebook - Pdf) Programming C Sharp, 2nd Edition (O'reilly).pdf
  4. (Ebook Pdf) Deitel - C Sharp How To Program (Redistilled In One Book).pdf
  5. (Ebook Pdf) Ms Press Programming Windows With C Sharp By Ch Petzold.pdf
  6. (Ebook Pdf) Visual Studio C Sharp Book.pdf
  7. (Ebook) C Sharp - Introduction To Design Pattern In C Sharp Vol_2 - Ibm.pdf
  8. (Ebook) Professional C Sharp - Graphics With Gdi.pdf
  9. (Ebook).Thinking.In.C Sharp.(Revision.1).pdf
  10. (Ebook-.Net-C Sharp) C Sharp Com+ Programming .pdf
  11. 070-315 - Web Apps With C Sharp.pdf
  12. 070-316 - Windows Apps With C Sharp.pdf
  13. 070-320 - Web Services With C Sharp.pdf
  14. 2000 - Apress - A Programmer's Introduction To C Sharp.pdf
  15. 2000 - Apress - A Programmer's Introduction To C Sharp.pdf
  16. 2000 - Ms - C Sharp Language Reference.pdf
  17. 2001 - Hm - C Sharp Com+ Programming.pdf
  18. 2001 - Msdn - C Sharp Essentials Of Object-Oriented Programming.pdf
  19. 2001 - O'Reilly - C Sharp Essentials 2nd Edition.chm
  20. 2001 - O'reilly - Programming C Sharp.pdf
  21. 2002 - Apress - .Net Security.chm
  22. 2002 - Apress - Advanced Net Remoting (C Sharp Edition).chm
  23. 2002 - AW - C Sharp Developer's Guide to ASP.NET, XML, and ADO.NET.chm
  24. 2002 - Aw - C Sharp Primer, A Practical Approach.pdf
  25. 2002 - Hm - C Sharp, Your Visual Blueprint For Building .Net Applications.pdf
  26. 2002 - Ibm - Introduction To Design Patterns In C Sharp.pdf
  27. 2002 - Mcgraw - Advanced C Sharp Programming.pdf
  28. 2002 - Mh - Advanced C Sharp Programming.pdf
  29. 2002 - Microsoft - Programming Microsoft Windows With C Sharp.pdf
  30. 2002 - MS - Developing Windows-Based Applications with MS Visual Basic .NET and MS Visual C Sharp .NET.chm
  31. 2002 - Ms - Ms Visual C Sharp Net.chm
  32. 2002 - Msdn - Programming With C Sharp.pdf
  33. 2002 - O'reilly - C Sharp In A Nutshell.chm
  34. 2002 - O'Reilly - C Sharp Language Pocket Reference.chm
  35. 2002 - O'Reilly - Learning C Sharp1.chm
  36. 2002 - Premier - Microsoft C Sharp Programming For The Absolute Beginner.pdf
  37. 2002 - Premier - MS C Sharp Programming for the Absolute Beginner.chm
  38. 2002 - Sams - Teach Yourself C Sharp In 24 Hours.chm
  39. 2002 - Syngress - C Sharp.Net Web Developers Guide.pdf
  40. 2002 - Wiley - C Sharp Bible.pdf
  41. 2002 - Wiley - Professional C Sharp, 2nd Edition.chm
  42. 2002 - Wrox - C Sharp Today.chm
  43. 2003 - AW - .NET - A Complete Development Cycle .chm
  44. 2003 - AW - .NET for Java Developers - Migrating to C Sharp.chm
  45. 2003 - Aw - Essential Asp Net With Examples In C Sharp.chm
  46. 2003 - Aw - From Java To C Sharp - A Developer's Guide .chm
  47. 2003 - Aw - The C Sharp Programming Language.chm
  48. 2003 - Aw - Windows Forms Programming In C Sharp.chm
  49. 2003 - Ms - Asp Net Programming With Visual C Sharp Net 2003 Step By Step.chm
  50. 2003 - Ms - Ms Visual C Sharp Net Step By Step - Version 2003.chm
  51. 2003 - O'Reilly - C Sharp in a Nutshell, 2nd Edition.chm
  52. 2003 - O'reilly - Programming C Sharp.chm
  53. 2003 - Peachpit - C Sharp Web Development With Asp Net, Visual Quickstart Guide.chm
  54. 2003 - Sams - Ms? Visual C Sharp Net 2003 Developer's Cookbook.chm
  55. 2003 - Sybex - C Sharp Complete.chm
  56. 2003 - Sybex - C Sharp Network Programming.chm
  57. 2004 - Apress - C Sharp Threading Handbook.chm
  58. 2004 - Ms - C Sharp Programmer's Cookbook.chm
  59. 2004 - O'reilly - C Sharp Cookbook.chm
  60. 2004 - Wiley - Wrox - Beginning Asp.Net 1.1 With Visual C Sharp.Net 2003.pdf
  61. 2004 - Wiley - Wrox - Professional CSharp 3rd Edition.rar
  62. 2005 - Apress - Pro C Sharp 2005 And The .Net 2.0 Platform 3rd Edition.pdf
  63. 2005 - Ph - Core C Sharp And Net.chm
  64. 2005 - Wiley - CSharp 2005 For Dummies.rar
  65. 2005 - Wiley - Professional .NET 2.0 Generics.pdf
  66. 2006 - Apress - Beginning Asp.Net 2.0 In C Sharp 2005 From Novice To Professional.pdf
  67. 2006 - Aw - Applying Domain-Driven Design And Patterns - With Examples In C Sharp And .Net.chm
  68. 2006 - Aw - Essential C Sharp V2 0.chm
  69. 2006 - AW - Hitchhiker's Guide to Visual Studio and SQL Server, 7th Edition - Best Practice Architectures and Examples.chm
  70. 2006 - O'Reilly - C Sharp Cookbook, 2nd Edition.chm
  71. 2006 - Wiley - Beginning Visual C Sharp 2005.chm
  72. 2006 - Wiley - Beginning C Sharp 2005 Databases.pdf
  73. 2006 - Wiley - Wrox - Visual C Sharp 2005 Express Edition Starter Kit.pdf
  74. 70-305 70-315 Developing Web Applications With Visual Basic Net And Visual C Sharp Net - 2002.chm
  75. 70-316 Testking.Developing.Windows.Applications.With.C Sharp(Ver 2.0).pdf
  76. Addison Wesley - C Sharp Design Patterns 301-424.pdf
  77. Addison Wesley - Graphics Programming With C Sharp And Gdi+.pdf
  78. Apress - A Programmer's Guide To Ado Net In C Sharp.pdf
  79. Apress - Beginning ASP .NET 2.0 E-Commerce in C# 2005 - From Novice to Professional. 2005.pdf
  80. Apress - C Sharp And The .Net Platform, 2nd Edition.pdf
  81. Apress - C Sharp Class Design Handbook Coding Effective Classes (2003).chm
  82. Apress - C Sharp Programmers Handbook (2004).chm
  83. Apress - Database Programing With C Sharp.pdf
  84. Apress - Dissecting A C Sharp Application Inside Sharpdevelop (2004).pdf
  85. Apress - Net User Interfaces With C Sharp.chm
  86. Apress - Pro Asp.Net 2.0 In C Sharp.pdf
  87. Apress - Winform - Data Entry And Validation With C Sharp And Vb Net Windows Forms 2003.chm
  88. Apress.Accelerated.C.Sharp.2005.Aug.2006.pdf
  89. Apress.Beginning.Asp.Net.2.0.E.Commerce.In.C.Sharp .2005.From.Novice.To.Professional.Oct.2005.pdf
  90. Asp Net Website Programming, C Sharp.chm
  91. Asp.Net - C Sharp.pdf
  92. Aw - 2003 - Windows Forms Programming In C Sharp.chm
  93. Aw - 2004 - Effective C Sharp 50 Specific Ways To Improve.chm
  94. Aw - Net Compact Framework Programming With C Sharp.chm
  95. Beginning Asp Net 1.1 With Visual C Sharp Net 2003 (2004).pdf
  96. Beginning C Sharp Objects - From Concepts To Code (Apress, 2004).chm
  97. Bruce Eckel & Larry O'brien - Thinking In C Sharp.pdf
  98. Building An Online Shopping Cart Using C Sharp And Asp Net Part 1.pdf
  99. Building An Online Shopping Cart Using C Sharp Part 2.pdf
  100. C Sharp - Introduction To Design Pattern In C Sharp Vol_3 - Ibm.pdf
  101. C Sharp 2.0 Practical Guide For Programmers.pdf
  102. C Sharp And The .Net Platform.pdf
  103. C Sharp Developer's Guide To Asp Net, Xml, And Ado Net.pdf
  104. C Sharp Developer's Headstart [Mcgraw-Hill, 2001, 0-07-219108-2].pdf
  105. C Sharp Essentials 2nd O'reilly 2001.chm
  106. C Sharp Network Programming.chm
  107. C Sharp.Network.Programming.pdf
  108. C Sharp.Vb.Net.Ms Press - Oop With Microsoft Vb.Net And C Sharp Step By Step.pdf
  109. Computing With C Sharp And The Net Framework 2003.chm
  110. Correctexams Mcsd 070-320 Exam Xml Web Services And Server Components With C Sharp.Net V1-2003.pdf
  111. Correctexams Microsoft 70-315 Mcsd Mcad Develop & Implement Web Apps With C Sharp Edt6.pdf
  112. Creating Custom Net Controls With C Sharp.pdf
  113. Data Structures And Algorithms With Object-Oriented Design Patterns In C Sharp.pdf
  114. Developing A Universal Data Access Layer Leveraging Ado.Net, C Sharp And Factory Design Pattern.pdf
  115. Developing And Implementing Web Applications With Visual C Sharp Net And Visual Studio Net Exam Cram 2 (Exam 70-315).chm
  116. Dissecting A C Sharp Application.pdf
  117. Distributed Net Programming In C Sharp.chm
  118. Dot Net Remoting - [Ms Press] - Ms Net Remoting - (2003) - (Code Samples In C-Sharp).chm
  119. Exam 070-320 - Mcsd Mcad - Xml Webservices And Server Components With C Sharp .Net (V 6.0).pdf
  120. Expert C Sharp 2005 Business Objects, 2nd Edition (2006).pdf
  121. For Dummies - Visual Studio .Net C Sharp For Dummies Quick Reference Guide.pdf
  122. Gdi Programming - Creating Custom Controls Using C Sharp.pdf
  123. Introduction To 3d Game Engine Design Using Directx 9 And C Sharp.chm
  124. Introduction To C Sharp Programming For The Microsoft .Net Platform.pdf
  125. Learning C Sharp 2005, 2nd Edition (2006).chm
  126. Manning - Windows Forms Programming With C Sharp.pdf
  127. Mastering Asp.Net With C Sharp.pdf
  128. Mastering C Sharp Database Programming - Sybex.pdf
  129. Mastering C Sharp Database Programming.chm
  130. Mcad Mcsd 70-305,70-315 Developing Web Apps With Vb Net & Visual C Sharp Net, 2nd Ed.chm
  131. Mcad Mcsd 70-306,70-316 Developing Windows-Based Apps With Vb Net & Visual C Sharp Net, 2nd Ed.chm
  132. Mcad Mcsd 70-310,70-320 Developing Xml Web Services & Server Components With Vb Net & Visual C Sharp Net.chm
  133. Mcgraw-Hill Visual C Sharp 2005 Demystified 282006 1 29.chm
  134. Microsoft C Sharp Programming For The Absolute Beginner (2002).pdf
  135. Microsoft C Sharp Programming For The Absolute Beginner - Premier Press - 2002.pdf
  136. Moc 2555a Msdn_Training_-_Developing_Microsoft?_.Net_Applications_For_Windo ws?_(Visual_C Sharp).pdf
  137. Ms Press 2002 - Oop With Microsoft Vb.Net And C Sharp Step By Step.pdf
  138. Ms Press Extreme Programming Adventures In C Sharp.chm
  139. Ms Press Programming Ms Visual C Sharp 2005 The Language Jan 2006 Internal.chm
  140. Ms Visual C Sharp 2005 Step-By-Step (2005).chm
  141. O'reilly - C Sharp And Vb Net Conversion Pocket Reference (2002).chm
  142. O'reilly - C Sharp And Vb Net Conversion Pocket Reference 2002.chm
  143. O'reilly Linq The Future Of Data Access In C Sharp 3 0 Oct 2006.chm
  144. Oreilly Programming C Sharp 2nd.pdf
  145. Prentice Hall - Application Development Using C Sharp And .Net (2001).pdf
  146. Prentice Hall - C Sharp How To Program (2001).pdf
  147. Prentice Hall - Thinking In C Sharp (2002).pdf
  148. Pro .Net 2.0 Code And Design Standards In C Sharp, 3rd Edition (2006).pdf
  149. Pro Asp.Net In C Sharp 2005.pdf
  150. Pro C Sharp 2005 And The .Net 2.0 Platform (Apress, 3rd Ed).pdf
  151. Pro C Sharp And The .Net 2.0 Platform, 3rd Edition (2005).pdf
  152. Programming C Sharp (2001).pdf
  153. Programming C Sharp 4th 2005.chm
  154. Programming Microsoft Windows With C Sharp (2002).pdf
  155. Sams - Teach Yourself The C Sharp Language In 21 Days.pdf
  156. Sitepoint.Build.Your.Own.Asp.Net.2.0.Web.Site.Usin g.C.Sharp.And.Vb.2nd.Edition.Nov.2006.pdf
  157. Visual C Sharp .Net Developer's Handbook (2002).pdf
  158. Visual C Sharp .Net Programming (2002).pdf
  159. Visual C Sharp 2005 - How To Program, 2nd Edition (2005).chm
  160. Visual C Sharp 2005, A Developer's Notebook (Liberty).chm
  161. Wiley - C Sharp Bible.pdf
  162. [0735615683]Oop.With.Microsoft.Vb.Net.And.C Sharp.Step.By.Step.pdf
  163. [193183654x]C Sharp For Java Programmers.pdf
  164. [Ms Press] - Microsoft Ado.Net Step By Step (Vb.Net, C Sharp).pdf


[DOWNLOAD]http://up.4share.vn/d/231112141a111212[/DOWNLOAD]
Pas:chiaseit.vn

Thứ Sáu, 6 tháng 3, 2015

Toàn bộ tài liệu Học Viện Viễn Thông 5 năm học



Toàn bộ tài liệu ĐTVT 5 năm học
Properties: 588 files, 5,4 GB
Status: Being updated

1 – CODING LIKE A BOSS
(164 files, 814 MB)
2 – NETWORKING
(31 files, 437,9 MB)
3 – ELECTRIC & ELECTRONIC CIRCUITS
(14 files, 245,2 MB)
Tài liệu khác: Nguồn điện máy tính, Nhận biết transistor,…
4 – DIGITAL SIGNAL PROCESSING
(72 files, 1,1 GB)
5 – MICROPROCESSORS & MICROCONTROLLERS
(34 files, 502,7 MB)
6 – EMBEDDED SYSTEM
(42 files, 706,6 MB)
7 – TELECOMUNICATION SYSTEM
(197 files, 1,1 GB)
8 – BIOMEDICAL ENGINEERING
(9 files, 68,9 MB)
9 – UNCATEGORIZED COURSES
(14 files, 144,9 MB)
Chi Tiết

Chuyển Đổi Danh Sách Cạnh Sang Ma Trận Kề

#include<stdio.h>
FILE *f1,*f2;
long n,m,flag[1000][1000];
long u,v;
void nhap_DSC(){
    f1=fopen("VHKTS_DSC.inp","r");
    fscanf(f1,"%d",&n);
    fscanf(f1,"%d",&m);
    //khoi tao
    for(long i=1;i<=n;i++)
         for(long j=1;j<=n;j++)
             flag[i][j]=0;
     //doc du lieu
     for(long i=1;i<=m;i++){
        fscanf(f1,"%d%d",&u,&v);
        flag[u][v]=flag[v][u]=1;

     }
    fclose(f1);
}

void xuat_MTK(){
     f2=fopen("VHKTS_MTK.out","w");
        //xuat ma tran ke
         for(long i=1;i<=n;i++){
             for(long j=1;j<=n;j++){
                 fprintf(f2,"%d  ",flag[i][j]);
             }
             fprintf(f2,"\n");
         }
     fclose(f2);
}

int main(){
    nhap_DSC();
    xuat_MTK();
    return 0;
}

Thứ Tư, 18 tháng 2, 2015

So sánh 2 cách tạo stack bằng mảng và bảng kiểu cấu trúc

 

So sánh 2 cách tạo stack bằng mảng và bảng kiểu cấu trúc nhé

Mảng: http://codepad.org/rTA0NJgL
#include <stdio.h>
#include<conio.h>
#define MAX 100
int stack[MAX + 1]; int top;
void khoi_tao_stack(){
top = -1;
}
int is_empty(){
return (top == -1);
}
int is_full(){
return (top == MAX);
}
int push(int value){
if (top < MAX) stack[++top] = value;
return top;
}
int pop(int *value){
*value = stack[top--];
return top;
}
int main(){
int k;
khoi_tao_stack();
printf("\nNhap cac phan tu vao stack (-1 de ket thuc) : ");
do {
scanf("%d", &k);
if (k != -1) push(k);
} while (k != -1 && !is_full());
printf("\n\nLay cac phan tu tu stack ra : ");
while (!is_empty()){
pop(&k);
printf("%d ", k);
}
return 0;
getch();
}

#include <conio.h> 
#include <stdio.h>
#define max 100
#define TRUE 1
#define FALSE 0
struct stack {
int top;
char st[max];
};
int empty(struct stack *ps) {
if(ps->top == -1)
return (TRUE);
else
return (FALSE);
}
void push(struct stack *ps,char a) {
if(ps->top== max-1)
printf("stack day");
else
ps->st[++(ps->top)] = a;
}
char pop(struct stack *ps) {
if(empty(ps))
printf("stack rong");
else return(ps->st[ps->top--]);
}
int main()
{
struct stack s;
s.top=-1;
for(int i=1;i<=5;i++)
push(&s,i);
while (!empty(&s))
printf("%d",pop(&s));
getch();
return 0;
}

Bài đăng phổ biến