高中的时候做的,前两天看了看,挺好玩的。
只想说,当初的代码风格,,,,咳咳,算不上风骚!
/***sin(x)和cos(x)图像同时显示***/
# include
# include
int main ( void )
{
double y;
int x, m, n;
for ( y = 1; y >= -1; y -= 0.1 )...
分类:
其他好文 时间:
2015-05-29 12:05:33
阅读次数:
126
在网站找一段,发现并没有达到自己的要求:
这段程序功能是 为某空字段自动编号(系统运用时,新加的编号字段,前期有数据,需要重新编号)
declare @id int
declare @maxid int
set @id=1
select @maxid=count(*) from t_Send_Revisit Where fSO is null
begin
while @id
be...
分类:
数据库 时间:
2015-05-29 12:05:26
阅读次数:
169
效果图:
以上效果类似于显示点赞用户的界面,我们可以通过点击不同的昵称进入每个人的个人主页。
关于公共控件,请点击文章下方的git地址。
第一步:
我们为每个点赞的人建一个类用来代表个人的信息:
Person:
public class Person {
public String name;
public int age;
}
很简单,就一个名字和...
分类:
移动开发 时间:
2015-05-29 12:05:23
阅读次数:
143
先看看它像什么????!
好吧(∩_∩),它像,,,,很多,发挥自己的创意去组合吧
1.
/***二次函数与圆最完美图像***/
#include
#include
int main (void)
{
int m, n, x;
double y;
for ( y = 20; y >= -10; y-- )...
分类:
其他好文 时间:
2015-05-29 12:05:12
阅读次数:
135
高中的时候做的,前两天看了看,挺好玩的。
只想说,当初的代码风格,,,,咳咳,算不上风骚!
#include
#include
int main (void)
{
double y;
int m, n, x;
for (y = 1; y >= -1; y -= 0.1)
{
m = acos(y) * 10;...
分类:
其他好文 时间:
2015-05-29 12:04:33
阅读次数:
114
高中的时候做的,前两天看了看,挺好玩的。
只想说,当初的代码风格,,,,咳咳,算不上风骚!
#include
#include
int main ( void )
{
double y;
int yy, m, n, x;
for ( yy = 0; yy <= 20; yy++ )
{
y = 0.1 * yy;...
分类:
其他好文 时间:
2015-05-29 12:04:09
阅读次数:
98
/**
* 计算产生校验码
*
* @param data
* 需要校验的数据
* @return
*/
public static String Make_CRC(byte[] data) {
byte[] buf = new byte[data.length];// 存储需要产生校验码的数据
for (int i = 0; i < da...
分类:
编程语言 时间:
2015-05-29 12:00:18
阅读次数:
174
描述
给定一个整数n,请求出0与n之间的所有偶数的和(包括0和n)?
输入有多组数据
每种情况第一行一个整数n(0
(用EOF结尾)输出每行输出所有偶数的和样例输入
3
4
样例输出
2
6
代码:
01.#include
02.using
namespace std;
03.int
main()
04.{
05.int
n,i,...
分类:
其他好文 时间:
2015-05-29 11:59:53
阅读次数:
172
int pos = Convert.ToInt32(dw1.Describe(colname + ".y"));pos = pos - 40;dw1.Modify("DataWindow.VerticalScrollPosition='"+pos.ToString()+"'");
单链表一直是程序员的基础,我也来复习下,下面是link.c中的代码,供main.c 调用,代码很简单,单链表的插入,删除,查找和遍历输出,#include #include typedef struct link{ int data; struct link* next;}*LINK;i...
分类:
系统相关 时间:
2015-05-29 11:46:26
阅读次数:
210