摘要: 最近经常遇到这种问题 #include<iostream> #include<sstream> //stringstream #include<string> #include<vector> using namespace std; int main() { while(1) { string s 阅读全文
posted @ 2020-08-12 21:40 中庭之园 阅读(456) 评论(0) 推荐(0)
摘要: 菊花厂机试题。 一杯咖啡5元,只收5,10,20面额的钱。 输入一串字符串,表示收到的钱,如果能找零,则输出true,编号; 如果无法找零,则输出false,不能找零的顾客编号; 如果输入的不是5,10,20则直接输出false,和给出错误钱数的编号。 #include <iostream> #in 阅读全文
posted @ 2020-08-12 21:23 中庭之园 阅读(212) 评论(0) 推荐(0)