首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include <iostream>
using namespace std;
int main() 
{
return 0;
}
阅读全部 | YH_21_LIU 贴于 2022年4月26日 18:14     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) {
......................
阅读全部 | YH_21_LIU 贴于 2022年4月26日 18:02     hide bbsi
num=int(input("请输入一个整数:"))
if num%2==0:
    print("even\n"*8)
else:
    print("odd\n"*8)
阅读全部 | 小呆阳 贴于 2022年4月25日 17:31     hide bbsi
#include <stdio.h>
#include <assert.h>
#include <string.h>
//memcpy制作
void* my_memcpy(void* dest, const void* src, size_t num)
{
    assert(dest && src);
    char* tmp = dest;
    while (num--)
    {
        *(char*)tmp = *(char*)src;
        tmp = (char*)tmp+1;
......................
阅读全部 | nn154189906 贴于 2022年4月25日 16:20     hide bbsi
<html>
阅读全部 | 编了个程 贴于 2022年4月23日 19:35     hide bbsi
#include <stdio.h>
int main()
{
    int i,m=0;
    for (i = 100; i <= 200; i++)
    {
        if (i % 3 == 0) continue;
        printf("%d,", i);
        m=m+1;
        if(m%10==0)
            printf("\n");
    }
......................
阅读全部 | jinping 贴于 2022年4月21日 16:49     hide bbsi
#include <stdio.h>
#include <string.h>
#include <assert.h>
//strstr 查看str1中是否有str2,有则返回str1z中
//的相同的第一字符的起始地址,没有则NULL
char* my_strstr(const char* str1, const char* str2)
{
    assert(str1 && str2);
    const char* s1 = NULL;
    const char* s2 = NULL;
    const char* cp = str1;
    if (*str2=='\0')
......................
阅读全部 | nn154189906 贴于 2022年4月19日 23:06     hide bbsi
#include <stdio.h>
#include <string.h>
#include <assert.h>
//对strcmp进行实现和使用

// int my_strcmp(const char* str1, const char* str2)
// {
//     assert(str1&&str2);
//     while (*str1 == *str2)
//     {
//         if (*str1 == '\0')
//         {
......................
阅读全部 | nn154189906 贴于 2022年4月19日 22:12     hide bbsi
#include <stdio.h>
#include <string.h>
#include <assert.h>
//对strcat进行使用和实现
// int main()//追加函数
// {
//     char arr[20] = "hello ";
//     strcat(arr, "world!");
//     printf("%s", arr);
//     return 0;
// }

......................
阅读全部 | nn154189906 贴于 2022年4月19日 21:44     hide bbsi
CODE SEGMENT
ASSUME CS:CODE
START:
MOV BX, 1000H
MOV SI, 1000H
LEA DI, [BX+SI]
MOV WORD PTR [DI], 1234H
MOV WORD PTR [DI+2], 5678H
L1: LDS BX, [DI]
MOV BX, DI
MOV AL, 3
L2: XLAT
......................
阅读全部 | rainXsung 贴于 2022年4月19日 10:58     hide bbsi
上一页 43 44 45 46 47 48 49 50 51 52 下一页