All AP Computer Science A Resources
Example Questions
Example Question #2 : Class Design
Which of the following header statements allow you to omit using the std:: when using cout?
Possible Answers:
using namespace std;
#include <cmath>
You don't need a header statement.
#include <standard>
#include <iostream>
Correct answer:
using namespace std;
Explanation:
You must put using namespace std; at the top of your file to avoid having to type std:: every time you use cout and cin.
All AP Computer Science A Resources
Popular Subjects
Math Tutors in New York City, ACT Tutors in Houston, ISEE Tutors in Philadelphia, Statistics Tutors in Seattle, Biology Tutors in San Diego, ACT Tutors in Denver, ISEE Tutors in Atlanta, Algebra Tutors in Philadelphia, LSAT Tutors in Phoenix, English Tutors in Houston
Popular Courses & Classes
SSAT Courses & Classes in Philadelphia, ACT Courses & Classes in Philadelphia, LSAT Courses & Classes in Houston, Spanish Courses & Classes in Houston, ISEE Courses & Classes in San Diego, GMAT Courses & Classes in Los Angeles, GMAT Courses & Classes in Atlanta, ISEE Courses & Classes in Dallas Fort Worth, GRE Courses & Classes in Denver, GMAT Courses & Classes in Phoenix
Popular Test Prep
ISEE Test Prep in Miami, LSAT Test Prep in Houston, SSAT Test Prep in New York City, ACT Test Prep in Denver, GMAT Test Prep in Los Angeles, ACT Test Prep in Philadelphia, GMAT Test Prep in New York City, ISEE Test Prep in Dallas Fort Worth, GMAT Test Prep in Miami, GMAT Test Prep in Atlanta
![Learning Tools by Varsity Tutors](https://vt-vtwa-app-assets.varsitytutors.com/assets/problems/og_image_practice_problems-9cd7cd1b01009043c4576617bc620d0d5f9d58294f59b6d6556fd8365f7440cf.jpg)