im trying to get the html of a website to be stored in a text file on disk. seems easy, but the only problem is i dont know how to actually GET the html from a website in a c/c++ program.
any help...
Type: Posts; User: sharrakor
im trying to get the html of a website to be stored in a text file on disk. seems easy, but the only problem is i dont know how to actually GET the html from a website in a c/c++ program.
any help...
Thanks guys, that was my issue.
I'm trying to allocate a double pointer within a structure as an array. This is the function so far:
struct set
{
int filled;
int size;
char **data;
I'm trying to get the effect of 2 char *'s in one, like so:
//I have these varibles...
char *exepath="c:\\test\\";
char *exe="test.exe";
//and based on them, id like to run this command:...
I'm trying to make my program run a search with findstr, but when i use system() it is visible. Is there a way I can make this completely transparent? I'm planning on distributing this application if...
Thank you!
Exactly. Planning on implementing hydralisks and such, again just as practice so I've got some experience using these.
By the way, on a completely different note, is there some sort of...
attack calculates the damage, then inflicts that much damage on the target via target.takedam.
And
int zergling::attack(int damage, zergling &target)
worked perfectly. Thanks!
edit: Damage...
I've used pointers before, so that makes a lot of sense. However, this was (probably) the closest I got to doing it right:
int zergling::takedam(int dam)
{
int *temp=&hp;
*temp=hp-dam;...
I made the following code as practice with classes and objects. However, when I try to modify the value of int hp inside the takedam function, it doesn't change anything outside the function. What is...
The issue is, the initial camelot.exe spawns a child process game.dll, and camelot.exe then terminates. Is there a way to work around this? I've tried launching game.dll from the command line, and it...
I'm running windows xp x64. I've got cygwin installed as well.
How would I do it then? It seems pretty basic but I don't know what to google.
I'm trying to figure out a way to attach to a games stdout and write everything it sees to a text file. How would I go about doing this? The game is very old (around 8 years) and is called Dark Age...
Thank you!
I'm still relatively new to C, so I'm no expert. However, I'd like to use some complied C programs in conjunction with programs I've made in higher level languages.
For example, I've made a C...
Well, I can't find it. I need the pthread libraries more, but for some reason dev c++ can't find the right dlls, thought I do know where they are (I installed some packs for the pthread functions).
...
Thanks.
Is there a certain place I should look to find this? I can't seem to find it for windows...
Does anyone know? I'd imagine this also includes the usleep function.
I have tried that. So what do you suggest I do?
I've tried a couple things but none of them work. Can anyone show me how to do this please?
This is what I've tried so far. It is a regular text file, opened with "a+".
...
Update: I've got this code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char **argv)
Alright, thanks guys, I got it working. Yes it is a class on C, so you're right. But our prof is supposed to have taught us all this, I just probably didn't get it.
By the way, MK27, I saw you...
Out of curiosity, what functions would I need to use to do that? By read in you mean what I guess is a better question.
And thanks matsp. I'm trying to get that to work for me now.
Thanks for all the replies. To clarify, what I want to do is read the number of bytes in a simple text file i created with fopen. Contents of the file are:
Name Number
==================
...
I've tried using sizeof and that obviously doesn't work. I'm not sure how else to do it. Any ideas?