Cout header file Problems

Source: Internet
Author: User

Today I made a small mistake and forgot to add the header file.

In the console project under vc6, The cout output number is applied. The initial error "cout is not defined", and then add # include <iostream. h>:

Result: The program can be compiled normally, but no output is displayed during running ....

After adding # include <stdio. h>

It can run normally.

Supplement: # include <stdio. h> stdio. h indicates "standard input & output"

This indicates the standard input and output header file! This header file must be called when a standard input/output function is used!
Question: or add using namespace STD; to apply the standard namespace, is the reason why the compiler adds a program? Puzzled...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.