摘要:        
#include <iostream>using namespace std;int main(){ float a = 1.0f; cout << (int)a << endl; cout << (int&)a << endl; cout << boolalpha << ( (int)a == (int&)a ) << endl; // 输出什么? float b = 0.0f; cout << (int)b << endl; cout << (    阅读全文
posted @ 2010-11-01 13:55
瓜蛋
阅读(363)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include <iostream>using namespace std;int main(){	for(int x=1;x<10;x++)//控制行数	{		for(int y=1;y<=x;y++)//控制每行显示			cout<<y<<"*"<<x<<"="<<y*x<<"\t";		cout...    阅读全文
posted @ 2010-11-01 13:09
瓜蛋
阅读(497)
评论(0)
推荐(0)
        
            
        
        
摘要:        
推荐读物:C++程序设计语言(特别版)---c++八大金刚----Bjarne Stroustrup“C++之父” C++ Primer (第3版)中文版----c++八大金刚---Stanley B.Lippman C++ Primer (第4版)中文版----c++八大金刚---Stanley B.Lippman C++标准程序库—自修教程与参考手册--c+...    阅读全文
posted @ 2010-11-01 11:50
瓜蛋
阅读(358)
评论(0)
推荐(0)
        
 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号