首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看C++
#include<iostream>
#include<iomanip>
using namespace std;
void yiwei()
{
int chengshu, beichengshu;
cout << "一位乘法(请从大到小输入)" << endl;
cin >> chengshu >> beichengshu;
system("cls");
cout << setw(7) << chengshu << endl;
cout << setw(1) << "×" << setw(5) << beichengshu << endl;
cout << setw(7) << "-------";
......................
阅读全部 | 万致远醉帥 贴于 2020年3月28日 13:16     hide bbsi
#include<iostream>
using namespace std;
const int jj = 6;
int main()
{
int i = 1;
int main[jj],*p[jj];
cout << "记录表";
for (size_t i = 0; i < jj; i++)
{

cin >> main[i];
......................
阅读全部 | 万致远醉帥 贴于 2020年3月27日 17:54     hide bbsi
#include<iostream>
using namespace std;
int main(){
    cout<<"hello world";
    return 0;
}
阅读全部 | maomao12345 贴于 2020年3月24日 09:50     hide bbsi
#include<iostream>
using namespace std;
int n,m,k,xt,yt,xs,ys,xe,ye;
int ans=0;
char a[100][100];
int dirx[4]={-1,1,0,0};
int diry[4]={0,0,1,-1};
bool vis[100][100]={false};
void dfs(int x,int y){
if(x==xe&&y==ye){
ans++;
return;
......................
阅读全部 | return_0 贴于 2020年3月19日 21:21     hide bbsi
#include<iostream>
using namespace std;
int n,m,k,xt,yt,xs,ys,xe,ye;
int ans=0;
char a[100][100];
int dirx[4]={-1,1,0,0};
int diry[4]={0,0,1,-1};
bool vis[100][100]={false};
void dfs(int x,int y){
if(x==xe&&y==ye){
ans++;
return;
......................
阅读全部 | return_0 贴于 2020年3月19日 21:04     hide bbsi
/*
Name: games.h
Copyright:
Author: Tc_xk
Date: 16-02-20 14:51
Description: for dev-c++:NOT offical headfile for game making
*/
#include <iostream>
#include <string>
#include<Windows.h>
#include<cstdlib>
#include<ctime>
......................
阅读全部 | return_0 贴于 2020年2月27日 11:26     hide bbsi
#include <stdio.h>
#include <iostream>
#include <math.h>

float f(float x, float y, float z) {
float a = x * x + 9.0f / 4.0f * y * y + z * z - 1;
return a * a * a - x * x * z * z * z - 9.0f / 80.0f * y * y * z * z * z;
}

float h(float x, float z) {
for (float y = 1.0f; y >= 0.0f; y -= 0.001f)
if (f(x, y, z) <= 0.0f) {
......................
阅读全部 | zkphello 贴于 2020年2月17日 11:24     hide bbsi
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <stdint.h>
#include <limits.h>
#include <float.h>

#define _CRT_SECURE_NO_WARNINGS
#define LN10    2.302585092994045684018
#define RLN10  0.43429448190325182765

#define  MAX_LEN  128
......................
阅读全部 | liangbch 贴于 2019年12月25日 09:07     hide bbsi
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <assert.h>

#define MAX_Q  1000000000 
// 返回最大下标
int calc_cfrac(double x, int a[], int p[], int q[], int max_idx)
{
   double ipart;
   int i;
   
......................
阅读全部 | liangbch 贴于 2019年12月21日 20:28     hide bbsi
#include <stdio.h>
#include <stdlib.h>
#include <float.h>
#include <stdint.h>
#include <math.h>
#include <mpfr.h>
#include <mpreal.h>
#include <time.h>
#include <inttypes.h>

#define LG2  0.30102999566398119521
#define RLN2 1.44269504088896340735
......................
阅读全部 | liangbch 贴于 2019年12月18日 09:02     hide bbsi
上一页 10 11 12 13 14 15 16 17 18 19 下一页