avatar
g*t
2
比如我现在有一个PHP程序运行在Server A上,
用户从Server A上运行的这个程序Click到另外一个web site B上,
然后填写一些资料,Server A上的程序能够自动分析用户在另外一个web site B上的输
入,这样用户就避免在Server A上重新再填写一次。
貌似如果web site B有提供接口,这个问题就很好解决,比如Server A可以通过
facebook提供的接口获取用户在facebook上的数据,这样用户就不需要用户重新在
Server A上填写一遍资料了。
但是如果Web site B没有提供接口,有什么好的办法可以解决这个问题???
谢谢各位!
avatar
w*0
3
【 以下文字转载自 Quant 讨论区 】
发信人: waiting140 (等待140), 信区: Quant
标 题: 求助:C++里的fstream究竟该怎么用?
发信站: BBS 未名空间站 (Sat Mar 5 12:10:26 2011, 美东)
今天想上机实践一下读写文件,最简短不过的小程序了,但是很失败。哪位有经验的帮
忙看一下,先谢过了。
我header file 里是这么写的:
#include
#include
#include
using std::cin;
using std::cout;
using std::string;
source file 里是这么写的:
#include "march_05_2011.h"
int main(){
string s;
s = "hello world! \n";
cout << s;
fstream testfile;
return 0;
}
可编译起来死活不认那个fstream, 改成ifstream, ofstream都没用。
如果把fstream testfile给去掉,则能打出hello world,说明纯粹是fstream那里出了
问题。究竟我漏掉了什么?看书没看出结果。
感觉很多时候书看得再多,上机还是有麻烦,因为很多东西书上都没有。
avatar
h*g
4
I'm kind of a fresh master graduate right now. My major is Bioengineering,
but my professor was doing wastewater treatment reactor design. So I'm
looking for environmental engineering or water treatment job. Unfortunately,
I'm in Hawaii. I know most of you don't know the job market in hawaii, but
I really need some skills or advices.
I've been looking for jobs for 4 months. I have not graduate yet because I
don't want to lose my OPT and I don't beleive I can get a job in 3 months. I
got one phone interview and one onsite interview this summer. Both of them
is for "Senior environmental scientist". I know I'm not qualified. And the
fact is also like that. They both never response me forever, but one company
keep posting ads until now. They are all hawaii company.
Actually I applied mainland company before, but no one response then I give
up. From this semester started, I never receive any interviews although I
applied lots of companies and did lots of networking. Sometimes if there is
no job posting on indeed and monster, I will just google "hawaii
environmental Inc" or other related words. If I find related company, I will
try to send email and ask if they need volunteer/intern/fulltime. Yes, I
can do volunteer too I think.
I don't have environmental working experiece. But I'm currently doing
construction management intern. It's a coop internship. This is a simple,
simple and the most simple job. And nothing is related to my degree. And can
not switch to fulltime worker because they don't have position and they
never accept noncitizen. And I can only do my internship as a coop student.
So if I graduate, I will lose my current job. That's why I finshed all, but
just keep my student status. I can graduate anytime. But I can only extend
my student status to next semester. So I have to graduate next May.
I'm kind of disappointed and don't know what should I do. OR I can not just
submit the resume on the internet, but something else. Do you guys have any
suggestion?
Sorry this computer can not type chinese. And I have too many words to say.
avatar
a*t
5
1) If website A and B are on the same physical server, you can configure
them to use the same database.
2) If website A and B are on different servers, You can use database
sycronization.
3) write a php program to rip the information off from A website.

【在 g***t 的大作中提到】
: 比如我现在有一个PHP程序运行在Server A上,
: 用户从Server A上运行的这个程序Click到另外一个web site B上,
: 然后填写一些资料,Server A上的程序能够自动分析用户在另外一个web site B上的输
: 入,这样用户就避免在Server A上重新再填写一次。
: 貌似如果web site B有提供接口,这个问题就很好解决,比如Server A可以通过
: facebook提供的接口获取用户在facebook上的数据,这样用户就不需要用户重新在
: Server A上填写一遍资料了。
: 但是如果Web site B没有提供接口,有什么好的办法可以解决这个问题???
: 谢谢各位!

avatar
m*1
6
问题在namespace.
加上
using std::fstream;
或者去掉
using std::cin;
using std::cout;
using std::string;
只用
using namespace std;
问题就解决了。
avatar
m*1
7
我找了一年才找了一个contract,而且我还不是在夏威夷那么远。
只有耐心的等待机遇了。
最近我们学校有贴一个标语,我觉得写得挺好的
success occurs when opportunities meet preparation.
avatar
w*g
8
Let A PHP program reads the database on B.
avatar
m*k
9
木马。
avatar
N*d
10
curl

【在 g***t 的大作中提到】
: 比如我现在有一个PHP程序运行在Server A上,
: 用户从Server A上运行的这个程序Click到另外一个web site B上,
: 然后填写一些资料,Server A上的程序能够自动分析用户在另外一个web site B上的输
: 入,这样用户就避免在Server A上重新再填写一次。
: 貌似如果web site B有提供接口,这个问题就很好解决,比如Server A可以通过
: facebook提供的接口获取用户在facebook上的数据,这样用户就不需要用户重新在
: Server A上填写一遍资料了。
: 但是如果Web site B没有提供接口,有什么好的办法可以解决这个问题???
: 谢谢各位!

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。