Print a box, which can be moved freely in the plane and control a coordinate point in the box so that it cannot be moved outside the box.
Development Environment: ubuntu 12.04Development tools: gcc compiler, vim Editor
Function:
Print a box that can
A pen question from 2015IBM Shanghai and a pen question from 2015IBM Shanghai
Description: enter a string ("abc $ rr $ asdsakk $") and a separator ("$") to split the string. The question is like this, it takes too long to remember ).
Void _
Use the C language to calculate the ratio of various files in a folder.
The program list 4-7 in "Advanced Programming in UNIX environment" describes how to recursively count files under a directory! After reading its code at the beginning, I thought
[C language, C LanguageBasic data type: The size (byte) of each data type
Short
Int
Unsigned int
Long
Long
Unsigned long
Float
Double
Char
Char *
32 bit
2
4
4
4
8
4
4
8
1
Getopt function usage and getopt function usage
Linux provides a function to parse command line parameters.
#include int getopt(int argc, char * const argv[], const char *optstring); extern char *optarg; extern
Use recursive functions to calculate ermi polynomials and recursive Polynomials
Chapter 2 of C and pointers: 7th programming questions:
Hermite Polynomials is defined as follows:
For example, the value of H3 (2) is 40. Compile a recursive
Measuring Lengths in Baden, lengthsbadenDescriptionMeasuring Lengths in Badentime limit per test: 2 secondsmemory limit per test: 256 megabytesinput: standard inputoutput: standard output
Lengths are measures in Baden in inches and feet. To a length
Half-fold Search Algorithm
Algorithm Analysis: data elements are ordered. Three variables, low, mid, and high, are used to save the sequence numbers of the beginning, center, and end of the array elements,
Compare the Key value with a [mid] to
The gcc compilation parameters in linux are described in detail.
Reference URL: 1 http://hi.baidu.com/zengzhaonong/item/f1f9383565fa5c302e0f8125 gcc usage Summary
2. Differences of gcc parameters for http://s99f.blog.163.com/blog/static/3511836520131
Objective-C basic notes (6) Block
Block encapsulates a piece of code that can be executed at any time.
Block can be used as a function parameter or function return value, and it can also contain an input parameter or return value. It is similar to
C language: Bubble Sorting: sorts several strings in alphabetical order (from small to large) and outputs them
# Include
# Include
Void sort (char * a []); void print (char * a []); int main () {char * a [] = {"ceo", "define ", "basic"
Objective-C basic notes (7) common structures in Foundation
1. nsange
Definition of nsange:
typedef struct _NSRange { NSUInteger location; NSUInteger length;} NSRange;Use of nsanage:
NSRange range = NSMakeRange(8, 10);
Multiple methods are used to determine the prime number and determine the prime number.
Prime Number definition:
It refers to the number of integers in a natural number greater than 1 that cannot be divisible by other natural numbers except 1 and
Objective-C basic notes (2) @ property and @ synthesize
Paste the code in the previous article using @ property and @ synthesize, and then explain the usage and meaning of the two keywords. The Code is as follows:
Person. h file
# Import
@
Programmer --- C language details 24 (segment error, type improvement, sizeof & #39; A & #39 ;)Main Content: Segment error, type improvement, sizeof 'A'
# Include
Int main () {union test {char a [10]; int B;} u; int * p = (int *) & (u. a [1]
Objective-C basic notes (3) OC Memory ManagementObjective-C memory basic management
Each variable in OC Stores the reference counter. When the reference counter of this object is 0, the object will be recycled. When an object is created using alloc,
C language pen question Selection 1 --- calculate a large number between two numbers, do not use if, while, switch, ,? : // And any comparison statement
Question: if, while, switch, for, and ,? : // And any comparison statement
# Include
Objective-C basic notes (4) Category
OC provides a distinctive way-Category, which can dynamically add new behaviors (methods) for existing classes. This ensures that the original design scale of the classes is small, when the function is added, it
C Programming: Number of integers.
// Specify k (1
Int main () {int k; // The number of positive integers int I, j; // The cyclic variable, which must be declared here, can be used below, it is not declared when it cannot be used. vc ++ 6.0
Understanding C pointer Reading Notes in depth-Chapter 1
Last weekend, I saw this very thin book in the library-deep understanding of the C pointer"
The content written in this book is suitable for beginners, but the content is not very difficult.
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.