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.
Related
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
Is there a simple way to use QComboBox::showPopup() without the animation making it instant?
See code:
QApplication::setEffectEnabled(Qt::UI_AnimateCombo, false);
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!
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 would like to call from a program in VS2010 C++ a windows application using a system call.
How is that possible in Windows? I would like to compress a file using the 7z applicaition. Can I call it from the VS2010 program?
The command is: C:\Program Files\7-Zip>7z a -mx9 -tbzip2 zip1.bz2 History.txt
Thank you
You can use
http://msdn.microsoft.com/en-us/library/windows/desktop/bb762153%28v=vs.85%29.aspx
or
http://msdn.microsoft.com/en-us/library/windows/desktop/ms682425%28v=vs.85%29.aspx
or
http://msdn.microsoft.com/en-us/library/windows/desktop/ms687393(v=vs.85).aspx
or
call system() function
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 am new in c++. I tried to create the binary file in c++. But not able to create it.Below is my source code.
void main()
{
ofstream myfile;
myfile.open("D:\get\data.bin",ios::binary);
if (myfile.is_open())
cout<<"hi"<<endl;
else
cout<<"bye"<<endl;
}
I always get bye output only.
My required target is to create a binary file in D directory with the data as a file name.I am using VS2010 and os is win 7.
for providing the help
You have to double the backslashes :
"D:\\get\\data.bin"
Have a look at escaped characters.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
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
Is there a way to drop packets with libiptc c++?,i want a sample code for drop packet with libiptc in c++.
for this you should write a driver.
for example you can use main_hook function.