摘要:
struct student { string name; int age; int score; }; 创建结构体变量 1. struct student a; a.name = "张三"; a.age = 18; a.score = 100; cout << a.name << " " << a 阅读全文
摘要:
小明有5本新书,要借给A,B,C这三位小朋友,若每次每人只能借一本,则可以有多少种不同的借法? 直接输代码 #include<iostream> using namespace std; int main() { int a = 0, b = 0, c = 0; for (int a = 1; a 阅读全文