|
Hi,
I have often seen project like "write a program to extract such-and-such data from the given websites"
Sometimes a list of websites are given and the program is supporsed to connect to each of those websites, scan for information automatically and put it in a database.
How can this be done in vc++6?
Thanks.
Tara
Fortitudine Vinsinues!
|
|
|
|
|
Can you be more specific what date?
whitesky
|
|
|
|
|
WhiteSky wrote: Can you be more specific what date?
Any data. For example http://www.fallingrain.com/world/[^].
The site lists country names and the regions under each country. So my program should be able to automatically collect all the country names and put them in an access database.
Fortitudine Vinsinues!
|
|
|
|
|
Im not sure maybe it is some helpful to you Here[^]
whitesky
|
|
|
|
|
Thanks.
Fortitudine Vinsinues!
|
|
|
|
|
|
There are two ways that I can think of doing it.
1: Download the raw HTML, run it through a parser and extract information from the cooked data.
2: Use a hidden browser instance to navigate to a URL and render the data. Use clipboard operations to copy what would be the visible text from the browser and extract information from that data.
Number 2 is easier, and would be using data that is closer to what an actual user would see when viewing the target site.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
or read links in one page
whitesky
|
|
|
|
|
Thanks.
Fortitudine Vinsinues!
|
|
|
|
|
Hi
I have written one application . it will connect to the remote server and create one service on the server (WINDOWS 2000) . My problem is while calling the CreateService(), this API get hanging in this function call on server. It is neither returning back nor throwing error code. Then I have to terminate application from task man. The same problem for running service on remote machine
I have Administrator rights. All services are running on (RPC) on service
What will be issue ?
-- modified at 9:06 Monday 5th June, 2006
|
|
|
|
|
Do u have SC_MANAGER_CREATE_SERVICE access right on remote Server
never say die
|
|
|
|
|
yes. i have ( SC_MANAGER_ALL_ACCESS)
|
|
|
|
|
Check the machine name u provided in OpenSCManager before Create Service()
never say die
-- modified at 0:56 Tuesday 6th June, 2006
|
|
|
|
|
double convert_to_f(double c) {
return (c * 1.8) + 32;
}
double convert_to_c(double f) {
return (f - 32) / 1.8;
}
is that what you're looking for ??
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
This is what I'm trying to use now. I get a declaration syntax error. The complier is old. Turbo C++.
thanks for the time again.
#include <iostream.h>
void convert_to_f()
void convert_to_c()
int main()
{
int temp, fahr, cel, f_out, yes, no, choice, c_out;
do
{
cout<<"Please choose one of the following conversions\n";
cout<<"1 - Celcius to Fahrenheit.\n";
cout<<"2 - Fahrenheit to Celcius.\n";
cout<<"Please select at this time: ";
cin>>temp;
switch(temp)
{ case 1:
void convert_to_f()
break;
case 2:
void convert_to_c()
break;
default:
cout<<"Invalid choice.";
break;
}
cout<<"\nWould you like to recalculate another temperature? '1' for yes, '0' for no: ";
cin>>choice;
}
while(choice==1);
return 0;
}
//function begins
void convert_to_f()
{
cout<<"You choose Celcius to Fahrenheit.\n";
cout<<"Please enter the degrees in Celcius: ";
cin>>cel;
f_out = (cel * 1.8) + 32;
cout<<"The degrees converted into Fahrenheit is "<<f_out<<".";
}
//end function
//new function
void conver_to_c()
{
cout<<"You choose Fahrenheit to Celcius.\n";
cout<<"Please enter the degrees in Fahrenheit: ";
cin>>fahr;
c_out = (fahr - 32) / 1.8;
cout<<"The degrees converted into Celcius is "<<c_out<<".";
}
//end function
|
|
|
|
|
|
You would call them just like you would any other function.
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
As i'm sure you can tell, i'm a beginner writer. so i'm not sure how to do it.
|
|
|
|
|
|
selfish man (
i hate people that ask a question and who delete their question once they have the answer.
this is totally selfish behavior, and doesn't encourage to answer much to guys like you
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
I'm very sorry, as much as i am new with c++ language, i am new to the forums. I thought that if i deleted the question it would delete everything because it seems like you were getting fed up replying. again i'm sorry sir, and thank you for the help.
|
|
|
|
|
klutez123 wrote: because it seems like you were getting fed up replying
if i was, i wouldn't have answered your request
klutez123 wrote: again i'm sorry sir, and thank you for the help.
nevermind. i hope it was helpful at least, so that you solved your problem.
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
toxcct wrote:
this is totally selfish behavior, and doesn't encourage to answer much to guys like you
Mee too!, I strongly support your case!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
klutez123 wrote: void convert_to_f()
void convert_to_c()
These two statements (i.e., prototypes) are missing semicolons.
klutez123 wrote: switch(temp)
{ case 1:
void convert_to_f()
break;
case 2:
void convert_to_c()
When calling the functions, omit the void keyword, and add a semicolon.
klutez123 wrote: cin>>cel;
f_out = (cel * 1.8) + 32;
The variables cel and f_out have not been declared in the context of convert_to_f() .
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
Hi all,
Consider this class
(unit1. h)
<code>class MyClass{
public:
MyClass(){};
MyClass(int nNum): m_nNum(nNum){}
~MyClass(){};
private:
int m_nNum;
};</code>
in the main program
<code>
#include"unit1.h"
int main()
{
MyClass myObject(300);
}</code>
The question how many ways to modify the property (myObject.m_nNum) to another number without using setters or friends?
|
|
|
|