摘要:
#include "stdio.h"#include "conio.h"#include "stdafx.h"#include <iostream>using namespace std; void upper(char* s, char* us){ while(*s != '\0') { if(* 阅读全文
摘要:
#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 阅读全文
摘要:
解析: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 阅读全文
摘要:
#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 阅读全文
摘要:
采用循环链表,用取余操作做。(VS2010) #include <stdio.h>#include <stdlib.h>#include "stdafx.h"#include <iostream>typedef struct node{ int data; node* next;}node; voi 阅读全文