摘要: import java.util.Scanner; public class Demo { public static void main(String[] args) { Scanner cin = new Scanner(System.in); System.out.print("请输入一个整数:"); int n = cin... 阅读全文
posted @ 2018-09-13 23:42 最美遇见你 阅读(169) 评论(0) 推荐(0)
摘要: 例子: #include #include using namespace std; int main(void) { string str="abcdefghijklmn"; string str1=str.substr(0,5); string str2=str.substr(2,5); cout #include using namespace std;... 阅读全文
posted @ 2018-09-13 23:36 最美遇见你 阅读(346) 评论(0) 推荐(0)
摘要: 例子:#include<string> #include<iostream> using namespace std; int main(void) { string str="abcdefghijklmn"; string str1=str.substr(0,5); string str2=str 阅读全文
posted @ 2018-09-13 23:00 最美遇见你 阅读(393) 评论(0) 推荐(0)