In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
1 basic homework: start with Hello World
Each reader (or student) is required to start managing their own source code:
Everyone has a VSTS client, the system administrator creates a TFS project for everyone, and each student is the administrator of their own project.
Each student applies for a GitHub [I] project and stores source programs and other documents.
The following exercises can be used to practice students' basic programming skills.
(1) all use command line tools and notepad editors, without Visual Studio and other integrated editing environment, each manually create and compile a C command line program: "Hello World".
(2) practice numerical calculation. Find the maximum value of the sum of the subarrays of an integer array, for example: array [1,-2, 3, 5,-1] and return 8 (because the subarray that meets the requirements is [3,5]). The array [1,-2, 3 minutes-8, 5, 1] returns 6 (because the subarray that meets the requirements is [5, 1]); the array [1,-2, 3] returns 7 (because the subarray that meets the requirements is [3 leman 2, 5, 1]).
(3) string operation. Reverse the order of the words in an English sentence and output them. For example, if the input of the program is "how are you", it returns "you are how".
(4) use the tool Visual Studio to create a C++ or C # Windows program that displays "Hello World" in the main window, and the user can drag "Hello World" to move in the main window.
(5) many students can write a lot of programs themselves, but they often can't understand the programs written by others, which also requires practice. Answer the following questions without the help of your computer (as shown in listing 2-8).
Code listing 2-8
Using System;using System.Collections.Generic;using System.Text; namespace FindTheNumber {class Program {static void Main (string [] args) {int [] rg = {2 Int64 3 (string [] args) {int [] rg = {2) Int64 I = 1; I < Int64.MaxValue; I +) {int hit = 0; int hit1 =-1; int hit2 =-1 For (int j = 0; (j < rg.Length) & & (hit
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.