文件名称:VarianceCalc
介绍说明--下载内容均来自于网络,请自行研究使用
方差计算器软件以及C++源代码,源码添加了注释,自认为已经很详细,但是有关于数据结构的部分我可以算没有添加任何注释了,因为数据结构这个东西我不认为添加一点注释是能够理解的。
用VC6编写,Win32 Application程序,源码均由个人完成。实现大致思路:
定义一个字符串,用于存储输入的数据,提取第一个字符到 mbi,如果其中有一个字符不是为数字、小数点、负号,将终止循环,那么mbi的值将不会是 \0 ,如果负号出现在除位置1以前的其它位置,或者小数点的个数已经超过1,那么将终止循环,如果这是一个小数点,那么将0赋值给num,可以防止在用户输入小数点后没有输入数据但检测不到错误的情况,重新给mbi赋值 如果此时已经是next字符串的最后一个字符,那么赋值之后mbi的值便是 \0 -Variance calculator software and C++ source code, source code to add a note, since that is already very detailed, but there on the part of the data structure that I can count did not add any comments, because the data structure of this thing, I do not think that adding a little note to be able to understand the.
Written by VC6, Win32 Application procedures source completed by the individual. Achieve general idea:
Define a string input for data storage, extract the first character to mbi, if there was a character not as a number, decimal point, minus sign, will terminate the loop, then the value will not be mbi \ 0 If a negative number in addition to a previous position elsewhere, or decimal number has more than one, then the cycle will be terminated if it is a decimal point, then 0 is assigned to num, can prevent the user input is not entered after the decimal point data but does not detect the error, re-assignment to mbi next if this time is the last character of the string, the
用VC6编写,Win32 Application程序,源码均由个人完成。实现大致思路:
定义一个字符串,用于存储输入的数据,提取第一个字符到 mbi,如果其中有一个字符不是为数字、小数点、负号,将终止循环,那么mbi的值将不会是 \0 ,如果负号出现在除位置1以前的其它位置,或者小数点的个数已经超过1,那么将终止循环,如果这是一个小数点,那么将0赋值给num,可以防止在用户输入小数点后没有输入数据但检测不到错误的情况,重新给mbi赋值 如果此时已经是next字符串的最后一个字符,那么赋值之后mbi的值便是 \0 -Variance calculator software and C++ source code, source code to add a note, since that is already very detailed, but there on the part of the data structure that I can count did not add any comments, because the data structure of this thing, I do not think that adding a little note to be able to understand the.
Written by VC6, Win32 Application procedures source completed by the individual. Achieve general idea:
Define a string input for data storage, extract the first character to mbi, if there was a character not as a number, decimal point, minus sign, will terminate the loop, then the value will not be mbi \ 0 If a negative number in addition to a previous position elsewhere, or decimal number has more than one, then the cycle will be terminated if it is a decimal point, then 0 is assigned to num, can prevent the user input is not entered after the decimal point data but does not detect the error, re-assignment to mbi next if this time is the last character of the string, the
(系统自动生成,下载前可以参看下载内容)
下载文件列表
VarianceCalc\VarianceCalc Source V1.0\VarianceCalc\109.ico
............\........................\............\button.cpp
............\........................\............\List.cpp
............\........................\............\msg.cpp
............\........................\............\resource.h
............\........................\............\Resource.rc
............\........................\............\VarianceCalc.dsp
............\........................\............\VarianceCalc.dsw
............\........................\............\VarianceCalc.h
............\........................\............\WinMain.cpp
............\........................\说明.txt
............\........................\VarianceCalc
............\VarianceCalc Source V1.0
VarianceCalc