From http://zhedahht.blog.163.com/blog/static/25411174201171214133316/Problem ( ) : What is the printed result of C + + code in operation ? BOOL Fun1 (char* str){printf ("%s\n", str);return false; }BOOL Fun2 (char* str){printf ("%s\n", str);return
Although C + + the exam has just passed, but it feels better to summarize it. Through the past few days of C + + learning, I feel that C + + Actually there is nothing new, or those things, such as: data types, structures, classes, objects and so on.
Once again took the grade examination, had to say that his face is really thick, but repeated examination, repeated study also let oneself to C + + This language has a deeper understanding. A review of some of the more important points of knowledge
Public class photo {
Private int _ id;Private int _ albumid;Private string _ Caption;
Public int photoid {get {return _ id ;}Set {This. _ id = value ;}}
Public int albumid {get {return _ albumid ;}Set {This. _ albumid = value ;}}
Public String
34th questions
The following is a piece of C code, whose intention was to print a minus sign 20 times. But you can notice that, it doesn‘t work. #include int main() { int i; int n = 20; for( i = 0; i
Description:
Set
for( i = 0;
In a small project, you need to export some query results to excel, find some materials, and summarize some methods to share with you.
1. First, briefly describe how to operate an Excel worksheet
Add a reference to excel. Select project> Add
31st questions
The following is a simple C program to read and print an integer. But it is not working properly. What is(are) the mistake(s)? #include int main() { int n; printf("Enter a number:\n"); scanf("%d\n",n); printf("
Public class ys {public static byte [] decompress (byte [] data) {byte [] bdata; memorystream MS = new memorystream (); // write data into memory stream Ms. write (data, 0, Data. length); // determine the write location, because it is not a one-time
It initializes static members of some classes.
1. Before instantiating a class object or referencing any static member,. Net automatically calls this constructor and calls it only once.
2. No modifier or Parameter
3. A class can have only one
1. Import Support class libraries for office and Excel
On the reference of the project, add a new reference and select Microsoft Excel ** Object Library and Microsoft Office ** Object Library
After adding the package, you can get the reference
Question Link
Question: If you want to add k '#' to a China Unicom region composed of ".", you can use the China Unicom region solution.
Analysis: When I was doing the problem, I used DFS to search for the edge, and then traced back from the edge,
16th questions
The following is a small C program split across files. What do you expect the output to be, when both of them compiled together and run?File1.c int arr[80];File2.c extern int *arr; int main() { arr[1] = 100; return 0;
21st questions
What is the potential problem with the following C program? #include int main() { char str[80]; printf("Enter the string:"); scanf("%s",str); printf("You entered:%s\n",str); return 0; }
Description:
It
13th questions
int CountBits(unsigned int x) { int count=0; while(x) { count++; x = x&(x-1); } return count; }
Knowledge Point explanation
Bitwise operation
For some examples of bit operations, refer:
Combination code (c)
Address: http://blog.csdn.net/caroline_wendy
The number of combinations of a string, such as ABC. The output is a, B, c, AC, AB, BC, and ABC, that is, the combination that contains the sequence.
SimilarFull ranking of BITs,
A string (string for short) can be considered as a special linear table. Its particularity lies in that the data element type of a linear table is always character-like, and the string data object red bean is a character set.
A string is a finite
1. guilayout Control
1 void ongui () 2 {3 guilayout. Button ("this is the guilayout button"); 4}
Effect:
The widget size is automatically adjusted and positioned in the upper left corner of the screen;
2. Group view
1 void ongui () 2 {3
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