#include<iostream.h>
#include<malloc.h>
struct W{
int x;
W *next;
};
void main(){
W *q;
W *head;
W *s;
W *a;
head=(W *)malloc(sizeof(W));
......................
阅读全部
|
chenmeng1992
贴于 2012年12月3日 18:24
hide
bbsi
#include<string.h>
#define N 3
#define M 20
main()
{
char str0[N][M],str1[M],*p,*q;
int i,l,m,n;
q=str0;
for(;p<q+N;p++)
gets(p);
l=strcmp(q,q+1); //string compare
if(l>0)
......................
阅读全部
|
lilylis
贴于 2012年11月29日 22:00
hide
bbsi
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<math.h>
#define N 100
struct studentinfmansys
{
char Major[30];
char Name[15];
char Num[20];
char Sex[5];
char HouseAddr[50];
......................
阅读全部
|
cyc199124
贴于 2012年11月29日 01:00
hide
bbsi
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<math.h>
#define N 100
struct studentinfmansys
{
char Major[30];
char Name[15];
char Num[20];
char Sex[5];
char HouseAddr[50];
......................
阅读全部
|
cyc199124
贴于 2012年11月29日 01:00
hide
bbsi
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>圆角</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="generator" content="editplus" />
<meta name="author" content="cjx" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<style type="text/css">
.font{
......................
阅读全部
|
梦醒幻睡
贴于 2012年11月27日 17:23
hide
bbsi
#include <stdio.h>
int main(void)
{
printf("\n是否登录QQ?");
char a='0';
there:printf("(Y or N ?)");
scanf("%s",&a); //为何选择scanf("%c",&a);会输出冗余重复的提示 ?
switch(a)
{
case 'y':case 'Y':
printf("\n正在启动腾讯QQ登录界面,请稍候......\a\a\n");
/*......\a的作用是让蜂鸣器发出声响......*/
......................
阅读全部
|
LLC86
贴于 2012年11月27日 11:28
hide
bbsi
#include "stdio.h"
#include "math.h"
void main()
{
int a[10],n,i=0,j=0,k=0;
printf("请输入一个数:");
scanf("%d",&n);
while(n!=0)
{
a[i++]=n%10;
n/=10;
}
......................
阅读全部
|
如此自肆
贴于 2012年11月25日 12:15
hide
bbsi