C++ Primer Plus 第六版(中文版)第五、六章(重置版)编程练习答案

news2024/9/22 11:34:01

//本博主所写的代码仅为阅读者提供参考;

//若有不足之处请提出,博主会尽所能修改;

//附上课后编程练习题目;

//若是对您有用的话请点赞或分享提供给它人;


//--------------------------------------------------------------------------------------------------------------;


//5.9 - 1.cpp

#include <iostream>
using namespace std;

int main()
{
    int num1, num2, sum = 0;

    cout << "Please enter the first integer: ";
    cin >> num1;
    cout << "Please enter the second integer: ";
    cin >> num2;

    for (int i = num1; i <= num2; i++)
    {
        sum += i;
    }
    cout << "Sum of " << num1 << " to " << num2 << " are " << sum << endl;

    return 0;
}

//-------------

//5.9 - 2.cpp

#include <iostream>
#include <array>
using namespace std;

int main()
{
    const int ArSize = 101;
    array<long double, ArSize> factorials;

    factorials[0] = factorials[1] = 1L;
    for (int i = 2; i < ArSize; i++)
    {
        factorials[i] = i * factorials[i - 1];
    }
    for (int i = 0; i < ArSize; i++)
    {
        cout << i << "! = " << factorials[i] << endl;
    }

    return 0;
}

//-------------

//5.9 - 3.cpp

#include <iostream>
using namespace std;

int main()
{
    long long num;
    long long sum = 0LL;

    while (cout << "Please enter an integer(0 to quit): ", cin >> num && num != 0)
    {
        //↑逗号运算符只取最后的结果作为判断条件;
        sum += num;
        cout << "Sum of all integers are " << sum << endl;
    }

    return 0;
}

//-------------

//5.9 - 4.cpp

#include <iostream>
using namespace std;

int main()
{
    int n = 0;
    double daphne_money = 100;
    double cleo_money = 100;

    while (cleo_money <= daphne_money)
    {
        cout << "Year " << ++n << ':' << endl;
        daphne_money += 10;
        cleo_money += cleo_money * 0.05;
        cout << "Cleo's money = " << cleo_money;
        cout << ", Daphne's money = " << daphne_money << endl;
    }
    cout << "After " << n << " years, ";
    cout << "Cleo's money";
    cout << " > Daphne's money." << endl;

    return 0;
}

//-------------

//5.9 - 5.cpp

#include <iostream>
#include <string>
using namespace std;

int main()
{
    const int ArSize = 12;
    const string months[ArSize] = 
    {
        "January", "February","March", 
        "April", "May", "June", "July",
        "August","September", "October",
        "November", "December"
    };
    int sum = 0, sales_volume[ArSize];

    for (int i = 0; i < ArSize; i++)
    {
        cout << "Please enter number of books sold (";
        cout << months[i] << "): ";
        cin >> sales_volume[i];
    }
    for (int i = 0; i < ArSize; i++)
    {
        sum += sales_volume[i];
    }
    cout << "A total of " << sum << " <<C++ For Fools>> books were sold in a year." << endl;

    return 0;
}

//-------------

//5.9 - 6.cpp

#include <iostream>
#include <string>
using namespace std;

const int NUM = 3;
const int ArSize = 12;

int show_result(int (*x)[ArSize], int n);

int main()
{
    const string months[ArSize] = 
    {
        "January", "February","March", 
        "April", "May", "June", "July",
        "August","September", "October",
        "November", "December"
    };
    int sum, total, sales_volume[NUM][ArSize];

    for (int i = 0; i < NUM; i++)
    {
        cout << "Year " << i + 1 << ": " << endl;
        for (int j = 0; j < ArSize; j++)
        {
            cout << "Please enter number of books sold (";
            cout << months[j] << "): ";
            cin >> sales_volume[i][j];
        }
        cout << endl;
    }

    sum = total = show_result(sales_volume, 0);
    cout << "A total of " << sum << " <<C++ For Fools>> books were sold in the first year." << endl;
    total += sum = show_result(sales_volume, 1);
    cout << "A total of " << sum << " <<C++ For Fools>> books were sold in the second year." << endl;
    total += sum = show_result(sales_volume, 2);
    cout << "A total of " << sum << " <<C++ For Fools>> books were sold in the third year." << endl;
    cout << "A total of " << total << " <<C++ For Fools>> books were sold in three years." << endl;

    return 0;
}

int show_result(int (*x)[ArSize], int n)
{
    int sum = 0;

    for (int i = 0; i < ArSize; i++)
    {
        sum += x[n][i];
    }
    return sum;
}

//-------------

//5.9 - 7.cpp

#include <iostream>
#include <string>
using namespace std;

struct car
{
    string producer;
    int year_of_introducion;
};

int main()
{
    int num;

    cout << "How many cars do you wish to catalog? ";
    (cin >> num).get();
    car *many_cars = new car[num];

    for (int i = 0; i < num; i++)
    {
        cout << "Car #" << i + 1 << ':' << endl;
        cout << "Please enter the make: ";
        getline(cin, many_cars[i].producer);
        cout << "Please enter the year made: ";
        (cin >> many_cars[i].year_of_introducion).get();
    }

    cout << "Here is your collection:" << endl;
    for (int i = 0; i < num; i++)
    {
        cout << many_cars[i].year_of_introducion;
        cout << ' ' << many_cars[i].producer << endl;
    }
    delete[] many_cars;

    return 0;
}

//-------------

//5.9 - 8.cpp

#include <iostream>
#include <cstring>
using namespace std;

int main()
{
    const int ArSize = 256;
    char str[ArSize];
    unsigned int count = 0;

    cout << "Enter words (to stop, type the word done):" << endl;
    while (cin >> str, strcmp("done", str))
    {
        ++count;
    }
    cout << "You entered a total of " << count << " words." << endl;

    return 0;
}

//-------------

//5.9 - 9.cpp

#include <iostream>
#include <string>
using namespace std;

int main()
{
    string str;
    unsigned int count = 0;

    cout << "Enter words (to stop, type the word done):" << endl;
    while (cin >> str, str != "done")
    {
        ++count;
    }
    cout << "You entered a total of " << count << " words." << endl;

    return 0;
}

//-------------

//5.9 - 10.cpp

#include <iostream>
using namespace std;

int main()
{
    int row;

    cout << "Enter number of rows: ";
    cin >> row;
    for (int i = 1; i <= row; i++)
    {
        for (int j = i; j <= row - 1; j++)
        {
            cout << ".";
        }
        for (int j = 1; j <= i; j++)
        {
            cout << "*";
        }
        cout << endl;
    }

    return 0;
}

//-------------

//6.11 - 1.cpp

#include <iostream>
#include <cctype>
using namespace std;

int main()
{
    char ch;

    cout << "Type, and I shall repeat(@ to quit)." << endl;
    while (cin.get(ch) && ch != '@')
    {
        if (islower(ch))
        {
            ch = toupper(ch);
        }
        else if (isupper(ch))
        {
            ch = tolower(ch);
        }
        if (!isdigit(ch))
        {
            cout.put(ch);
        }
    }
    cout << "\nPlease excuse the slight confusion." << endl;

    return 0;
}

//-------------

//6.11 - 2.cpp

#include <iostream>
#include <array>
using namespace std;

int main()
{
    int i = 0, j = 0;
    unsigned int count = 0;
    const int ArSize = 10;
    array<double, ArSize> donations;
    double total = 0.0, average = 0.0;

    cout << "You may enter up to " << ArSize;
    cout << " donation (q to terminate)." << endl;
    cout << "donation #1: ";
    while (i < ArSize && cin >> donations[i])
    {
        if (++i < ArSize)
        {
            cout << "donation #" << i + 1 << ": ";
        }
    }

    for (j = 0; j < i; j++)
    {
        total += donations[j];
    }
    average = total / i;
    for (j = 0; j < i; j++)
    {
        if (average < donations[j])
        {
            ++count;
        }
    }

    if (0 == i)
    {
        cout << "No donation!" << endl;
    }
    else
    {
        cout << average << " = average of ";
        cout << i << " donations.\n";
        cout << count << " numbers are greater than the average." << endl;
    }

    return 0;
}

//-------------

//6.11 - 3.cpp

#include <iostream>
using namespace std;

void show_menu();

int main()
{
    char ch;

    show_menu();
    while (cin >> ch)
    {
        switch (ch)
        {
            case 'c':
            {
                cout << "Pandas are also carnivores." << endl;
                break;
            }
            case 'p':
            {
                cout << "Mozart is an excellent pianist." << endl;
                break;
            }
            case 't':
            {
                cout << "A maple is a tree." << endl;
                break;
            }
            case 'g':
            {
                cout << "Playing game can relax yourself." << endl;
                break;
            }
            default:
            {
                cout << "Please enter a c, p, t, or g: ";
                break;
            }
        }
        if ('c' == ch || 'p' == ch || 't' == ch || 'g' == ch)
        {
            break;
        }
    }

    return 0;
}

void show_menu()
{
    cout << "Please enter one of the following choices:" << endl;
    cout << "c) carnivore           p) pianist" << endl;
    cout << "t) tree                g) game" << endl;
}

//-------------

//6.11 - 4.cpp

#include <iostream>
using namespace std;

const int NUM = 5;
const int strsize = 20;

struct bop
{
    char fullname[strsize];
    char title[strsize];
    char bopname[strsize];
    int preference;
};

void show_menu();

int main()
{
    char ch;
    bop people[NUM] = 
    {
        {"Wimp Macho", "Teacher", "WMA", 0},
        {"Raki Rhodes", "Junior Programmer", "RHES", 1},
        {"Celia Laiter", "Professor", "MIPS", 2},
        {"Hoppy Hipman", "Analyst Trainee", "HPAN", 1},
        {"Pat Hand", "Animal Keeper", "LOOPY", 2}
    };

    show_menu();
    cout << "Enter your choice: ";
    while (cin >> ch && ch != 'q')
    {
        switch (ch)
        {
            case 'a':
            {
                for (int i = 0; i < NUM; i++)
                {
                    cout << people[i].fullname << endl;
                }
                break;
            }
            case 'b':
            {
                for (int i = 0; i < NUM; i++)
                {
                    cout << people[i].title << endl;
                }
                break;
            }
            case 'c':
            {
                for (int i = 0; i < NUM; i++)
                {
                    cout << people[i].bopname << endl;
                }
                break;
            }
            case 'd':
            {
                for (int i = 0; i < NUM; i++)
                {
                    switch (people[i].preference)
                    {
                        case 0:
                        {
                            cout << people[i].fullname << endl;
                            break;
                        }
                        case 1:
                        {
                            cout << people[i].title << endl;
                            break;
                        }
                        case 2:
                        {
                            cout << people[i].bopname << endl;
                            break;
                        }
                    }
                }
                break;
            }
            default:
            {
                cout << "Illegal input!" << endl;
                break;
            }
        }
        cout << "Next choice: ";
    }
    cout << "Bye!" << endl;

    return 0;
}

void show_menu()
{
    cout << "Benevolent Order of Programmers Report" << endl;
    cout << "a. display by name     b. display by title" << endl;
    cout << "c. display by bopname  d. display by preference" << endl;
    cout << "q. quit" << endl;
}

//-------------

//6.11 - 5.cpp

#include <iostream>
using namespace std;

int main()
{
    const double TVARPS_5000 = 0.0;
    const double TVARPS_5000_15000 = 0.1;
    const double TVARPS_15001_35000 = 0.15;
    const double TVARPS_35000 = 0.2;
    double wage, tax;

    cout << "Please enter your wage (q or <0 to quit): ";
    while (cin >> wage && wage > 0)
    {
        cout << "Your wage: " << wage << " tvarps.\n";
        if (wage < 5000)
        {
            tax = 0.0;
        }
        else if (wage < 15000)
        {
            tax = (wage - 5000) * TVARPS_5000_15000;
        }
        else if (wage < 35000)
        {
            tax = (wage - 15000) * TVARPS_15001_35000 + 10000 * TVARPS_5000_15000;
        }
        else
        {
            tax = (wage - 35000) * TVARPS_35000 + 20000 * TVARPS_15001_35000 + 10000 * TVARPS_5000_15000;
        }
        cout << "Your tax: " << tax << " tvarps.\n";
        cout << "Next wage (q or <0 to quit): ";
    }
    cout << "Bye." << endl;

    return 0;
}

//-------------

//6.11 - 6.cpp

#include <iostream>
#include <string>
using namespace std;

const int HIGH_MONEY = 10000;

struct corporation
{
    string name;
    double money;
};

int main()
{
    int i, num;
    unsigned int patrons = 0;
    unsigned int grand_patrons = 0;

    cout << "Please enter the number of donators: ";
    (cin >> num).get(); //吸收换行符;
    corporation *people = new corporation[num];

    for (i = 0; i < num; i++)
    {
        cout << "Please enter name #" << i + 1 << ": ";
        getline(cin, people[i].name);
        cout << "Please enter the amount of donation #" << i + 1 << ": ";
        while (!(cin >> people[i].money)) //处理错误输入;
        {
            cin.clear();
            while (cin.get() != '\n')
                continue;
            cout << "Please enter a number: ";
        }
        cin.get(); //吸收正确输入时的换行符;
    }
    for (i = 0; i < num; i++)
    {
        HIGH_MONEY < people[i].money ? ++grand_patrons : ++patrons; //条件运算符代替条件语句;
    }

    cout << "\nGrand Patrons:" << endl;
    if (grand_patrons != 0)
    {
        for (i = 0; i < num; i++)
        {
            if (people[i].money > HIGH_MONEY)
            {
                cout << "Name: " << people[i].name;
                cout << "\nMoney: " << people[i].money << endl;
            }
        }
    }
    else
    {
        cout << "none" << endl;
    }

    cout << "\nPatrons:" << endl;
    if (patrons != 0)
    {
        for (i = 0; i < num; i++)
        {
            if (people[i].money < HIGH_MONEY)
            {
                cout << "Name: " << people[i].name;
                cout << "\nMoney: " << people[i].money << endl;
            }
        }
    }
    else
    {
        cout << "none" << endl;
    }
    delete[] people;

    return 0;
}

//-------------

//6.11 - 7.cpp

#include <iostream>
#include <string>
#include <cctype>
using namespace std;

int main()
{
    string words;
    unsigned int vowels = 0;
    unsigned int consonants = 0;
    unsigned int others = 0;

    cout << "Enter words (q to quit):" << endl;
    while (cin >> words, words != "q")
    {
        if (isalpha(words[0]))
        {
            switch (tolower(words[0]))
            {
                case 'a':
                case 'e':
                case 'i':
                case 'o':
                case 'u':
                {
                    ++vowels;
                    break;
                }
                default:
                {
                    ++consonants;
                    break;
                }
            }
        }
        else
        {
            ++others;
        }
    }
    cout << vowels << " words beginning with vowels" << endl;
    cout << consonants << " words beginning with consonants" << endl;
    cout << others << " others" << endl;

    return 0;
}

//-------------

//6.11 - 8.cpp

#include <iostream>
#include <fstream>
#include <string>
#include <cstdlib>
using namespace std;

int main()
{
    char ch;
    ifstream infile;
    string filename;
    unsigned int count = 0;

    cout << "Please enter name of data file: ";
    getline(cin, filename);
    infile.open(filename);

    if (!infile.is_open())
    {
        cout << "Could not open the file " << filename << endl;
        cout << "Program terminating." << endl;
        exit(EXIT_FAILURE);
    }
    while (infile.get(ch), infile.good())
    {
        ++count;
        cout.put(ch);
    }
    if (0 == count)
    {
        cout << "No data processed." << endl;
    }
    else
    {
        cout << count << " characters in the file " << filename << endl;
    }
    infile.close();

    return 0;
}

//-------------

//6.11 - 9.cpp

#include <iostream>
#include <fstream>
#include <string>
#include <cstdlib>
using namespace std;

const int HIGH_MONEY = 10000;

struct corporation
{
    string name;
    double money;
};

int main()
{
    int i, num;
    string filename;
    ifstream infile;
    unsigned int patrons = 0;
    unsigned int grand_patrons = 0;

    cout << "Please enter name of data file: ";
    getline(cin, filename);
    infile.open(filename);
    if (!infile.is_open())
    {
        cout << "Could not open the file " << filename << endl;
        cout << "Program terminating." << endl;
        exit(EXIT_FAILURE);
    }

    (infile >> num).get();
    corporation *people = new corporation[num];
    for (i = 0; i < num && infile.good(); i++)
    {
        getline(infile, people[i].name);
        while (!(infile >> people[i].money)) //处理错误输入;
        {
            infile.clear();
            while (infile.get() != '\n')
                continue;
        }
        while (infile.get() != '\n')
            continue;
    }
    infile.close();

    for (i = 0; i < num; i++)
    {
        HIGH_MONEY < people[i].money ? ++grand_patrons : ++patrons; //条件运算符代替条件语句;
    }

    cout << "\nGrand Patrons:" << endl;
    if (grand_patrons != 0)
    {
        for (i = 0; i < num; i++)
        {
            if (people[i].money > HIGH_MONEY)
            {
                cout << "Name: " << people[i].name;
                cout << "\nMoney: " << people[i].money << endl;
            }
        }
    }
    else
    {
        cout << "none" << endl;
    }

    cout << "\nPatrons:" << endl;
    if (patrons != 0)
    {
        for (i = 0; i < num; i++)
        {
            if (people[i].money < HIGH_MONEY)
            {
                cout << "Name: " << people[i].name;
                cout << "\nMoney: " << people[i].money << endl;
            }
        }
    }
    else
    {
        cout << "none" << endl;
    }
    delete[] people;

    return 0;
}

//-------------

//------------------------------------------2023年1月1日 ----------------------------------------------;

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/132731.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

JavaScript奇淫技巧:反调试

JavaScript奇淫技巧&#xff1a;反调试 本文&#xff0c;将分享几种JS代码反调试技巧&#xff0c;目标是&#xff1a;实现防止他人调试、动态分析自己的代码。 检测调试&#xff0c;方法一&#xff1a;用console.log检测 代码&#xff1a; var c new RegExp ("1"…

Cesium 定位到图层(ImageryLayer)报错 DeveloperError: normalized result is not a number

Cesium 定位到图层&#xff08;ImageryLayer&#xff09;报错 DeveloperError: normalized result is not a number错误原因调试定位问题过程问题解决总结在使用 Cesium 封装代码的时候&#xff0c;遇到个奇怪的问题。 使用 viewer.flyTo(ImageryLayer) 报错&#xff1a;Devel…

【2022年度悲报】-回望2022,展望2023

文章目录一、前言-想对大家说的话二、有感而谈2022年-新年开端&#xff08;同销万古愁&#xff09;2022年-前中期&#xff08;再进再困&#xff0c;再熬再奋&#xff09;2022年-年后半段&#xff08;玉骨那愁瘴雾&#xff0c;冰姿自有仙风&#xff09;2022年-年末尾声&#xff…

简单总结:Flink和Kafka是如何做到精准一致性的

Flink CheckPoint机制 CheckPoint本质上就是检查点&#xff0c;类似于玩游戏的时候&#xff0c;需要偶尔存档&#xff0c;怕家里断电导致自己白玩。 Flink也是一样的&#xff0c;机器也是可能宕机&#xff0c;那么Flink如何保证自身不受宕机影响呢&#xff1f; 一般来说&am…

python小案例——采集财经数据

前言 大家早好、午好、晚好吖 ❤ ~ 另我给大家准备了一些资料&#xff0c;包括: 2022最新Python视频教程、Python电子书10个G &#xff08;涵盖基础、爬虫、数据分析、web开发、机器学习、人工智能、面试题&#xff09;、Python学习路线图等等 全部可在文末名片获取哦&…

MATLAB算法实战应用案例精讲-【人工智能】语义分割(补充篇)(附实战应用案例及代码)

前言 语义分割作为计算机视觉领域的关键任务,是实现完整场景理解的必经之路。为了让机器拥有视觉,要经过图像分类、物体检测再到图像分割的过程。其中,图像分割的技术难度最高。 越来越多的应用得益于图像分类分割技术,全场景理解在计算机视觉领域也至关重要。其中一些应…

强大的ANTLR4(3)--算术表达式

下面要构建一个简单的计算器&#xff0c;规则如下&#xff1a; 1&#xff09;可以由一系列语句构成&#xff0c;每条语句由换行符终止 2&#xff09;一条语句可以是表达式、赋值语句或空行 3&#xff09;可以有加减乘除、小括号以及变量出现 例如&#xff0c;文件名t.expr的内…

【Java】PriorityQueue梳理

【Java】PriorityQueue梳理 简介 PriorityQueue是优先队列的意思。优先队列的作用是能保证每次取出的元素都是队列中权值最小的。这里牵涉到了大小关系&#xff0c;元素大小的评判可以通过元素本身的自然顺序&#xff08;natural ordering&#xff09;&#xff0c;也可以通过…

linux的例行性工作

一&#xff0c;单一执行的例行性工作 定时任务&#xff0c;将来的某个时间点执行 使用单一理性工作的命令&#xff1a;at -> atd 命令 服务名 查看atd状态&#xff0c;看有没有这个服务&#xff0c;查看结果为有 我们使用 at 命令来生成所要运行的工作&#xff0c;并将…

Taro+nutui h5使用nut-signature 签名组件的采坑记录

近期在使用Taro&#xff08;“tarojs/taro”: “3.4.0-beta.0”&#xff09; Nutui &#xff08;3.1.16&#xff09;开发H5时,需要一个签名功能结果在小程序上运行正常的 nut-signature组件,在h5上出问题了 首先问题是 : Nutui的 签名组件&#xff08;nut-signature&#xff…

加解密与HTTPS(3)

您好&#xff0c;我是湘王&#xff0c;这是我的CSDN博客&#xff0c;欢迎您来&#xff0c;欢迎您再来&#xff5e; 除了对称加密算法和非对称加密算法&#xff0c;再就是最后的一种加密算法了&#xff1a;不可逆加密算法。 对称加密算法和非对称加密算法在处理明文的过程中需要…

线程池ThreadPoolExecutor的源码中是如何解决并发问题的?

ThreadPoolExecutor面临哪些线程安全问题 ThreadPoolExecutor俗称线程池&#xff0c;作为java.util.concurrent包对外提供基础实现&#xff0c;以内部线程池的形式对外提供管理任务执行&#xff0c;线程调度&#xff0c;线程池管理等等服务。 然而为高效并发而生ThreadPoolExe…

C++项目实战:职工管理系统

1.管理系统的要求 系统可以管理公司内部所有员工的信息 主要使用c实现一个基于多态的职工管理系统 公司中的职工分为三类&#xff1a;普通员工、经理、老板&#xff0c;显示信息时需要显示职工编号、职工姓名、职工岗位以及职责 普通员工职责&#xff1a;完成经理安排的各项任…

oh my 毕设-人体姿态估计综述

文章目录What is Human Pose Estimation?Classical vs. Deep Learning-based approachesClassical approaches to 2D Human Pose EstimationDeep Learning-based approaches to 2D Human Pose EstimationHuman Pose Estimation using Deep Neural NetworksOpenPoseAlphaPose (…

想要努力赚钱,培养四种基础能力

这四种基础能力分别是&#xff1a;认知力、学习力、执行力、复盘力。我们的认知和思维&#xff0c;很大程度上&#xff0c;都是由所处的环境和圈子决定的。在同一个环境和圈子里面呆久了&#xff0c;你的认知就会被固化了。穷人最根本的枷锁&#xff0c;不是缺乏资金&#xff0…

excel图表技巧:看看,这个饼图象不象罗盘?

说到制作柱形图、条形图、饼图&#xff0c;相信大家都没有问题&#xff0c;直接选中数据&#xff0c;再插入对应的图表就行了&#xff0c;可如果要制作一张双层饼图你还会吗&#xff1f;“啥&#xff1f;还有双层饼图&#xff1f;”嘿嘿&#xff0c;不知道了吧&#xff0c;双层…

PVE+NUT+群晖等配置

文章目录配置文件说明默认配置(翻译的)ups.conf(设置ups通信相关)upsd.conf(设置ups客户访问的相关信息)upsd.users(设置upsd用户)nut.conf(nut的配置,主要是模式&#xff0c;决定使用哪些文件)upsmon.confupssched.confupssched-cmd官方手册写的可以的文章只需要实现&#xff…

excel数据查找:内容查找统计的函数公式

判断单元格是否包含特定内容是平时工作中经常会遇到的一类问题&#xff0c;常见于包含备注信息的表格中。例如下面这个考勤汇总表&#xff0c;需要根据备注中的内容判断该员工是否存在加班的情况&#xff0c;就属于这类问题。 遇到这类问题该如何处理&#xff0c;常用的公式做法…

klee2.3 教程1-2

1. klee2.3 安装 system&#xff1a;unbuntu 20.04 note: llvm-13klee2.3z3-4.10 1.1 install dependencies KLEE 需要 LLVM 的所有依赖项&#xff08;请参阅此处&#xff09;&#xff0c;以及更多。特别是&#xff0c;您应该安装下面列出的程序和库。graphviz/doxygen是可…

初级C语言之【操作符】

&#x1f996;作者&#xff1a;学写代码的恐龙 &#x1f996;博客主页&#xff1a;学写代码的恐龙博客主页 &#x1f996;专栏&#xff1a;【初级c语言】 &#x1f996;语录&#xff1a;❀未来的你&#xff0c;一定会感谢现在努力奋斗的自己❀ 初级C语言之【操作符详解】一&am…