🔍 Tìm kiếm trên Nosomovo Tech

Thẻ: C#

Code C++: Cây nhị phân

Code C++: Cây nhị phân

Đang đang cần code C++ cài đặt cây nhị phân thì ngay bên dưới đây là thứ bạn cần nhé. Phần code…

Giáo trình C++

Giáo trình C++

NỘI DUNG GIÁO TRÌNH C++ CHƯƠNG 1. MỘT SỐ KHÁI NIỆM CƠ BẢN VỀ LẬP TRÌNH 1. Thuật toán (Algorithm) 1.1. Khái…

Copy folder in C#

Copy folder in C#

Nếu bạn đang tìm code c# thực hiện copy thư mục thì đây, ngay bên dưới đây là code bạn cần nhé!…

Sleep in C#

Sleep in C#

Nếu bạn đang viết một ứng dụng với ngôn ngữ C#. Và muốn cho ứng dụng ngủ 1 vài mili giây thì…

Nosomovo

Access connection string in C#

//using System.Data.OleDb; string m_ConnectString = “Provider=Microsoft.ACE.OLEDB.12.0; Data Source=file_path.mdb;”; nosomovo

Nosomovo

Mysql connection string in C#

string Connectionstring = “SERVER=” + m_Server + “; PORT=” + m_Port + “;” + ” DATABASE=” + m_Database + “;” + “UID=”…

Nosomovo

Excel connection string in C#

string ConnectionString = “Provider=Microsoft.ACE.OLEDB.12.0; Data Source=” + “filename” + “; Extended Properties=\”Excel 12.0\”;”; Nosomovo

Nosomovo

Sql server connection string in C#

Kết nối bằng quyền Windows: string m_ConnectString = “Data Source=” + “servername” + “;Initial Catalog=” + “databasename” + “;Integrated Security=True;”; Kết nối…

Nosomovo

Code C# – Upload file to web server

  public class HttpUploadHelper { private HttpUploadHelper() { } public static string Upload(string url, UploadFile[] files, NameValueCollection form) { HttpWebResponse resp =…

Nosomovo

Code mở một file trong C#

Để mở hoặc thực thi một file trong C# ta sử dụng đoạn code sau: System.Diagnostics.Process.Start(“duong_dan_den_file_can_mo”); Nếu “duong_dan_den_file_can_mo” là file thực thi…

Code xóa file trong C#

Code xóa file trong C#

Để xóa file trong C# chúng ta sử dụng hàm Delete trong thư viện System.IO.File như sau: System.IO.File.Delete(“duong_dan_den_file_can_xoa”); Thật đơn giản phải…