给大家讲个笑话
学完了C语言,开始学C++。今天编了一个很简单的关于继承的程序,确信准确无误。但是compile的时候,死活过不去。VC给出的理由是:
'cout' : undeclared identifier
'endl' : undeclared identifier
'<<' : operator has no effect;
百思不得其解……
最后发现程序第一行写的是:
#include<stdio.h>.
哈哈哈哈哈哈哈哈哈哈...................................
.......................................................
.......................................................
.......................................................
.......................................................
.......................................................
.......................................................
.......................................................
.......................................................
.......................................................
.......................................................
.......................................................
.......................................................