Getting Spaces not a space as output in c++ program [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Improve this question
In a c++ program how to get an output like the following one:
* *
Basically, for example how to get three spaces between these two asterisks as an output?

#include <iostream>
int main() { std::cout << "* *"; }

Related

Check if CString contains specific Text MFC [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to check if a String contains a specific Text.
Something like this
CString a;
CString b;
if (a.Find (b))
{
String a contains String b
}
Can anyone help me? Im working with mfc
If you change your if statement to
if (a.Find (b) != -1)
then you get what you want.

Regex:password all character are allowed,but not include space [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Regex:password all character are allowed,but not include space,length is 8-16.please give me an efftive help.
Consider the following Regex...
^\S{8,16}$
Good Luck!

String conversion and concatenation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 8 years ago.
Improve this question
I have the following line of XML:
<indexentry><secondaryie>definition, 3/2/4</secondaryie></indexentry>
And I need a regex that matches the above and converts it as below:
ABC3(the first number)/P-2(second number)-4(third number)
How can I do this?
Use this regex:
([0-9]+)/([0-9]+)/([0-9]+)
And from captured groups #1, #2, #3 make your string:
ABC3\1/P-2\2-4\3

In Perl - How to normalize Path for windows [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I am new in Perl, but i need to know how to get variable contain specific path normalized for windows.
Thanks,
MaMd0u7
http://perldoc.perl.org/File/Spec.html
use File::Spec::Win32
my $dir = File::Spec::Win32->catfile('directory','tree','file.html');
print $dir;
output: directory\tree\file.html
any use?

C++ Reading File with bunzip2 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
#include<fstream>
int main()
{
ifstream fFeedList;
fFeedList.open("/ra/file");
return 0;
}
How to read files with .bz2 in C++? Thanks!!
Take a look at the Boost iostreams library, it can decompress bzip etc.