C标准库学习之<assert.h> ——诊断
来源:互联网 发布:监控app软件排行 编辑:程序博客网 时间:2024/04/29 12:21
#include <stdio.h>#include <assert.h> // 诊断/*=========================================================time: 2017年1月24日17:04:51objective: test C language's head file of <assert.h> version: Microsoft Visual C++author: ChenFeiremark: 日文system 部分汉字需用拼音代替=========================================================*/int main(void){ int a; char str[50]; printf("Please enter a value."); scanf("%d", &a); assert(a >= 10); // assert(ture),程序继续执行 printf("Entered number is %d\n", a); // assert(false),程序跳出错误窗口,并打出错误信息。 printf("Please input string. "); scanf("%s", &str); assert(str != NULL); printf("The input string is %s\n", str); return 0;}
0 0
- C标准库学习之<assert.h> ——诊断
- 《C标准库》—之<assert.h>实现
- C标准库——assert.h
- C标准库——assert.h
- C 标准库—— assert.h
- C语言标准库之 <assert.h>
- [学习标准库]assert.h
- C语言学习笔记(六)诊断<assert.h>
- C标准库学习之<errno.h> ——错误
- C标准库头文件 assert.h
- assert.h C标准库介绍
- C /C++标准库 - <cassert> (assert.h)
- C标准库<assert.h>实现
- C标准库之一:assert.h
- C标准库源码解读(VC9.0版本)——assert.h
- c标准函数库--->assert.h
- 标准C的头文件assert.h学习总结
- P.J.Plauger版本C标准库实现分析之'assert.h'
- 你的管理,为什么没带出优秀的团队?
- 最近使用频率较高的linux命令
- (六)play之yabe项目【验证码】
- new操作符(翻译自mozilla.org)
- SparkRDD的一些使用经验
- C标准库学习之<assert.h> ——诊断
- Leetcode004-Median of Two Sorted Arrays
- Linux 文件权限 学习笔记
- SDWebImage源码解读 之SDWebImageDownloader
- 【微信小程序】1.24学习进度
- (七)play之yabe项目【CRUD】
- 猜糖块 (sdut oj)
- JavaScript this简介
- 【BZOJ 2054】疯狂的馒头 并查集