随笔分类 - c/c++
摘要:1. 1 #include 2 3 #define SPACE ' ' 4 #define NEWLINE '\n' 5 6 int main() 7 { 8 int spaces,newlines,others; 9 char ch;10 spaces = newli...
阅读全文
摘要:16. 1 #include 2 3 int main() 4 { 5 double remain = 100.0; 6 int years=0; 7 while(remain>0) 8 { 9 remain = remain * 0.08 + r...
阅读全文
摘要:1. 1 #include 2 #define MINU 60 3 4 int main() 5 { 6 int minute, hour, m; 7 printf("请输入分钟:"); 8 while(scanf("%d", &m)) //如果输入的不是数字,则会退出 ...
阅读全文
摘要:5. 1 #include 2 3 int main() 4 { 5 float you_sec; 6 printf("请输入你的年龄:"); 7 scanf("%f", &you_sec); 8 printf("年龄合计:%e 秒!\n", you_sec * ...
阅读全文
摘要:6. 1 #include 2 3 void echo(); 4 5 int main() 6 { 7 /* 8 echo(); 9 echo();10 echo();11 printf("\n");12 echo();13 echo()...
阅读全文
摘要:1. 1 #include 2 3 int main() 4 { 5 //将英寸转换为厘米 1英寸=2.54厘米 6 int inch; 7 printf("请输入英寸:"); 8 scanf("%d", &inch); 9 printf("%.2f 厘米...
阅读全文
摘要:1 #include 2 #include "resource.h" 3 4 LRESULT CALLBACK MyWndProc( HWND hwnd, // handle to window 5 UINT uMsg, // message identifier 6...
阅读全文
摘要:1 #include 2 #include "resource.h" 3 4 LRESULT CALLBACK MyWndProc( HWND hwnd, // handle to window 5 UINT uMsg, // message identifier 6...
阅读全文
摘要:1 #include 2 3 LRESULT CALLBACK MyWndProc( HWND hwnd, // handle to window 4 UINT uMsg, // message identifier 5 WPARAM wParam, // fi...
阅读全文
摘要:1 #include "stdio.h" 2 3 #include "stdlib.h" 4 #include "io.h" 5 #include "math.h" 6 #include "time.h" 7 8 #define OK 1 9 #define ERROR 0 10 #define TRUE 1 11 #define FALSE 0 12 13 #define MAXSIZE 20 /* 存储空间初始分配量 */ 14 15 typedef int Status; /* Statu
阅读全文
浙公网安备 33010602011771号