摘要: package basic; import java.util.Scanner; public class Palindrome{ public static boolean isPalindrome(String raw){ String str = ""; // 只拿raw字符串里的字母,拼接到str里 for(int i = 0; i < raw.length(); i++){ char c 阅读全文
posted @ 2019-09-07 22:23 no樂on 阅读(1249) 评论(0) 推荐(0) 编辑
摘要: /* swap.c */ /* function swap to swap two numbers */ #include <stdio.h> void swap(int*, int*); void swapBit(int*, int*); int main(){ int x, y; printf("Please enter two numbers: "); scanf("%d %d", &x, 阅读全文
posted @ 2019-09-07 15:22 no樂on 阅读(251) 评论(0) 推荐(0) 编辑