首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
void main()
{
    int gdriver = DETET,gmode;
    intgraph(&gdriver,&gmode,"c:\\tc")
    cleardevice();
    printf("\n to draw lines with function 'line;.");
    line(160,120,360);
    line(300,480,250);
    getch();
    cleardevice();
    print("\n to draw lines with function 'lineto'.");
    moveto (160,120);
......................
阅读全部 | j18293838448 贴于 2021年3月4日 16:10     hide bbsi
from urllib3 import *
from re import *
#禁止显示警告信息
disable_warnings()
#下载url对应的web页面
def download(url):
    result = http.request('GET',url)
    #获取web页面对应的HTML代码
    htmlStr = result.date.decode('uft-8')
    return htmlStr
#分析HTML代码
def anayse (htmlStr):
......................
阅读全部 | j18293838448 贴于 2021年3月4日 13:49     hide bbsi
from urllib3 import *
from re import *
http =PoolManager()
disable_warnings()
#下载HTML文件
def download(url):
    result = htp.request('GET',url)
    #讲下载的HTML文件代码问uft-8格式解码成字符串
    htmlStr = result.date.decode('uft-8')
    #输出当前抓取的HTML代码
    print(htmlStr)
    result htmlStr
......................
阅读全部 | j18293838448 贴于 2021年3月3日 15:54     hide bbsi
#include<iostream>
using namespace std;
int main()
{
    int t,n,m;
    cin>>t;
    for(int q=1;q<=t;q++)
    {
        cin>>n>>m;
        if(n%2==0)
        {
            if(m<=n/2)
......................
阅读全部 | 我爱罗梦琪 贴于 2021年3月2日 16:30     hide bbsi
#include <stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
void menu()
{
    printf("xxxxx\n");
    printf("请选择 1.paly   0.exit \n");
}
void game()
{
    int set=0;
......................
阅读全部 | Dnoe 贴于 2021年2月28日 20:35     hide bbsi
#include<stdio.h>

int main() 
{
   int i=1;
   for(i=1;i<=9;i++)
   {
       int j=1;
       for(j=1;j<=i;j++)
      {
          printf("%d*%d=%-3d",i,j,i*j);
          
......................
阅读全部 | Dnoe 贴于 2021年2月27日 18:54     hide bbsi
#include<stdio.h>

int main() 
{
    int i=0;
    int count=0;
    for(i=1;i<=100;i++)
     {
          if(i%10==9)
          {
              count++;
          }
......................
阅读全部 | Dnoe 贴于 2021年2月27日 18:30     hide bbsi
#include<stdio.h>

int main() 
{
     int i=0;
     double sum=0.0;
     int zhuan=1;
     for(i=1;i<=100;i++)
     {
         sum+=zhuan*1.0/i;
         zhuan=-zhuan;
     }
......................
阅读全部 | Dnoe 贴于 2021年2月27日 18:17     hide bbsi
#include<stdio.h>
#include<math.h>
int main() {
  int i=0;
  int count=0;
  for(i=101; i<=200; i+=2)
  {
        int j=0;
        
        for(j=2;j<sqrt(i);j++)
        {
          if(i%j==0) 
......................
阅读全部 | Dnoe 贴于 2021年2月27日 17:37     hide bbsi
​/*
01背包动态规划思维不同于常规思维,
掌握方法及参数的内容,
动态转移方程的理解熟。
通过实例学习,
序号(i)|单个物体重量w(i)|单个物品价值v(i)
1         22            15
2         18            18
3         9             10
4         24            13
5         15            20
包能承最大重35
......................
阅读全部 | qunxingw 贴于 2021年2月18日 11:54     hide bbsi
上一页 76 77 78 79 80 81 82 83 84 85 下一页