摘要:
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 阅读全文
摘要:
/* 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, 阅读全文