程序代码:
#include <stdio.h> int main(void) { int b = 4; static float a = 4; float c = a+b; printf("%f\n", c); return 0; }
byte []buffer = new byte[100]; int s = 0; try { System.out.println("输入一个字符串: "); s = System.in.read(buffer); String string = new String(buffer, 0, s); System.out.println(string); System.out.println(string.toUpperCase()); System.out.println(string.toLowerCase()); } catch (IOException e) { }