// #include <string>
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
cout << "hello" << endl;
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
int a;
char b;
double c;
// float c;
// 一种正确输入:23 k,23
scanf("%d %c,%lf", &a, &b, &c); // 这里输入时,逗号必须有,否则c不会被赋值;
printf("%d\n%c\n%lf", a, b, c); // %lf输出double类型
system("pause");
return 0;
}
int main() {
int n, m;
int total = 0;
cin >> n >> m;
for (int i = 1; i < n; i++) {
for (int j = i + 1; j <= n; j++) {
if (!(m % (i + j))) {
++total;
cout << i << j << endl;
}
}
}
cout << total << endl;
...
char line[10];
cin.getline(line, sizeof(line));
cout << line;
C++的引用是什么?