其实呢,不是无法输入空格,是可以输入空格,只不过你输入了以后字符串就被分割了,所以要用到getline函数,我们先看看原来不能输入空格的代码#include <iostream>
#include <string>
using namespace std;
int main()...
利用的Gult做的立方体,总的来说不简单呀按键盘上下左右,可以控制角度#include <stdio.h>
#include <iostream>
#include <gl/glut.h>
#include <math.h>
using namespac...
有些时候有log是不够的,还是有个截屏来得踏实对吧#define _CRT_SECURE_NO_WARNINGS
#define _AFXDLL
#include<iostream>
#include <afxwin.h>
void Screen(char filena...
从数位上截取#include <iostream>
从位数上截取
#include <string>
using namespace std;
int main()
{
string str = ...
嗯嗯嗯,先上代码#include <iostream>
#include <string>
#include <io.h>
using namespace std;
void dir(string path)
{
long hFi...
直接上代码,服务端是接收文件的,客户端才是发送文件的/*server*/
#include <stdio.h>
#include <iostream>
#include <cstring>
#include <fstream>
#include <...
字符串分割,本来C++没有这个操作的,是利用数组转的#include <iostream>
#include <string>
#include <vector>
#include<algorithm>
using namespace std;
/...
原理是用的C/C++的 URLDownloadToFile函数所有的参数都必须是LPCWSTR,所以第一个结构体是string转LPCWSTR第二个结构体才是真正的下载文件的代码,主函数只需要传入两个string参数,一个是下载链接,一个是保存路径#include <stdio.h>
#include <tchar.h...
哈哈哈哈#include<winsock2.h>
#include<stdio.h>
#include <string.h>
#include <string>
#include<iostream>
using namespace std;
#pr...
我简单的封装了一下,就变成了一个脚本的程序了,嗯,先获取坐标,再去模拟单击#include <stdio.h>
#include<windows.h>
#include<conio.h>
#include <iostream>
using namespace st...