The VC problem solving process is simpler

Updated on educate 2024-05-27
11 answers
  1. Anonymous users2024-02-11

    int num(char *s1,char *s2)int num=0;

    int i=0,j=0;

    for(i=0;icoutreturn num;

    Write a main function yourself, and you can use it, tested.

  2. Anonymous users2024-02-10

    Use the C library function strstr() directlyThe core ** is:

    char a,b,temp,i;A main string B sub string.

    Read a, b, skip.

    temp=a;

    i=0;while (temp<=a[strlen(a)]-strlen(b))

    if strstr(temp,b)

    temp=strstr(temp,b)+strlen(b);

    i++;After the cycle is run, what is saved in i is the number of occurrences, remember to output as an integer.

  3. Anonymous users2024-02-09

    Dear, write it yourself, it's not good to ask others like this.

  4. Anonymous users2024-02-08

    Is it object-oriented or visual?

  5. Anonymous users2024-02-07

    b).c suffix. obj and.

    The binaries of the exe can be run directlyC)C The program is written in a free format, and a statement can be written on multiple linesC)C language stipulates that main must be used as the main function name, and the program will start to execute and end here.

    c) A program consisting of 3 basic structures can only solve a simple problem, and d) an executable program.

    a) Binary.

    c)&a d)-00

    b) d) is determined by the C language compilation system.

    b)x = n%;

    c)x=y+z+5,++y

    b)char a=65+1,b='b';

    d)a,97,k=12

    Dude, this is not C++

  6. Anonymous users2024-02-06

    These are the basics of C.

  7. Anonymous users2024-02-05

    What is this?,I don't know if it's a society.。

  8. Anonymous users2024-02-04

    The first null: break; This means that if the remainder of m%i, is 0, it means that m is divisible by i, indicating that m is divisible by numbers other than 1 and itself, then it is not prime.

    The second blank: fill in k+1, if m%i is not equal to 0, that is, m is not divisible by i at the end of the cycle, and i = k+1 at the end of the cycle, at this time, i >=k+1 is judged, it means that m cannot be divisible by numbers other than 1 and itself, so m is a prime number.

    The second void cannot be k, because m is likely to be divisible by k, and m is not prime. (except for 1 and itself).

  9. Anonymous users2024-02-03

    I choose ABecause, when defined, * and sum are equivalent to overloaded operators. If you don't add anything, then it's an object, and adding a * is equivalent to establishing a pointer to it.

    and type *name[x]; is defined as an array of type type, and the array element is x.

    In order for the constructor to run, an object must be instantiated, and only the first object is instantiated. Pointers are not instantiated objects.

  10. Anonymous users2024-02-02

    4 times. a(2) once, call the ab(int) constructor once.

    b[3] three times, when the array is declared, each member of the array will call the default constructor, a total of three times ab().

    p[4] is a pointer and does not call the constructor.

  11. Anonymous users2024-02-01

    Start with b, d. The two points with the smallest binding value each time. Build up.

    wpl =

Related questions
13 answers2024-05-27

As can be seen from the title, when x<0 or x>0, the function is continuous, so we only need to discuss the continuity of the function when x=0. >>>More

6 answers2024-05-27

Fill in the blanks with am is are.

where( are )you from? i( am )from beijing >>>More

14 answers2024-05-27

c. It often rains in Wenzhou, and there is more water vapor indoors, and when the temperature drops, the water vapor liquefies into water droplets.

3 answers2024-05-27

If you want the source**, I can make one and send it to you. >>>More

8 answers2024-05-27

The reason for the problem is the difference between ANSI and Unicode encoding of strings, VC6 and VS2003 use ANSI encoding by default, while VS2005 uses Unicode by default >>>More