- 博客(11)
- 收藏
- 关注
转载 反转句子中的单词 如: I love you 转为 You love I
#include"stdafx.h"#include"iostream"#include"vector"#include"string"usingnamespacestd;int_tmain(intargc,_TCHAR*argv[]){str...
2015-06-10 09:09:00 772
转载 建立链表
intcreatelink(){structstudent{intdata;structstudent*next;};structstudent*head,*r;r=head=(st...
2015-03-09 15:12:00 183
转载 查找字符
chara[20]="dfsfsadf";inti;for(i=0;i<strlen(a);i++){if(a[i]=='a')//查找字符a;{cout<<i<<...
2015-03-08 20:54:00 146
转载 字符串赋值
#include"stdafx.h"#include<iostream>usingnamespacestd;int_tmain(intargc,_TCHAR*argv[]){charstring[20]="dfsfsadf";intle...
2015-03-08 20:35:00 101
转载 快速排序
voidQsort(inta[],intlow,inthigh){intfirst,last;first=low;last=high;intmin=a[low];while(first<last){...
2015-03-08 19:44:00 85
转载 结构体的解释
struct Student { char szName[64]; int nYear; int nMonth; int nDay; float fScore[3];};int main(){ Student stu; //Student 是...
2015-02-25 10:54:00 196
转载 C++ 小程序--计算圆的面积和周长
#include"stdafx.h"#include<iostream>usingnamespacestd;//计算圆的面积和周长floatcircle(floatr){return2*3.14*r;}//圆的周长floatarea(floa...
2015-01-27 21:49:00 2944
转载 C# 写文件 当前位置追加
publicvoidWrite(stringscoredata){FileStreamfs=null;stringfilePath="F:\\score.txt";//文件位置/...
2015-01-27 16:38:00 247
转载 排序算法--直接插入排序
#include<iostream>usingnamespacestd;voidinsertsort(inta[],intn){inti,j;inttemp;for(i=1;i<n;i++){...
2014-11-03 16:31:00 77
转载 数据结构---队列
/***@briefC语言顺序结构队列的实现*@authorwid*@date2013-10-30**@note若代码存在bug或程序缺陷,请留言反馈,谢谢!*/#include<stdio.h>#include<stdlib.h...
2014-10-27 19:23:00 103
转载 数字 转为 ASCLL码
#include<iostream>usingnamespacestd;intmain(){inti,n;inta[32];charb[32];cin>>n;for(i=0;i<n;i++...
2014-10-21 22:28:00 1673
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人