摘要: #include "stdio.h"#include "conio.h"#include "stdafx.h"#include <iostream>using namespace std; void upper(char* s, char* us){ while(*s != '\0') { if(* 阅读全文
posted @ 2016-02-29 10:27 水木_清风 阅读(1664) 评论(0) 推荐(0) 编辑
摘要: #include "stdio.h"#include "conio.h"#include "stdafx.h"#include <iostream>using namespace std;struct stu{ char name[20]; char sex; int no; int age; st 阅读全文
posted @ 2016-02-29 10:22 水木_清风 阅读(461) 评论(0) 推荐(0) 编辑
摘要: 解析:x+2y+5z=100; 若用循环0<=X<=100,0<=X<=50,0<=X<=20判断效率太低。 方案:x+2y=100-5z; z=0, 0<=2y<=100; z=z, 0<=2y<=100-5z; #include "stdafx.h"#include <iostream>usin 阅读全文
posted @ 2016-02-29 10:16 水木_清风 阅读(1200) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include <iostream>using namespace std;int Func(int *A, int nSize){ if (NULL == A || nSize <= 0) { return -1; } int count = 0; int 阅读全文
posted @ 2016-02-29 09:57 水木_清风 阅读(1462) 评论(0) 推荐(0) 编辑
摘要: 采用循环链表,用取余操作做。(VS2010) #include <stdio.h>#include <stdlib.h>#include "stdafx.h"#include <iostream>typedef struct node{ int data; node* next;}node; voi 阅读全文
posted @ 2016-02-29 09:53 水木_清风 阅读(2039) 评论(0) 推荐(0) 编辑