Algorithm-opening chapter

Source: Internet
Author: User

10 years agoAlgorithmSo far, I have not made a Wuzi game.Program!

No him, no exercises!

A few times ago, I contacted the previous team and already fully transferred to Linux for development, video monitoring, driver and application development. I should have learned a lot. I have made a wide variety of network applications over the past six months.CodeThe attachment has not been reduced.

Thanks to the accumulation of money, this is a place for learning data structures and algorithms.

First, prepare the Debian Linux development environment

For learning, you only need to follow Chapter 180m of the online ISO, and some other software will be added later.
☆★Configure the network:
1. view the current network configuration ifconfig-
2. Modify the IP Address: Modify the file/etc/Network/interfaces and/etc/resolv. conf, and then run/etc/init. d/networking restart.

2.1 static IP address interfacesauto lo eth0
Iface lo Inet loopback

Iface eth0 Inet static
Address 192.168.18.88
Netmask 255.255.255.0
Broadcast 192.168.18.255
Gateway 192.168.18.12.2 Dynamic IP address interfacesauto eth0
Iface eth0 Inet DHCP

3. Set DNS resolv. conf
Domain
Nameserver 192.168.18.1
Nameserver 192.168.0.120

4. Install apt-spy: APT-Get install apt-spy; Apt-spy update; Apt-spy-D main
Server: Debian. yorku. ca
Benchmarking HTTP...
Downloaded 3844146 bytes in 15.72 seconds
Download speed: 238.82 KB/sec
You can add the following content to ETC/APT/sources. List:
Deb http://debian.yorku.ca/debian Testing main non-free contrib

Apt-Get update

5, Vim ~ /. Bashrc, modify alias ls = 'ls -- color"
Vim syntax highlighted: APT-Get install vim-full
Vim /Etc/ Vim /Vimrc ; Add the SYN on and filetype on commands.


6, To easily connect to our Linux host through putty, ssh installation is required. In this case, you can use Putty to connect to the host. Apt-Get Install SSH


Download the Nmap scan Network Considering Network Security
Apt-Get install NMAP
NMAP-o-P0 192.168.18.1


7. view available GCC versions in APTITUDE search GCC and install GCC. The C ++ compiler is CPP and is available.Apt-Get install build-essential installation.

For GCC compilation Link Experiment, refer to the link.

The test procedure in Visual Studio is as follows:
 # Include"Stdafx. h"

# Include <cstdlib> // System ("pause ");
# Include <windows. h> // MessageBox

Int _ Tmain ( Int Argc, _ tchar * argv [])
{
MessageBox (nullptr, text ( " This is a Win32 application demo! " ), Text ( " Running demo " ), Mb_ OK );
System ( " Pause " );
Return 0 ;
}

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.