-
I don't understand too much, big brother! Give an example! For example, what is input, what is output...Come on! I'm not available if it's late!
-
Question 1 Procedure:
#include
void main()
printf("The number is: %d",sum);
Question 3: include
#define n 20
void main()
printf("%f",sum);
The fourth question is 9!If the ticket sample is not the same, it is 2*9!
Question 5: include
#define n 1000
void main()
printf("%d",sum);}
-
The program mainly has syntax errors and algorithm problems, the following is the correct answer after the actual combat on the machine, please refer to include
#include
void main()
printf("The string after the connection is:");
printf("%s",str3);
The last for loop is redundant, removed, and then the character array output format is changed to printf("%s",str3);Can.
-
It's always right, only the last two lines can be changed.
for(i=0;i<=len1+len2;i++)printf("%s",str3[i]);
It needs to be modified to:
for(i=0;i<=len1+len2;i++)printf("%c",str3[i]);
Or simply :
printf("%s",str3);
-
Can do it with arrays, here's the answer I copied from a book.
#include
void main()
-
Exponentiation!
If you want to represent a very small number, the easiest way to do this is to write it directly.
Or use the pow function, pow (base, exponent).
-
The idea is right, a little wrong in the details.
It is recommended that you practice again with the pointer, after all, the pointer is used more.
-
for loop nesting, it's simple! I knocked out the ** in three minutes, but I didn't connect to the Internet!
-
int a,b,c;
printf("Welcome to the childish program made by contemptible people, hehe, let's start the test! You ready? 1,yes 2,no !");
scanf("%d",&a);
if(a==1) *The judgment is based on == instead of the assigned symbol =* else
printf("Forget it, I can't tell the gender apart, it's unexpected! ");
elseprintf("Then come back later! 886!");
printf("I wanted to write a long time, but I had time and patience with wood! Please forgive me for your understanding! Press Enter to return! ");
-
a==1 is the judgment, and a=1 is to assign a value.
vc 6 compiles passed.
#include
int main ()
-
Halo Where the parentheses should be enlarged, the parentheses must be enlarged, understand?
-
1 is the value of two numbers that are exchanged.
2 is the exchange pointer.
3 is a function, which involves the passing of parameters.
Program for 1: main().
Program 2: main().
Note that the values of a and b are unchanged at this time.
3 of the program. swap1( int * pa, int * pb )main()
-
Not bad! It's best to write a flowchart yourself.
It's very good for you, I personally think that being able to write a flowchart quickly is sometimes more important than typing, and it's a way to improve your problem-solving skills.
Can't be lazy.
The main thing is that you put this line using namespace std; Put it in main(), and then call cout to output it, so you should put it in front, or add it directly to the header file. h can be used, or it can be placed in front of the function in which iostream is called. Such as: >>>More
The reason is that you declare that the totleweight() function is a friend function of car, but you do not declare that it is a member function of boat, so you cannot directly access the private data members of the boat class.
First of all, there is a difference in the definition of void delay1ms(), and the call is as follows: >>>More
Make a bank account management system.
Question 2. chomp($str=);
my @array=split/[ str; >>>More