摘要: 首先看一段程序,目的是完成一个计算器的计算,面向过程的写法#include "stdafx.h"#include <string>#include <iostream>using namespace std;int main(int argc, char* argv[]){ int strNumA,strNumB; int strOperator; cout<<"请输入数字A:\n"; cin>>strNumA; cout<<"请选择运算符号(1,+,2,-,3,*,4,/):\n&q 阅读全文
posted @ 2011-04-07 16:51 skyme 阅读(1104) 评论(1) 推荐(1) 编辑