- 博客(4)
- 收藏
- 关注
原创 【shell】:编写一个shell脚本连续执行多个测试命令
11. 先放上源代码#!/bin/bash# This script descripts test case on xxx platformfile="test_case.txt"$?=0while read -r testcasedo echo "---------- executing test case $testcase ----------" $testcase if [ $? -ne 0 ] then echo "------
2021-07-30 09:49:26
1010
1
原创 【C++】: 隐式构造函数和显示构造函数的实验和讨论
1. 先放一段实验代码及编译结果。#include <iostream>class Stock1{public: Stock1(std::string str) { name = str; }private: std::string name;};class Stock2{public: explicit Stock2(std::string str) { name = str;
2021-07-29 19:16:07
632
1
原创 【编程题1】:任意输入一个整形数字,然后将每一位都转换成对应的字符并且顺序打印出来。
编程题1:任意输入一个整形数字,然后将每一位都转换成对应的字符并且顺序打印出来。/* Calculate the width of integer value */int width_of_integer(int s){ int width = 1; while(s /= 10) width++; return width;}int main(void){ int value; printf("Please input an integer: "); scanf("%d"
2021-01-29 12:18:20
699
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人