在windowsxp系统重装端用C++操作浏览器

后使用快捷导航没有帐号?
查看: 18|回复: 1
大家在windows下面用什么c++编译器和开发环境??
新手上路, 积分 29, 距离下一级还需 21 积分
论坛徽章:1
大家在windows下面用什么c++编译器和开发环境??
QT、VS还是别的什么呢?
新手上路, 积分 7, 距离下一级还需 43 积分
论坛徽章:0
我用的是win7+vs2015,
dataguru.cn All Right Reserved.在 SegmentFault,学习技能、解决问题
每个月,我们帮助 1000 万的开发者解决各种各样的技术问题。并助力他们在技术能力、职业生涯、影响力上获得提升。
问题对人有帮助,内容完整,我也想知道答案
问题没有实际价值,缺少关键内容,没有改进余地
c++上下载文件,Windows下应该调用什么命令行?
答案对人有帮助,有参考价值
答案没帮助,是错误的答案,答非所问
Windows的cmd里并没有直接给用户用的专门调用HTTP下载的控制台工具。如果你是程序调用你可以自带一个wget或者aria2c的Windows版可执行文件。就不用写HTTP下载代码了。
PowerShell 2里可以用
$WebClient = New-Object System.Net.WebClient
$WebClient.DownloadFile("https://www.example.com/file","C:\path\file")
PowerShell 3里有了wget语句,等同于
Invoke-WebRequest -Uri "http://www.example.com" -OutFile "C:\path\file"
不过还是aria2c功能强,可以断点续传、多线程下载。支持HTTP、FTP、BT、磁力链接之类的。
答案对人有帮助,有参考价值
答案没帮助,是错误的答案,答非所问
为啥用命令行下载,直接下载不可以吗?看起来是HTTP协议的,一个简单的方法就是使用windows自带的WinHTTP来做,由于直接由内核实现,性能上主要取决于使用者,虽然下载的话,基本是不会有啥性能问题的。。。。MSDN上有相关的讨论
这里是官方文档
这比用socket手写http客户端要方便很多。
答案对人有帮助,有参考价值
答案没帮助,是错误的答案,答非所问
用Python吧,Windows不像Linux直接提供了这种支持,另外就是像楼上说的用Power-Shell
同步到新浪微博
分享到微博?
关闭理由:
删除理由:
忽略理由:
推广(招聘、广告、SEO 等)方面的内容
与已有问题重复(请编辑该提问指向已有相同问题)
答非所问,不符合答题要求
宜作评论而非答案
带有人身攻击、辱骂、仇恨等违反条款的内容
无法获得确切结果的问题
非开发直接相关的问题
非技术提问的讨论型问题
其他原因(请补充说明)
我要该,理由是:
在 SegmentFault,学习技能、解决问题
每个月,我们帮助 1000 万的开发者解决各种各样的技术问题。并助力他们在技术能力、职业生涯、影响力上获得提升。&>&windows下C++实现的HTTP web 服务器
windows下C++实现的HTTP web 服务器
上传大小:117KB
测试方式(依次在浏览器输入一下内容进行不同情形的测试):
127.0.0.1:9988
127.0.0.1:9988/hehe.html
127.0.0.1:9988/login.html
127.0.0.1:9988/haha?x=10&y=20
也可以下载fiddler工具进行更全面的模拟测试!
1、支持GET/POST方法
2、支持CGI
3、支持错误返回
4、支持chunked数据的解析
1、支持的方法不够全面
2、CGI实现不够科学,可以尝试使用FASTCGI
3、不支持https
4、不支持回应chunked数据
感兴趣的同学可以继续完善相关功能.
综合评分:5
下载个数:
{%username%}回复{%com_username%}{%time%}\
/*点击出现回复框*/
$(".respond_btn").on("click", function (e) {
$(this).parents(".rightLi").children(".respond_box").show();
e.stopPropagation();
$(".cancel_res").on("click", function (e) {
$(this).parents(".res_b").siblings(".res_area").val("");
$(this).parents(".respond_box").hide();
e.stopPropagation();
/*删除评论*/
$(".del_comment_c").on("click", function (e) {
var id = $(e.target).attr("id");
$.getJSON('/index.php/comment/do_invalid/' + id,
function (data) {
if (data.succ == 1) {
$(e.target).parents(".conLi").remove();
alert(data.msg);
$(".res_btn").click(function (e) {
var parentWrap = $(this).parents(".respond_box"),
q = parentWrap.find(".form1").serializeArray(),
resStr = $.trim(parentWrap.find(".res_area_r").val());
console.log(q);
//var res_area_r = $.trim($(".res_area_r").val());
if (resStr == '') {
$(".res_text").css({color: "red"});
$.post("/index.php/comment/do_comment_reply/", q,
function (data) {
if (data.succ == 1) {
var $target,
evt = e || window.
$target = $(evt.target || evt.srcElement);
var $dd = $target.parents('dd');
var $wrapReply = $dd.find('.respond_box');
console.log($wrapReply);
//var mess = $(".res_area_r").val();
var mess = resS
var str = str.replace(/{%header%}/g, data.header)
.replace(/{%href%}/g, 'http://' + window.location.host + '/user/' + data.username)
.replace(/{%username%}/g, data.username)
.replace(/{%com_username%}/g, data.com_username)
.replace(/{%time%}/g, data.time)
.replace(/{%id%}/g, data.id)
.replace(/{%mess%}/g, mess);
$dd.after(str);
$(".respond_box").hide();
$(".res_area_r").val("");
$(".res_area").val("");
$wrapReply.hide();
alert(data.msg);
}, "json");
/*删除回复*/
$(".rightLi").on("click", '.del_comment_r', function (e) {
var id = $(e.target).attr("id");
$.getJSON('/index.php/comment/do_comment_del/' + id,
function (data) {
if (data.succ == 1) {
$(e.target).parent().parent().parent().parent().parent().remove();
$(e.target).parents('.res_list').remove()
alert(data.msg);
//填充回复
function KeyP(v) {
var parentWrap = $(v).parents(".respond_box");
parentWrap.find(".res_area_r").val($.trim(parentWrap.find(".res_area").val()));
评论共有1条
谢谢大佬!
trailblazer2011
综合评分:
积分/C币:3
综合评分:
积分/C币:5
VIP会员动态
CSDN下载频道资源及相关规则调整公告V11.10
下载频道用户反馈专区
下载频道积分规则调整V1710.18
spring mvc+mybatis+mysql+maven+bootstrap 整合实现增删查改简单实例.zip
资源所需积分/C币
当前拥有积分
当前拥有C币
输入下载码
为了良好体验,不建议使用迅雷下载
windows下C++实现的HTTP web 服务器
会员到期时间:
剩余下载个数:
剩余积分:0
为了良好体验,不建议使用迅雷下载
积分不足!
资源所需积分/C币
当前拥有积分
您可以选择
程序员的必选
绿色安全资源
资源所需积分/C币
当前拥有积分
当前拥有C币
为了良好体验,不建议使用迅雷下载
资源所需积分/C币
当前拥有积分
当前拥有C币
为了良好体验,不建议使用迅雷下载
资源所需积分/C币
当前拥有积分
当前拥有C币
您的积分不足,将扣除 10 C币
为了良好体验,不建议使用迅雷下载
无法举报自己的资源
你当前的下载分为234。
你还不是VIP会员
开通VIP会员权限,免积分下载
你下载资源过于频繁,请输入验证码
您因违反CSDN下载频道规则而被锁定帐户,如有疑问,请联络:!
若举报审核通过,可返还被扣除的积分
被举报人:
woshiyuanlei
举报的资源分:
请选择类型
资源无法下载 ( 404页面、下载失败、资源本身问题)
资源无法使用 (文件损坏、内容缺失、题文不符)
侵犯版权资源 (侵犯公司或个人版权)
虚假资源 (恶意欺诈、刷分资源)
含色情、危害国家安全内容
含广告、木马病毒资源
*详细原因:
windows下C++实现的HTTP web 服务器如何在浏览器端运行c/c++语言编写的代码 - 简书
如何在浏览器端运行c/c++语言编写的代码
(0.8 0.10.17 or above to run websocket-using servers in node):
2.x (2.7.3 or above preferred)
(1.6.0_31 or later). Java is optional. It is required to use the(in order to minify your code).
client. Git is required if building tools from source.
(Emscripten’s fork of LLVM and Clang)参考链接地址:To build the Fastcomp code from source:Create a directory to store the build. It doesn’t matter where, because Emscripten gets the information from the. We show how to update this file later in these instructions:mkdirmyfastcompcdmyfastcompClone the fastcomp LLVM repository ():gitclonehttps://github.com/kripken/emscripten-fastcompClone therepository intoemscripten-fastcomp/tools/clang:cdemscripten-fastcompgitclonehttps://github.com/kripken/emscripten-fastcomp-clang tools/clangWarningYoumustclone it into a directory namedclangas shown, so thatis present intools/clang!Create abuilddirectory (inside theemscripten-fastcompdirectory) and then navigate into it:mkdirbuildcdbuildConfigure the build usingeithercmakeor theconfigurescript:Usingcmake:cmake..-DCMAKE_BUILD_TYPE=Release-DLLVM_TARGETS_TO_BUILD="X86;JSBackend"-DLLVM_INCLUDE_EXAMPLES=OFF-DLLVM_INCLUDE_TESTS=OFF-DCLANG_INCLUDE_EXAMPLES=OFF-DCLANG_INCLUDE_TESTS=OFFNoteOn Windows add the-G"VisualStudio10Win64"directive to build using Visual Studio (Visual Studio 2011 and 2012 do NOT work).Usingconfigure(Linux/Mac only):../configure--enable-optimized--disable-assertions--enable-targets=host,jsDetermine the number of available cores on your system (Emscripten can run many operations in parallel, so using more cores may have a significant impact on compilation time):On Mac OS X you can get the number of cores using:Apple menu | About this mac | More info | System report. TheHardware overviewon the resulting dialog includes aTotal number of coresentry.On Linux you can find the number of cores by entering the following command on the terminal:cat/proc/cpuinfo|grep"^cpucores"|uniq.On Windows the number of cores is listed on theTask Manager | Performance Tab. You can open theTask Managerby enteringCtrl + Shift + Escfrom the Desktop.Callmaketo build the sources, specifying the number of available cores:make-j4NoteIf the build completes successfully,clang,clang++, and a number of other files will be created in the release directory (/build/Release/bin).The final step is to update thefile, specifying the location offastcompin theLLVM_ROOTvariable.NoteIf you’re building thewholeof Emscripten from source, following the platform-specific instructions in, you won’t yet have Emscripten installed. In this case, skip this step and return to those instructions.If you already have an Emscripten environment (for example if you’re building Fastcomp using the SDK), then setLLVM_ROOTto the location of theclangbinary under thebuilddirectory. This will be something like/build/Release/binor/build/bin:```vim ~/.emscripten```修改 LLVM_ROOT到指定的文件目录LLVM_ROOT = '/usr/local/myfastcomp/emscripten-fastcomp/build/bin' # directoryThe, from GitHubclone emscripten项目到本地```git clone https://github.com/kripken/emscriptencd emscriptennpm install```测试是否各依赖环境已经正确安装成功在emscripten目录下运行```./emcc tests/hello_world.cpp```如果没有报错则会在同目录下找到一个新文件a.out.js现在可以通过nodejs来运行a.out.js这个文件了```node a.out.js```会在控制台打印出```hello, world!```通过browserify编译使之能在浏览器运行安装browserify```sudo npm install browserify -g```编译a.out.js文件```browserify a.out.js & test.js```现在可以在网页中引入test.js文件```&script src='test.js'&&/script&```打开控制台可以看到```hello world```可以在输出的时候直接指定声称为浏览器端运行的代码,./emcc tests/hello_world.cpp -o test.html在js中调用c++/c写的函数Module.ccap("function_name", return_type, arg_type, arg)使用emscritpen输入代码优化
./emcc tests/hello-test.cpp -o function.js代码是通过指定优化的优化参数运行时,EMCC。级别包括:-O0(不优化),-O1,-O2,-Os,-OZ和-O3添加setting-s EXPORTED_FUNCTIONS="['_uncompress']"
//到处函数-s
NO_FILESYSTEM=1
//0 在代码中包含文件系统代码, 1在代码中不包含文件系统代码-s EXPORTED_RUNTIME_METHODS
//到处可以在模块中使用的函数['FS_createFolder','FS_createPath','FS_createDataFile','FS_createPreloadedFile','FS_createLazyFile','FS_createLink','FS_createDevice','FS_unlink','Runtime','ccall','cwrap','setValue','getValue','ALLOC_NORMAL','ALLOC_STACK','ALLOC_STATIC','ALLOC_DYNAMIC','ALLOC_NONE','allocate','getMemory','Pointer_stringify','AsciiToString','stringToAscii','UTF8ArrayToString','UTF8ToString','stringToUTF8Array','stringToUTF8','lengthBytesUTF8','stackTrace','addOnPreRun','addOnInit','addOnPreMain','addOnExit','addOnPostRun','intArrayFromString','intArrayToString','writeStringToMemory','writeArrayToMemory','writeAsciiToMemory','addRunDependency','removeRunDependency',];编译多个c++/c文件到一个js中# Sub-optimal - JavaScript optimizations are omitted./emcc -O2 a.cpp -o a.bc./emcc -O2 b.cpp -o b.bc./emcc a.bc b.bc -o project.js# Sub-optimal - LLVM optimizations omitted./emcc a.cpp -o a.bc./emcc b.cpp -o b.bc./emcc -O2 a.bc b.bc -o project.js# Broken! Different JavaScript and LLVM optimisations used../emcc -O1 a.cpp -o a.bc./emcc -O2 b.cpp -o b.bc./emcc -O3 a.bc b.bc -o project.js# Correct. The SAME LLVM and JavaScript options are provided at both levels../emcc -O2 a.cpp -o a.bc./emcc -O2 b.cpp -o b.bc./emcc -O2 a.bc b.bc -o project.js
前言 2000年,伊利诺伊大学厄巴纳-香槟分校(University of Illinois at Urbana-Champaign 简称UIUC)这所享有世界声望的一流公立研究型大学的 Chris Lattner(他的 twitter @clattner_llvm ) 开...
编译器做些什么? 本文主要探讨一下编译器主要做些什么,以及如何有效的利用编译器。 简单的说,编译器有两个职责:把 Objective-C 代码转化成低级代码,以及对代码做分析,确保代码中没有任何明显的错误。 现在,Xcode 的默认编译器是 clang。本文中我们提到的编译...
This chapter discusses some of the design decisions that shaped LLVM1, an umbrella project that hosts and develops a set of close-knit lo...
比较麻烦,未完待续。。。。。。 VIM 配置:.vimrc以及.ycm_extra_conf.py配置 插件:个人觉得以下几乎是必需的插件 插件列表: Vundle: 这个绝对是首先装好 nerdtree: 目录结构浏览 YouCompleteMe: 超级强大的自动补全,集...
cs.AI - 人工智能cs.CL - 计算与语言cs.CV - 机器视觉与模式识别cs.CY - 计算与社会cs.DC - 分布式、并行与集群计算cs.DL - 数字图书馆cs.IR - 信息检索cs.IT - 信息论cs.LG - 自动学习cs.LO - 计算逻辑cs....
很多业主都会面临一个很糟心的事情,那就是在装修的时候,总是会因为装修公司这样那样的理由而不断超支,甚至有些遇到黑心装修公司的业主,最后超支竟然达到了原定价格的两倍,面对市场众多的陷阱,业主们该怎么办呢? 小编有个好方法,装修找美屋定制,价格低到你怀疑人生,为什么?因为美屋定...
你笑了,是天使。 你哭了,是天使。 你生气了,是天使。 你睡觉了,是天使。 你很乖,是天使。 你吵闹,是需要安抚的天使。 你犯错误了, 是需要教训的天使。
我是一个爱折腾,爱听故事,爱享受的90后
今天躺在床上掐指一算,我和女友已经谈了将近三年的恋爱了,虽没有八年抗战之久,但也过了三年之痒。在这三年里,有争吵,也有欢声笑语;有摔门而出的冲动,也有掐死对方的恨意;有彻底与她断绝关系的狠心,也有厚着脸皮赔礼道歉请求她原谅的笑意…… 所有经历的这一切,都将在时间的长河里沉淀...
人任何时候,都不要懒 在社会上混,迟早是要还的 一起在富蕴支教的37名人中,有两个关系比较好,我们是同专业的,住在教师公寓,不同单元,她两自己分到另一个学校 她两不是在学校食堂吃饭,就是在外边餐馆吃的,富蕴这边的物价比较高,常在外边,经济压力挺大 周末,我会把她两叫过来一起...}

我要回帖

更多关于 windows10ie浏览器在哪 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信