题目内容

以下程序实现交换a,b变量的值,程序第(1)步出错(填写数字1或2),应改为(2)(填写正确的语句)#include using namespace std;void mySwap(int& a, int& b) //第1步{ a=a+b;b=a-b;a=a-b;}int main(){ int a=19,b=15;cout<<"a="<

查看答案
更多问题

若以下代码的输入为20和30,写出其"运行”结果(Input:20 30不算运行结果)。#include using namespace std;void input(int *p,int *q);void add(int *p,int *q);void process(int *p,int *q,void (*fun)(int *,int *));int main(){ int a,b;process(&a,&b,input);process(&a,&b,add);return 0;}void input(int *p,int *q){ cout<<"Input:";cin>>*p>>*q;}void add(int *p,int *q){ cout<<"Output:"<<(*p+*q)<

Fill in the blanks with words or phrases from the box below. Change the form where necessary.challengecreativityinfectionpredictscreenpursuitsympathyall the wayby nowdo wellsoftware motivationover timefrequencycome to life corporate insurance1. Good teachers should encourage students to use their ____to express themselves and make them feel proud of what they can achieve.

I've made new friends and am ____ at college. I think I'm enjoying being a college student.

People with disabilities want to be treated like everyone else and given equal opportunities. They do not want ____.

答案查题题库