formatted-input Questions

3

Solved

I've been trying to use regular expressions on scanf, in order to read a string of maximum n characters and discard anything else until the New Line Character. Any spaces should be treated as regul...
Vernettaverneuil asked 14/2, 2013 at 11:15

4

Solved

Why does my program not output: 10 1.546 ,Apple 1 instead of 10 1 <empty space> here's my program: #include <iostream> #include <string> #include <sstream> using na...
Ski asked 16/2, 2014 at 16:52

5

Solved

Possible Duplicate: Is there an equivalent to 'sscanf()' in .NET? sscanf in C is a nice way to read well formatted input from a string. How to achieve this C#. For example, ...
Travistravus asked 19/11, 2010 at 10:2

5

Solved

Suppose I have an input file in this format: VAL1 VAL2 VAL3 VAL1 VAL2 VAL3 I'm writing a program that would be interested only in VAL1 and VAL3. In C, if i wanted to 'skip' the second value, I'd...
Fabulist asked 11/6, 2009 at 20:28

5

Solved

I have data in the following format: 4:How do you do? 10:Happy birthday 1:Purple monkey dishwasher 200:The Ancestral Territorial Imperatives of the Trumpeter Swan The number can be anywhere fro...
Flameproof asked 26/2, 2010 at 0:57

7

Solved

I've written tons of operator<<(std::ostream &, const T &) functions -- they're incredibly useful. I've never written an operator>>(std::istream &, T &) function in rea...
Hankins asked 22/2, 2010 at 8:17
1

© 2022 - 2024 — McMap. All rights reserved.