首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include <stdio.h>
#include <stdlib.h>


/* 节点*/
struct node
{
    int data;
    struct node *next;
};

typedef node* List;
......................
阅读全部 | gougoudan 贴于 2020年5月18日 21:56     hide bbsi
#include <stdio.h>

/* 节点*/
struct LNode
{
    int data;
    struct LNode *next;
};

/* 判断两个单链表是否交叉*/
bool JudgeTwoListCrossd(List l1, List l2)
{
......................
阅读全部 | gougoudan 贴于 2020年5月18日 21:48     hide bbsi
#include <stdio.h>
#include <stdlib.h>


/* 节点*/
struct LNode
{
    int data;
    struct LNode *next;
};

typedef LNode* List;
......................
阅读全部 | gougoudan 贴于 2020年5月18日 21:45     hide bbsi
/* 节点*/
struct LNode
{
    int data;
    struct LNode *next;
};

typedef LNode* List;
int main(int arr[], int n)
{
    /* 初始化头指针*/
    struct LNode * h = NULL;
......................
阅读全部 | gougoudan 贴于 2020年5月18日 21:41     hide bbsi
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace work2
{
    class Program
    {
        static void Main(string[] args)
        {
......................
阅读全部 | gougoudan 贴于 2020年5月18日 17:35     hide bbsi
#include <stdio.h>
//字符串连接函数
void strContact(char *result, const char *str1, const char *str2)
{
    int i, j;
    for (i = 0; str1[i]; i++){
        result[i] = str1[i];
    }
    for (j = 0; str2[j]; j++){
        result[i + j] = str2[j];
    }
    result[i + j] = 0;
......................
阅读全部 | gougoudan 贴于 2020年5月17日 14:38     hide bbsi
#include<iostream>
#include<iomanip>
#include<string>
#include<stdlib.h>

using namespace std;
struct student
{
    char xuehao[10];//学号
    char name[10];//姓名
    char sex[5];//性别
    char jiguan[10];//籍贯
......................
阅读全部 | gougoudan 贴于 2020年5月17日 13:39     hide bbsi
#include <stdio.h>
#include <stdlib.h>
#include <math.h>

/*** function declare ***/
void showSignal(double *arr, unsigned int count);
double* signal1(unsigned int* count);
double* signal2(unsigned int* count);
double* signal3(unsigned int* count);

double* (*fnTbl[4])(unsigned int*) = { signal1, signal2,signal3, };

......................
阅读全部 | gougoudan 贴于 2020年5月16日 22:44     hide bbsi
#include <stdio.h>
#define N 100010
int formula[N];
int status[N];
int main(int argc, char *argv[])
{
int m, k;
scanf("%d%d", &m, &k);
for(int i=0; i<m; ++i)
scanf("%d", formula + i);
for(int i=0; i<m; ++i)
scanf("%d", status + i);
......................
阅读全部 | lin5161678 贴于 2020年5月15日 19:27     hide bbsi
#include <windows.h>

/* This is where all the input to the window goes to */
LRESULT CALLBACK WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) {
switch(Message) {

/* Upon destruction, tell the main thread to stop */
case WM_DESTROY: {
PostQuitMessage(0);
break;
}

......................
阅读全部 | akuidefbug 贴于 2020年5月12日 20:44     hide bbsi
上一页 101 102 103 104 105 106 107 108 109 110 下一页