#include <stdio.h>
int main(int argc,char **argv)
{
printf("Hello World!\n");
return 0;
} #include <stdio.h>
int main(int argc,char **argv)
{
printf("Hello World!\n");
return
int main(int argc,char **argv)
{
printf("Hello World!\n");
return 0;
} #include <stdio.h>
int main(int argc,char **argv)
{
printf("Hello World!\n");
return
2023-04-22
#include #include <stdio.h>
int main(int argc,char **argv)
{
printf("Hello World!\n");
return 0;
}
int main(int argc,char **argv)
{
printf("Hello World!\n");
return 0;
}
2023-03-27
#include <iostream>
using namespace std;
#include <string>
int main()
{
int a=1;
int b=2;
cout << "a+b=" << a+b<<endl;
cout << "a-b=" << a-b<<endl;
cout << "a*b=" << a*b<<endl;
cout << "a/b=" << a/b<<endl;
int c=5;
float d=3.25;
cout << "c+d=" << c+d<<endl;
}
using namespace std;
#include <string>
int main()
{
int a=1;
int b=2;
cout << "a+b=" << a+b<<endl;
cout << "a-b=" << a-b<<endl;
cout << "a*b=" << a*b<<endl;
cout << "a/b=" << a/b<<endl;
int c=5;
float d=3.25;
cout << "c+d=" << c+d<<endl;
}
这里是不是讲的不对,a=100 转short b 是因为100在short的可转换范围内,如果你换成1000000试试,不管你是 short b = a,还是short b = (short)a; 都没用,都会丢失
2023-03-19