Network Synchronization Competition of the 2nd Space Cup Programming Competition of Nanchang University (Retrospective Supplement)
4/9 of this contest, which was not filled in time, is now added
A ID and password
simulation
#include<iostream>
#include<algorithm>
#include<cmath>
#include<cstdio>
#include<cstring>
#include<string>
using namespace std;
int main()
{
string s1;
while(cin ...
Posted by drucifer on Tue, 21 Jan 2020 20:38:23 -0800
iOS multi thread four: NSThread + summary
1, NSThread
It is a lightweight Multithread in iOS. One NSThread object corresponds to one thread
1. Some class methods
[NSThread mainThread]; // Get main thread
[NSThread currentThread]; // Get current thread
// Blocking the current thread and setting the sleep time are implemented in two ways ...
Posted by pjsteinfort on Sun, 19 Jan 2020 05:42:32 -0800
Methods of reading and writing text files and binary files in C/C + +
First of all, remember that the free function is only used to read binary files, and fscanf can read text or binary files.
Fwrite / free will write / read files in binary form, such as int type in the example, and will be saved in numerical form. If you use Notepad and other programs to open, you will s ...
Posted by s1yman on Sun, 19 Jan 2020 03:03:16 -0800
Codeforces - 985f isomorphic strings (string hash)
Title Link: Click to view
Main idea: first of all, the isomorphic string is specified. If string s and string t are isomorphic strings, they must meet the following requirements:
Two strings are the same length
The number of character types in s is the same as that in t
Each letter in s has a co ...
Posted by Sphen001 on Sun, 19 Jan 2020 03:01:21 -0800
Data structure - user login system
Course design of data structure user management system
Things involved: MFC, file, AVL;
As a beginner, record the course design of this semester's data structure; first, the requirements of the task book.
1. [problem description]:
When logging in the server system, you need to verify the user name an ...
Posted by localhost on Wed, 15 Jan 2020 03:03:30 -0800
python. No3
New year's Day is coming. Let's not talk about it. I'd like to give you a new year's Eve
Recently, the IOS students next to me asked for leave to stay at home. Hey, hey, I was left alone in the corner shivering. Although the air conditioner of the company was turned on to 28 ℃, it still couldn't melt my ...
Posted by sribala on Wed, 15 Jan 2020 01:11:47 -0800
iOS underlying learning-day-16
iOS underlying learning-day-16
Preface - OC grammar
problem
runtime API-01 class
Dictionary to model example
runtime API-04 method replacement
Preface - OC grammar
I am an iOS developer. I am a rookie at the bottom of iOS for 30 days.
problem
What is Runtime? Has it ever been used in normal ...
Posted by mjs87 on Tue, 14 Jan 2020 20:46:54 -0800
Use of SwiftyJSON for iOS(Swift) Learning Notes
This is an original article, please mark it for reprinting Source
1. Install SwiftyJSON via CocoaPods
platform :ios, '10.0'
target '<Your Target Name>' do
use_frameworks!
pod 'SwiftyJSON', '~> 4.0.0'
end
2. Initialization
import SwiftyJSON
let json = JSON(data: dataFromNetworking)
let json = JSON(jsonObject)
if let dataFrom ...
Posted by Cronikeys on Mon, 13 Jan 2020 09:48:06 -0800
How to add a browser tab icon (favicon) to a website?
I've been working on the site and I want to add a small icon to the browser tab.
How do I do this in HTML and where do I need to put it in my code (such as a title)? I have a. png logo file that I want to convert to an icon.
Relevant: HTML set image on browser tab .
#1 building
I have successfully done this for my website.
The ...
Posted by soianyc on Mon, 13 Jan 2020 05:50:32 -0800
How to send SMS programmatically on iPhone?
Is anyone aware of the possibility and how to send SMS programmatically via iPhone via the official SDK / Cocoa Touch?
#1 building
Use this:
- (void)showSMSPicker
{
Class messageClass = (NSClassFromString(@"MFMessageComposeViewController"));
if (messageClass != nil) {
// Check whether the current device is con ...
Posted by mehdi110 on Mon, 13 Jan 2020 02:21:09 -0800