can i use c++ to download the html from a web page to a txt file in my pc without using a web browser?
for ex: i want to save the html from www.yahoo.com in to yahoo.txt ( on my pc)
User Profile
Collapse
-
downloading html code of a web page
-
Thanks I Tried It . And It Works !!!
By The Way Happy New Year!!!!!!!!!!
But I Wat To Have The Code In Different Files Like A Header File And A Code File So I Can Include The Header In Different Other Files Without Copying The Code. -
book or site where i can learn tcp/ip
can someone recomand me a good book or site where i can learn tcp/ip and evrithing else i need to know about data tranferes over the internet? -
" the vector inside a vector "
for ex:
you have the class:
class student
{ public :
string name;
string id;
vector<course> courses;
}
class cours
{
public:
string name;
string id;
}
and
vector<student> students;
to write and read students name and id is simple...Leave a comment:
-
i modifaide it but stil doesn't work
i stil get :
Error 1 error LNK2019: unresolved external symbol "public: int __thiscall vector_eu<int>: :erace(int,int) " (?erace@?$vecto r_eu@H@@QAEHHH@ Z) referenced in function _wmain test vector eu.obj
one for each function
does any on know why?Leave a comment:
-
here is all the info
i'm using microsoft visual c++ 2005 on xp sp 2
i tested it with int tipe ( without templates ) and it worked fine
here are the header files
" stdafx.h"
#pragma once
#define WIN32_LEAN_AND_ MEAN // Exclude rarely-used stuff from Windows headers
#include <stdio.h>
#include <tchar.h>...Leave a comment:
-
i realy need this so PLS!!!!!!!!!!!! !!!!!!!!!!!!!!! !!!!!!!!Leave a comment:
-
can i write a bootable program in C++?
i know this may sound very strange but it's because I just started to lear c++ ( at school we learn pascal although we are in the 3 milenium ) , i have some big ideas, and i just don't know how to put them in practice .
so can anybody tel me how can i write a program on witch a computer can start ?
if you want you can call it a mini os.
ok. " os " it sounds like a big thing but i'm willing to learn. ... -
i would like to know the answer to this question two
does anyone knows a solution?...Leave a comment:
-
thanks!!! I forgot to add the parameter list when i convert it to a template :D
that was one error ( more errors but basicaly the same one) , and my compiler din't find it .
I' m using MS visual studio 2005 ( on xp pro sp 2)
i tried to compile it after i added the parameter lits but it didn't work.
I steel get:
Error 1 error LNK2019: unresolved external symbol "public: int __thiscall...Leave a comment:
-
-
for the first one
first p will adress a [10] int array then
it will enter the while loop
- it will adress a [1000] int array
-the first element of the [1000] array will become 99 thenh it will write it on the consol
-then the while will repeat it self until you'll go out of memory
because the arrays are created but aren't deleted and they continue to exeits although p isen't pointing at the...Leave a comment:
-
templates
hy
i wrote a list class , i tested it for int values but now i want to make it a templet
but somting is not wright with the function declarations
i got this erorr
error LNK2019: unresolved external symbol "public: int __thiscall vector_eu<int>: :erace(int,int) " (?erace@?$vecto r_eu@H@@QAEHHH@ Z) referenced in function _wmain test vector eu.obj
here ar the declarations in... -
try
for(int i; i<students.size ;i++)
{
cout << students[i].Name <<" "<< students[i].Student_Id<<en dl
}
i had a similar projec a few weeks ago and if you need extra help just ask :)Leave a comment:
-
string s="0a"; ////string that should be converted to a bit_array
unsigned short int byte_array[100];
unsigned short int b[8];// used for storring the binary form of x=(int)s[i];
int x;
//converting a string to an array
int i=0;
int h=0;
while(s[i])
{
x=(int)s[i]; // converts a char to its int form
for(int j=0;j<8;++j)
{ ...Leave a comment:
-
is it posible to write a server like script in html ?
Hy
Is it possible to write a html script that acts as a server ?
someting like:
- it should start when a client opens the web page on witch it is housted
- receve a stream o bits from the client ( from witch it will extract the necessary commands)
- open another stream to the same client thru witch it should send a part of a file that is stored in the same directory as the web page
-... -
thanks
you have just oppend a new part of programing to me ( i never tried to work with pictures of any kind)
but you were wright " this isen't the best way" to do what i want in my program.
maby i didn't discribed whit inaf detalies so :
my program shold retrive a pixel (it doesent mather in what format it stores it) from desktop and sed it to another program over the internet and...Leave a comment:
-
where is the desktop image stored && how can i read it
hy
i want to write a program that can determin the code ( the 32 bit diget ) of a specific pixel on the desktop.
can i somehow get the memory adress of the desktop image or is there a predifined function that can return the code of a specific pixel ( ex: meaby somting like "int get_pixel(int x, int y) " ) ?
i'm usin win xp pro sp2 and visual c++ 2005 -
No activity results to display
Show More
Leave a comment: