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: 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: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|