ie不支持“var oStr = new ActiveXObject("ADODB.Stream");

博客介绍了在IE浏览器中进行设置的操作,需进入Internet选项,设置自定义级别,找到“通过域访问数据源”并将其开启。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

去浏览器Internet选项下面去设置自定义级别找到“通过域访问数据源”开启它

二、程序填空题。在程序中序号所标志的位置补充代码,使程序能够满足功能说明的要求。将补充的代码填在回答区域所对应的序号处,然后截取运行截图。 下面代码实现分数的程序。 #pragma once #include <iostream> #include <stdio.h> using namespace std; int gcd(int a,int b); //求公约数函数 class fraction { int top; //分子 int bottom; //分母 public: fraction() { top = 0; bottom = 1; } //默认构造函数 fraction(int t,int b){top=t;bottom=b;} //一般构造函数 ( )//① 分数的加法 { top = top * f.bottom + bottom * f.top; bottom = bottom * f.bottom; int a = gcd(top, bottom); top = top / a; bottom = bottom / a; return *this; } int get_top() { ( ) //② 读取分子的值 } int get_bottom(){return bottom;} void set_top(int t){top=t;} void set_bottom(int b){bottom=b;} // 友元函数、分数减法 friend fraction operator-(const fraction& f1,const fraction& f2); friend ostream& operator<<(ostream& ostr,const fraction& cs); //输出 }; fraction operator-(const fraction& f1,const fraction& f2) { fraction f3; f3.top=f1.top*f2.bottom-f1.bottom*f2.top; f3.bottom=f1.bottom*f2.bottom; int a=gcd(f3.top,f3.bottom); f3.top=f3.top/a; f3.bottom=f3.bottom/a; ( ) //③ 返回计算结果 } ostream& operator<<(ostream& ostr,const fraction& cs) { ostr<<cs.top<<"/"<<cs.bottom; return ostr; } ( ) //④一般函数实现乘法,形参为f1,f2 { fraction f3; f3.set_top(f1.get_top()*f2.get_top()); f3.set_bottom(f1.get_bottom()*f2.get_bottom()); int a=gcd(f3.get_top(),f3.get_bottom()); f3.set_top(f3.get_top()/a); f3.set_bottom(f3.get_bottom()/a); return f3; } int gcd(int a, int b) { if (b == 0) return a; return gcd(b, a % b); } //main.cpp #include "fraction.h" int main() { fraction f1(1,3); fraction f2(1,6); fraction f3; f3=f1+f2; cout<<f3<<endl; fraction f4(1,2); f3=f4-f2; cout<<f3<<endl; f3=f4*f2; cout<<f3<<endl; }
06-12
g++ -c -std=c++11 -I ../../lib -I ./spdlog/v1.9.2/include -I ./loglib -I ./source source/user_prog.cpp g++ -c -std=c++11 -I ../../lib -I ./spdlog/v1.9.2/include -I ./loglib -I ./source source/subtitdspi.cpp g++ -c -std=c++11 -I ../../lib -I ./spdlog/v1.9.2/include -I ./loglib -I ./source source/user_other.cpp g++ -c -std=c++11 -I ../../lib -I ./spdlog/v1.9.2/include -I ./loglib -I ./source source/user.cpp g++ -c -std=c++11 -I ../../lib -I ./spdlog/v1.9.2/include -I ./loglib -I ./source source/testtitdapi.cpp g++ -c -std=c++11 -I ../../lib -I ./spdlog/v1.9.2/include -I ./loglib -I ./source source/titdapi_req.cpp g++ -c -std=c++11 -I ../../lib -I ./spdlog/v1.9.2/include -I ./loglib -I ./source source/user_input.cpp g++ -c -std=c++11 -I ../../lib -I ./spdlog/v1.9.2/include -I ./loglib -I ./source source/getconfig.cpp g++ -o tiexample source/user_prog.o source/subtitdspi.o source/user_other.o source/user.o source/testtitdapi.o source/titdapi_req.o source/user_input.o source/getconfig.o -Wl,-rpath=../../lib -L ../../lib -l titdapi -lpthread g++: 错误:source/user_prog.o:没有那个文件或目录 g++: 错误:source/subtitdspi.o:没有那个文件或目录 g++: 错误:source/user_other.o:没有那个文件或目录 g++: 错误:source/user.o:没有那个文件或目录 g++: 错误:source/testtitdapi.o:没有那个文件或目录 g++: 错误:source/titdapi_req.o:没有那个文件或目录 g++: 错误:source/user_input.o:没有那个文件或目录 g++: 错误:source/getconfig.o:没有那个文件或目录 make: *** [tiexample] 错误 1输出错误信息如上所示,此时我的demo2结构是. ├── config.ini ├── demo2example ├── getconfig.o ├── loglib │   ├── ccdeclare.h │   ├── cclog.h │   └── ccsingleton.h ├── makefile ├── source │   ├── getconfig.cpp │   ├── getconfig.h │   ├── subtitdspi.cpp │   ├── subtitdspi.h │   ├── testtitdapi.cpp │   ├── titdapi_req.cpp │   ├── titdapi_req.h │   ├── user.cpp │   ├── user.h │   ├── user_input.cpp │   ├── user_other.cpp │   └── user_prog.cpp ├── spdlog │   └── v1.9.2 │   └── include │   └── spdlog │   ├── async.h │   ├── async_logger.h │   ├── async_logger-inl.h │   ├── cfg │   │   ├── argv.h │   │   ├── env.h │   │   ├── helpers.h │   │   └── helpers-inl.h │   ├── common.h │   ├── common-inl.h │   ├── details │   │   ├── backtracer.h │   │   ├── backtracer-inl.h │   │   ├── circular_q.h │   │   ├── console_globals.h │   │   ├── file_helper.h │   │   ├── file_helper-inl.h │   │   ├── fmt_helper.h │   │   ├── log_msg_buffer.h │   │   ├── log_msg_buffer-inl.h │   │   ├── log_msg.h │   │   ├── log_msg-inl.h │   │   ├── mpmc_blocking_q.h │   │   ├── null_mutex.h │   │   ├── os.h │   │   ├── os-inl.h │   │   ├── periodic_worker.h │   │   ├── periodic_worker-inl.h │   │   ├── registry.h │   │   ├── registry-inl.h │   │   ├── synchronous_factory.h │   │   ├── tcp_client.h │   │   ├── tcp_client-windows.h │   │   ├── thread_pool.h │   │   ├── thread_pool-inl.h │   │   ├── udp_client.h │   │   ├── udp_client-windows.h │   │   └── windows_include.h │   ├── fmt │   │   ├── bin_to_hex.h │   │   ├── bundled │   │   │   ├── args.h │   │   │   ├── chrono.h │   │   │   ├── color.h │   │   │   ├── compile.h │   │   │   ├── core.h │   │   │   ├── fmt.license.rst │   │   │   ├── format.h │   │   │   ├── format-inl.h │   │   │   ├── locale.h │   │   │   ├── os.h │   │   │   ├── ostream.h │   │   │   ├── printf.h │   │   │   ├── ranges.h │   │   │   └── xchar.h │   │   ├── chrono.h │   │   ├── compile.h │   │   ├── fmt.h │   │   ├── ostr.h │   │   ├── ranges.h │   │   └── xchar.h │   ├── formatter.h │   ├── fwd.h │   ├── logger.h │   ├── logger-inl.h │   ├── pattern_formatter.h │   ├── pattern_formatter-inl.h │   ├── sinks │   │   ├── android_sink.h │   │   ├── ansicolor_sink.h │   │   ├── ansicolor_sink-inl.h │   │   ├── base_sink.h │   │   ├── base_sink-inl.h │   │   ├── basic_file_sink.h │   │   ├── basic_file_sink-inl.h │   │   ├── daily_file_sink.h │   │   ├── dist_sink.h │   │   ├── dup_filter_sink.h │   │   ├── hourly_file_sink.h │   │   ├── mongo_sink.h │   │   ├── msvc_sink.h │   │   ├── null_sink.h │   │   ├── ostream_sink.h │   │   ├── qt_sinks.h │   │   ├── ringbuffer_sink.h │   │   ├── rotating_file_sink.h │   │   ├── rotating_file_sink-inl.h │   │   ├── sink.h │   │   ├── sink-inl.h │   │   ├── stdout_color_sinks.h │   │   ├── stdout_color_sinks-inl.h │   │   ├── stdout_sinks.h │   │   ├── stdout_sinks-inl.h │   │   ├── syslog_sink.h │   │   ├── systemd_sink.h │   │   ├── tcp_sink.h │   │   ├── udp_sink.h │   │   ├── wincolor_sink.h │   │   ├── wincolor_sink-inl.h │   │   └── win_eventlog_sink.h │   ├── spdlog.h │   ├── spdlog-inl.h │   ├── stopwatch.h │   ├── tweakme.h │   └── version.h ├── subtitdspi.o ├── testtitdapi.o ├── titdapi_req.o ├── userconfig.ini ├── user_input.o ├── user.o ├── user_other.o └── user_prog.o 11 directories, 127 files
最新发布
06-27
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值