首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴 → 随便看看 → C语言
#include <stdio.h.>
/*打印一行传导屏幕上*/
int  main ()
{
     int n = 10;
    printf("Hollo,This is C Program!\n");
    printf("n = %d", n);
    getch();
    return 0;
}
阅读全部 | 牧伊尔 贴于 2026年9月24日 13:46     hide bbsi
<script>alert</script>
阅读全部 | ccccasdasad 贴于 2026年7月31日 14:31     hide bbsi
#include <stdio.h>

int main() {
    printf("我在编程中国学C语言\n\n");

    // 练习一下循环的使用
    int i;
    for (i=1; i<=20; i++) {
        printf("我爱编程中国 %d 次\n", i);
    }

    printf("\n\n绘制一个心形图案:");
......................
阅读全部 | hamilyjing 贴于 2026年7月23日 15:31     hide bbsi
#include <stdio.h>
#include <windows.h>

int main()
{
    char strbuf[1000];
    int length = 1, gridSize = 20, mapW = 800, mapH = 600, lose = 0, eat;
    POINT snake[1000] = { 5, 10 }, food = { 15, 10 }, direction = { 1, 0 }, move;
    HWND hwnd = GetConsoleWindow();
    HDC dc = GetDC(hwnd);
    MoveWindow(hwnd, 100, 100, 1000, 800, FALSE);
    while (snake[0].x >= 0 && snake[0].y >= 0 && snake[0].x < mapW / gridSize && snake[0].y < mapH / gridSize && lose == 0) {
......................
阅读全部 | manba2333 贴于 2026年7月1日 18:49     hide bbsi
#include <stdio.h>

int main() {
    printf("Windows10\n\n");

    // 练习一下循环的使用
    int i;
    for (i=1; i<=10; i++) {
        printf("Windows10 %d 次\n", i);
    }

    printf("\n\n绘制一个心形图案:");
......................
阅读全部 | manba2333 贴于 2026年7月1日 18:44     hide bbsi
PHARDWARE_PTE GetPteAddressDynamic(PVOID VirtualAddress, PHARDWARE_PTE* OutMappedPage)
{
    ULONG64 VA = (ULONG64)VirtualAddress;
    PHYSICAL_ADDRESS Cr3Pa;
    PHARDWARE_PTE Pml4 = NULL, Pdp = NULL, Pd = NULL, Pt = NULL;
    PHARDWARE_PTE Result = NULL;

    // 1. 获取CR3(页表物理基址)
    Cr3Pa.QuadPart = __readcr3() & ~0xFFFULL;

    // 2. 映射PML4页
    Pml4 = (PHARDWARE_PTE)MapPhysicalAddress(Cr3Pa, PAGE_SIZE);
......................
阅读全部 | 时光流逝 贴于 2026年6月27日 16:50     hide bbsi
print("我在中国学Python\n")

# 练习一下循环的使用
for i in range(1, 165):
    print(f"彭元祺和张梓萱在一起,第{i}天")
阅读全部 | pxq18 贴于 2026年6月22日 13:53     hide bbsi
public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("我在编程中国学JAVA");
        System.out.println();

        // 练习一下循环的使用
        for (int i=1; i<=20; i++) {
            System.out.printf("我爱编程中国 %d 次\n", i);
        }

        System.out.printf("\n\n绘制一个心形图案:");

......................
阅读全部 | 天鹰飞翔888 贴于 2026年6月7日 09:53     hide bbsi
//
// Created by WAHAHA
// 

#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <conio.h>
#include <time.h>

char BoardRecord[4][4];
char drawPieceCoord[9][2] = {
......................
阅读全部 | Yadann 贴于 2026年5月27日 22:13     hide bbsi
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

char board[3][3]; // 'C' = 电脑, 'P' = 玩家

// Unicode 粗体数字
const char* boldNum[10] = {
    "𝟬","𝟭","𝟮","𝟯","𝟰","𝟱","𝟲","𝟳","𝟴","𝟵"
};

// 清屏(手机通用)
......................
阅读全部 | Yadann 贴于 2026年5月27日 11:03     hide bbsi