C language applet questions beginners masters, please help

Updated on technology 2024-04-20
7 answers
  1. Anonymous users2024-02-08

    Halo,This is going to use the ASCII code,You have to check the table below,Find out which value ranges the large letters and lowercase letters are in,And then use the comparison to judge the statement or add or subtract it.,I won't write the specific program.,There's no table in hand.,I don't know the value range!!

  2. Anonymous users2024-02-07

    This is very simple, flip through the book and check the ascll code.

  3. Anonymous users2024-02-06

    Top! Upstairs is right! ~

  4. Anonymous users2024-02-05

    #include

    void main()

    char p;

    scanf("%c",&p);

    if(p>='a'&&p<='z')

    p=p-a+a;

    else if(p>='a'&&p<='z')p=p-a+a;

    printf("%c",p);

    It is recommended to use this for compilation.

    This eliminates the need to look up the ASCII table.

    In fact, many languages can do this.

    And you can't check the original table for everyone.

  5. Anonymous users2024-02-04

    Abstract C language, simple program for elementary school students, only one question.

    Hello classmates, what are the problems such as mathematics and professional problems that can help you solve the number duel (it is best to provide the ** information of the problem for math problems, so that the teacher can take pictures of the handwriting process for you).

    Can you write it for me in C? Thank you very much.

    It's easy.

    Yes, I wrote the program in MATLAB, I forgot the architecture, thank you.

    There is a problem.

    I'll help you knock out the <> if it's not cost-effective

    This is my brother's topic, a question for elementary school students, can you help me write a program? I understand the algorithm at a glance, and I don't know C programs.

    If you have a question, I can help you take a look.

    If you knock on **, you have to add money.

    Can you write a complete one.,Thank you.,Beautiful sister.。

    You can add money, hahaha, it's just a little bit, I look at his questions, just a few lines, my sister helps.

    Good. That's fine.

    The results are also normal.

    Solved, ha.

    You can see if you can submit it.

  6. Anonymous users2024-02-03

    Declares that the size of the 2D array is 6*6. The size of the input and stored matrix is n*n, and the initialization is set to n=3

    for(k=0;kInitialization Matrix element values are 0 to n*n-1.

    When n=3, the element values are 0 1 2 , 3 4 5, 6 7 8

    On initialization, the accumulator sum=0

    for(k=0;kfor(k=0;k output The sum of the main diagonal + secondary diagonal elements is 24

  7. Anonymous users2024-02-02

    The idea is:

    1. Define an array a[n][n];

    2. Use the random number %4 to assign a value to it;

    3. Write the feeding function, feed a[i][j], and judge whether it is 4;

    4. Feeding function: if it is 4, it is evenly dispersed to a[i-1][j-1], a[i][j-1], a[i+1][j], a[i+1][j+1]; Otherwise, return.

    5. Recursively call the feeding function for the above four regions.

    Write it yourself. If you don't understand recursion, you can ask. The breakthrough point of this problem is recursion.

Related questions
9 answers2024-04-20

#include

#include"" >>>More

7 answers2024-04-20

In the whole main function, only this one variable, whether it is the first for or the second for, is the same i, the second for will have i=-1, in the case of i= -1, and printf("%d ",a[i]);Statement. So fear not! When there is no second for the case: >>>More

8 answers2024-04-20

The front loving525 is very good.

For books, I recommend "From Beginner to Master" and "VC Programming Examples". >>>More

5 answers2024-04-20

Define an array of scores to record scores, record rankings and score bins. >>>More

7 answers2024-04-20

if(!a) x--;Meaning: if (!.)a) If true, execute x--。 Now 0 like a and 0 in c is false. So (!.)a)=true。So execute x--; >>>More