Search:

Type: Posts; User: sharrakor

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,529

    very basic question

    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...
  2. Replies
    3
    Views
    12,646

    Thanks guys, that was my issue.

    Thanks guys, that was my issue.
  3. Replies
    3
    Views
    12,646

    Allocating a double pointer as an array

    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;
  4. Must you concatenate strings before using them in commands such as system()?

    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:...
  5. How to execute a hidden command line operation?

    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...
  6. Replies
    11
    Views
    1,087

    Thank you!

    Thank you!
  7. Replies
    11
    Views
    1,087

    Exactly. Planning on implementing hydralisks and...

    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...
  8. Replies
    11
    Views
    1,087

    attack calculates the damage, then inflicts that...

    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...
  9. Replies
    11
    Views
    1,087

    I've used pointers before, so that makes a lot of...

    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;...
  10. Replies
    11
    Views
    1,087

    modifying a value in an object?

    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...
  11. Replies
    4
    Views
    1,222

    The issue is, the initial camelot.exe spawns a...

    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...
  12. Replies
    4
    Views
    1,222

    I'm running windows xp x64. I've got cygwin...

    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.
  13. Replies
    4
    Views
    1,222

    Reading from stdout

    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...
  14. Replies
    2
    Views
    1,349

    Thank you!

    Thank you!
  15. Replies
    2
    Views
    1,349

    GUIs and combining files

    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...
  16. Replies
    6
    Views
    17,182

    Well, I can't find it. I need the pthread...

    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).
    ...
  17. Replies
    6
    Views
    17,182

    Thanks. Is there a certain place I should look...

    Thanks.

    Is there a certain place I should look to find this? I can't seem to find it for windows...
  18. Replies
    6
    Views
    17,182

    What library includes the sleep function?

    Does anyone know? I'd imagine this also includes the usleep function.
  19. I have tried that. So what do you suggest I do?

    I have tried that. So what do you suggest I do?
  20. How can I check if there is a newline character at the end of my file?

    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+".



    ...
  21. Replies
    27
    Views
    3,173

    Update: I've got this code: #include...

    Update: I've got this code:



    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>


    int main(int argc, char **argv)
  22. Replies
    27
    Views
    3,173

    Alright, thanks guys, I got it working. Yes it is...

    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...
  23. Replies
    27
    Views
    3,173

    Out of curiosity, what functions would I need to...

    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.
  24. Replies
    27
    Views
    3,173

    Thanks for all the replies. To clarify, what I...

    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
    ==================

    ...
  25. Replies
    27
    Views
    3,173

    How can I tell the size of a text file?

    I've tried using sizeof and that obviously doesn't work. I'm not sure how else to do it. Any ideas?
Results 1 to 25 of 34
Page 1 of 2 1 2