这是C++课程设计作业(至少要200行)可是我补不齐了。跪求各位大神帮忙补一下。补到接近200行就行了,要是哪位好心的话,再把你们补上的过程给小弟解释一下,小弟是初学者。很多问题都不是多会的。 跪谢啊啊!
急求啊,过了明天就要交的。
#include<stdio.h>
void PrintMonthCalender(int startDay,int days);/*函数原型*/
int GetWeekDay(int year,int month);/*函数原型*/
int GetMonthDays(int year,int month);/*函数原型*/
main()
{
int month,year;/*定义变量*/
......................
阅读全部
|
lnq0906
贴于 2012年6月9日 13:59
hide
bbsi
/*
将小写字母与汉字建立下下表所示的对应关系,则魔王说的话是:“天上一只鹅
地上一只鹅追鹅赶鹅下鹅蛋鹅恨鹅天上一只鹅地上一只鹅 "
----------------------------------------
t d s a e z g x n h
天 地 上 一只 鹅 追 赶 下 蛋 恨
----------------------------------------
*/
#include <stdio.h>
#include <stdlib.h>
#include<string.h>
......................
阅读全部
|
泥鳅小子
贴于 2012年6月9日 09:17
hide
bbsi
#include <iostream.h>
void main()
{
char a[10];
cin >> a;
cout << a << endl;
}
问题:如果输入的字符数超过十个,会不会引起数组越界?
阅读全部
|
JUao067
贴于 2012年6月7日 22:42
hide
bbsi
/*
String类: first、last、has、has_any、has_all、is_in、format
Array类: first、last、has、has_any、has_all、is_in、any_in、all_in
*/
var has_any = function() {
var list = arguments;
if (typeof(list[0])=='object') {
list = list[0];
}
var result = false;
for (var i=0; i<list.length; i++) {
if (this.has(list[i])) {
......................
阅读全部
|
静夜思
贴于 2012年6月7日 19:22
hide
bbsi
class Object
def in?(arr)
arr.include? self
end
end
class Array
def any_in?(container)
container.has_any? self
end
def all_in?(container)
......................
阅读全部
|
静夜思
贴于 2012年6月4日 19:19
hide
bbsi
Deleting intermediate files and output files for project 'gh0st - Win32 Release'.
Build : warning : failed to (or don't know how to) build 'C:\Documents and Settings\adminstror\桌面\新建文件夹\gh0st\res\install.exe'
--------------------Configuration: gh0st - Win32 Release--------------------
Build : warning : failed to (or don't know how to) build 'C:\Documents and Settings\adminstror\桌面\新建文件夹\gh0st\res\install.exe'
Compiling resources...
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE/SpecStrings.h(11) : 致命错误 RC1015: 无法打开包含文件 'sal.h'.
执行 rc.exe 时出错.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Release\StdAfx.sbr': No such file or directory
执行 bscmake.exe 时出错.
gh0st.exe - 1 error(s), 1 warning(s)
阅读全部
|
lysh2010
贴于 2012年6月3日 19:59
hide
bbsi
Deleting intermediate files and output files for project 'gh0st - Win32 Release'.
Build : warning : failed to (or don't know how to) build 'C:\Documents and Settings\adminstror\桌面\新建文件夹\gh0st\res\install.exe'
--------------------Configuration: gh0st - Win32 Release--------------------
Build : warning : failed to (or don't know how to) build 'C:\Documents and Settings\adminstror\桌面\新建文件夹\gh0st\res\install.exe'
Compiling resources...
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE/SpecStrings.h(11) : 致命错误 RC1015: 无法打开包含文件 'sal.h'.
执行 rc.exe 时出错.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Release\StdAfx.sbr': No such file or directory
执行 bscmake.exe 时出错.
gh0st.exe - 1 error(s), 1 warning(s)
阅读全部
|
lysh2010
贴于 2012年6月3日 19:57
hide
bbsi
//模型控制模块
void chosenlist::insertone(int px,int PY,int rllx,int my)//插入到数据结构。相应把电势更新,再
次迭代,并且把备选表中的节点删除,而且,加入相邻节点
{
node tmp(px,py,mx,my,true,false);
tmp.1evel=g->u[mx][my];
g->u[mx][my]=O;
lchosenlist.push_back(tmp);
}
void chosenlist::addCandidate(int px,int PY,int mx,int my)//添加--个候选点,不做任何判断。
{
ModelControl(mx,my);
......................
阅读全部
|
lujianlj
贴于 2012年6月1日 21:41
hide
bbsi
class Object
def in?(arr)
arr.include? self
end
end
class Array
def any_in?(container)
container.has_any? self
end
def all_in?(container)
......................
阅读全部
|
静夜思
贴于 2012年6月1日 16:49
hide
bbsi
你这个程序编写的对吗 只是求个素数而已 为什么要开平方根呢
另外你第一个for循环中你n=n+2 即使程序编写的对 当然是不能五个来一个空格了 好好想想
阅读全部
|
阿鞠尼
贴于 2012年5月31日 09:27
hide
bbsi