首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
/*我编写了个程序,源代码如下:*/
#include <stdio.h>
#define SIZE 2
struct Student_type
{
   char name[10];
   int num;
   int age;
   char addr[15]; } stud[SIZE];
void save()
{
   FILE *fp;
......................
阅读全部 | RebelRebel 贴于 2013年4月3日 17:33     hide bbsi
FileStream fs = new FileStream(ExcelPath, FileMode.Open);
             HSSFWorkbook workbook = new HSSFWorkbook(fs);
             HSSFSheet currentSheet = (HSSFSheet)workbook.GetSheet("sheet");
             HSSFCellStyle style8 = (HSSFCellStyle) workbook.CreateCellStyle();
             style8.FillForegroundColor = NPOI.HSSF.Util.HSSFColor.WHITE.index;
         
             style8.FillBackgroundColor = NPOI.HSSF.Util.HSSFColor.RED.index;
             HSSFCell cell = new HSSFCell(workbook, currentSheet, 4, (short)(4));
             cell.CellStyle = style8;
             cell.SetCellValue("123");
fs.close();
阅读全部 | helen_gqq 贴于 2013年4月3日 13:58     hide bbsi
# include<stdio.h>
# include<malloc.h>
# include<stdlib.h>

typedef struct SQLIST
{
int * pBase;
    int size;
int MAXSIZE;
} L ;

void Init_SqList(L * pList, int maxsize)
......................
阅读全部 | zxh2013 贴于 2013年4月2日 19:11     hide bbsi
下面是一游戏程序的一段,调试结果是非法定义:如何改正?

char PlaceMade::roomthreeeast(){    int x;     cout << "当你迈进城堡最东边的屋子你注意到\n";     cout << "屋子完全是空的, 没门, 没窗, 甚至 \n";     cout << "没有对问题的任何描述.  程序员走进这间房时\n";     cout << "一定相当累了.\n";     cout << "你想做点什么?\n";     cout << "(1) West: \n";     cout << "(2) 杀死自己: \n";     cin >> x;if (x == 1){     cout << "\n\n\n";     return roomtwoeast();}else if (x == 2){   cout << "有些人呢太自负.  你认为\n";     cout << "事情会如此简单吗?\n\n\n";     system("pause");     return roomthreeeast2();}}
阅读全部 | laizihebei 贴于 2013年4月2日 19:01     hide bbsi
#include<iostream>
#include<cstring>
using namespace std;
void decrypt();//解密函数
void encrypt();//加密函数
void main()
{  
cout<<" ____________________________________________"<<endl;
cout<<"|                                            |"<<endl;
cout<<"|         多表代换密码Playfair的实现         |"<<endl;
cout<<"|              欢迎使用本程序                |"<<endl;
cout<<"|____________________________________________|"<<endl;
......................
阅读全部 | 努力的学习 贴于 2013年4月2日 15:57     hide bbsi
#include<stdio.h>
#include"malloc.h"
#include<stdlib.h>
#define listinitsize 100
#define OVERFLOW -1
typedef struct sqlist{
int*elem;
int length;
int listsize;
}sqlist;
sqlist la,lb,lc;
void printlist();
......................
阅读全部 | ouyang001 贴于 2013年3月31日 13:58     hide bbsi
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

#define MAX 20

void Input(int a[])
{
int i, j;
char str[MAX] = {0};

scanf("%s", str);
......................
阅读全部 | azzbcc 贴于 2013年3月31日 00:14     hide bbsi
#include <stdio.h>

#define MAX 10001
int ss[MAX][MAX] = {{1, 1}, {1, 2}, {1, 4}};

void Multiply(int a)
{
if (ss[a+a][0]) return;

int temp, n, i, j;
n = ss[a][0] * 2 + 1;

......................
阅读全部 | azzbcc 贴于 2013年3月31日 00:11     hide bbsi
#include <stdio.h>

#define N 200
#define SIZE 400

int a[N][SIZE] = {{1, 1}, {1, 2}, {1, 6}};

void Init(int n)
{
int i, j = 1, temp = 0;

for (i = a[n-1][0];i > 0;--i)
......................
阅读全部 | azzbcc 贴于 2013年3月31日 00:10     hide bbsi
while(scanf("%d %d %d", &a, &b, &c) == 3)后边的 ==3   是什么意思?

大家赶快帮帮我!
阅读全部 | ZJ462659300 贴于 2013年3月30日 13:22     hide bbsi
上一页 261 262 263 264 265 266 267 268 269 270 下一页