Top "Cout" questions

std::cout is the global stream object provided by the C++ standard library for writing to the standard output stream.

Floating point format for std::ostream

How do I do the following with std::cout? double my_double = 42.0; char str[12]; printf_s("%11.6lf", my_double); // Prints " 42.000000" …

c++ floating-point cout ostream
std::cout won't print

Is there any circumstance when std::cout << "hello" doesn't work? I have a c/c++ code, however the …

c++ debugging buffer iostream cout
getting cout output to a std::string

I have the following cout statement. I use char arrays because I have to pass to vsnprintf to convert variable …

c++ cout stdstring
std::cout to print character N times

How can I print a character N number of times using std::cout without looping? Is there a way to …

c++ cout
How can I print a string to the console at specific coordinates in C++?

I'm trying to print characters in the console at specified coordinates. Up to now I have been using the very …

c++ printf coordinates cout
How to remove last character put to std::cout?

Is it possible on Windows without using WinAPI?

c++ stdout cout
Multiplying a string by an int in C++

What do I have to do so that when I string s = "."; If I do cout << s * 2; Will …

c++ string integer cout multiplication
Very simple program not working in c++?

I can't figure out why this isn't working... I am working in Linux g++ doesn't do anything gcc prints the …

c++ cout
print double with precision 4 using cout

Possible Duplicate: Convert a double to fixed decimal point in C++ Suppose , I have double a = 0 and I want to …

c++ double precision cout
How to print a type vector<pair<char, int>> to screen c++?

I have a method that returns a value vector> and I cannot figure out how to print the contents …

c++ vector cout