i need a way to search the computer for files like Windows Explorer. i want my program to search lets say hard drive c:. i need it to search C:\ for folders and files (just the ones you could see in c:\ then if the user clicks on a file on the list like the folder test (C:\test) it would search test and let the user see what files/folders are in it.
我想制作一个捕捉视频的程序.
我想要一些快速的东西,如果可能的话,内存使用率很低.要求是程序必须可以在其他计算机上使用,尽管硬件不同.
是否有程序将程序集转换为C或C++?我做了很多搜索,但找不到任何有用的东西.有一个名为"Boomerang"的程序; 它看起来很棒,只是想要我想要的,但是当我尝试使用它时,它非常不稳定并且崩溃了.(回旋镖)
有没有其他免费程序可以做到这一点?
我有一个字符串,我需要添加一个数字,即一个int.喜欢:
string number1 = ("dfg");
int number2 = 123;
number1 += number2;
Run Code Online (Sandbox Code Playgroud)
这是我的代码:
name = root_enter; // pull name from another string.
size_t sz;
sz = name.size(); //find the size of the string.
name.resize (sz + 5, account); // add the account number.
cout << name; //test the string.
Run Code Online (Sandbox Code Playgroud)
这工作...有点但我只得到"*名称*88888"和......我不知道为什么.我只需要一种方法将int的值添加到字符串的末尾
我有一个将数据保存到文件的程序,我想在该日志上放置当前日期/时间的时间戳,但是当我尝试将时间写入文件时,它不会显示,但我写入的其他数据会显示。
#include <iostream>
#include <windows.h>
#include <fstream>
#include <string>
#include <sstream>
#include <direct.h>
#include <stdio.h>
#include <time.h>
using namespace std;
string header_str = ("NULL");
int main()
{
for(;;)
{
stringstream header(stringstream::in | stringstream::out);
header << "datasdasdasd_";
time_t rawtime;
time ( &rawtime );
header << ctime (&rawtime);
header_str = header.str();
fstream filestr;
filestr.open ("C:\\test.txt", fstream::in | fstream::out | fstream::app | ios_base::binary | ios_base::out);
for(;;)
{
filestr << (header_str);
}
filestr.close();
}
return 0;
}
Run Code Online (Sandbox Code Playgroud)
有人知道怎么修这个东西吗?
我一直在研究一个程序,如果有人插入Usb,将输入用户名和密码,但我不知道如何输入密码的Windows登录.所以我的想法是让我的程序运行,这样就可以找到usb是否插入,如果是这样的话,它将使用keybd_event输入密码并点击回车.我怎么能让我的程序运行所以我可以这样做?
如何在给定进程名称的Windows上运行可执行文件,例如program.exe?
我使用WIN32_FIND_DATA来存储数据findfirstfile输出.我希望文件位置(C:\文件)作为字符串,但我不知道如何从它获取它或任何其他数据.
编辑:这是我的代码
PTSTR pszFileName;
PTSTR pszFileName2[100];
if (search_handle)
{
do
{
pszFileName = file.cFileName;
pszFileName2[loop] = pszFileName;
Sleep(100);
loop++;
std::wcout << file.cFileName << std::endl;
}
while(FindNextFile(search_handle,&file));
CloseHandle(search_handle);
}
Run Code Online (Sandbox Code Playgroud) 嘿,我知道在某些电脑上你可以用一个按钮切断无线网络,我想用我的桌面做到这一点,但它不是无线的.有没有办法在代码中阻止我的电脑上网,然后解锁.无论如何我能做到这一点?