#include<stdio.h>
#define row 3
#define col 4
int main()
{
int list[row][col]={458,45,555,458,55,6454,45,89,55,68,6969,222};
int* tmp=list[0];
int num=sizeof list/sizeof(int);
int i=0,j=0;
while (1)
{
......................
阅读全部
|
wp231957
贴于 2012年12月14日 22:29
hide
bbsi
#include<stdio.h>
struct Count
{
int c;
int count;
};
int main()
{
int list[2][3]={4,55,6,44,55,55};
......................
阅读全部
|
wp231957
贴于 2012年12月14日 22:11
hide
bbsi
#include<stdio.h>
#define row 2
#define col 3
int main()
{
int list[row][col]={458,45,555,458,55,454};
int rets[row*col]={-1};
int i=0,j=0,m=1;
int *tmp;
int num=sizeof list/sizeof(int);
tmp=list[i];
......................
阅读全部
|
wp231957
贴于 2012年12月14日 22:10
hide
bbsi
declare @e int
declare mycursor cursor
for
select grade from sc
open mycursor
fetch next from mycursor into @e
while(@@fetch_status=0)
begin
select
case
when @e<60 then '不及格'
when @e>=60 and @e<70 then '及格'
......................
阅读全部
|
龙明光
贴于 2012年12月14日 22:03
hide
bbsi
#include <afx.h>
#include <stdio.h>
int main(void)
{
int lo, hi;
CString str;
CStdioFile fFibo;
fFibo.Open("FIBO.DAT", CFile::modeWrite |
CFile::modeCreate | CFile::typeText);
......................
阅读全部
|
wp231957
贴于 2012年12月14日 20:37
hide
bbsi
#ifndef CPOPWINDOW_H
#define CPOPWINDOW_H
class CPopWindow : public CDialog
{
DECLARE_DYNAMIC(CPopWindow)
public:
CPopWindow(CWnd* pParent = NULL);
virtual ~CPopWindow();
......................
阅读全部
|
小小程序员1
贴于 2012年12月14日 03:42
hide
bbsi
/************************************************************************
*功能:计算序列 1.0 + 1.0/2.0 + 1.0/3.0 + 1.0/4.0 + ....
* 1.0 - 1.0/2.0 + 1.0/3.0 - 1.0/4.0 + ....
* 具体计算到某一次由用户指定
************************************************************************/
#include<stdio.h>
float sum1(int n);
float sum2(int n);
void show(float,float,int);
int main(void)
......................
阅读全部
|
麦香
贴于 2012年12月13日 19:57
hide
bbsi
<?
function tail($file,$n,$base=5){
assert($n>0);
$pos = $n+1;
$lines = array();
$fp = fopen($file,"r");
while(count($lines)<=$n){
try{
fseek($fp,-$pos,SEEK_END);
}catch(Exception $e){
fseek(0);
......................
阅读全部
|
静夜思
贴于 2012年12月13日 18:21
hide
bbsi
/**************************************
* 正数开方 *
* *
**************************************/
# include <iostream>
using namespace std;
double St (double X){
float x[10]={0},k;
int i;
while (k*k>=X){
i=0;
k=i;
......................
阅读全部
|
画月锁天
贴于 2012年12月13日 16:48
hide
bbsi