by: Matthew David Hills |
last post by:
If setw() is being used to limit how many characters are pulled from
a stream, should the # of characters taken from the stream depend on
whether the stream is being sent to a std::string or a...
|
by: Alex Vinokur |
last post by:
Both function width() and manipulator setw() set field width for _next_ output operation.
width() seems to be less handy because we should split a chain of <<.
Is there any situation in which...
|
by: Mathieu Malaterre |
last post by:
Hello,
I am trying to get rid a of sprintf in a c++ code, but I tried in
several ways and couldn't figure out how to change:
uint16_t group, uint16_t element;
sprintf(buffer, "%04x|%04x",...
|
by: tvn007 |
last post by:
Below is my code:
#include <string>
#include <iostream>
#include <iomanip>
int main (void){
using namespace std;
string name1 = "JOHN";
int id1 = 1234;
|
by: alternativa |
last post by:
Hi,
I'd like to obtain an output looking as follows:
name number phone address
Caroline 233 34234 White St. 12
Anna 929043 093284 Brown St. 325...
|
by: edd |
last post by:
Hello all,
I'm trying to put together some code that reads 3 adjacent pairs of hex
digits from an istream. Each hex digit pair represents a non-negative
integer.
For example I would like to...
|
by: Jess |
last post by:
Hello,
I'm trying to use setw and width functions to set the padding spaces
between numbers. The aim is to create two white spaces between two
double e.g. "1.1 1.2". I did:
streamsize s =...
|
by: fathi |
last post by:
hello everyone, i am actually new to c++.
my problem is i need to display information from a file but i don't know how to do so for more than 4 elements horizontally
. my code:
void...
|
by: Christian Johannes Charbula |
last post by:
hi,
does anybody know how i can get the information what width for a
ostream is actually set?
i want to do somthing like the following, and need a way to do something
like stream.getw().
...
|
by: Simonius |
last post by:
Hello,
I'm teaching myself C++ with Accelerated C++ by Andrew Koenig.
I'm having a small problem with an exercise at page 73.
Now I was wondering how I should do that with setw, easiest...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|