Search:

Type: Posts; User: c++guy

Search: Search took 0.01 seconds.

  1. fair enough. so anyone know why setsockopt()...

    fair enough. so anyone know why setsockopt() isn't having the same functionality in cygwin when im on windows as it is when i run it in ubuntu?
  2. well when making a decision that can benefit...

    well when making a decision that can benefit yourself and affect other people in a 'negative' way, everyone weighs the scales differently. for example if there existed a situation where i could gain...
  3. i dont see the problem in it really....

    i dont see the problem in it really. realistically there are some people on this board who aren't on dreamincode. and realistically there are some people on dreamincode that aren't on this board. so...
  4. i solved this by adding a print statement for...

    i solved this by adding a print statement for every iteration of the loop and making sure i put null terminator at end of every recv:



    do {

    iResult = recv(tcpSocket, request,...
  5. fetching html pages in C. output only shows html source sometimes

    My output usually is something like:
    Second Half New Way: /finance
    First Half: Google
    Google = 74.125.47.10574.125.47.10674.125.47.14774.125.47.9974.125.47.
    10374.125.47.104

    GET /finance...
  6. Replies
    3
    Views
    81,091

    you are awesome! it was because of the spaces and...

    you are awesome! it was because of the spaces and the fact that i had 3 \r\n's. my teacher had 3 in his provided code for some reason so i had no idea that had a chance at being incorrect. thanks a...
  7. Replies
    3
    Views
    81,091

    sending an http GET request in C

    here is my code:


    /*
    * File: webClient.c
    * Author: Adam
    *
    * Created on November 3, 2011, 1:26 AM
    */
  8. Replies
    3
    Views
    2,039

    nvm, i got it. you put me on the right track...

    nvm, i got it. you put me on the right track though, thank you
  9. Replies
    3
    Views
    2,039

    i tried do { //do code }while...

    i tried



    do
    {
    //do code
    }while (rc>0);
  10. Replies
    3
    Views
    2,039

    write an array of unspecified size to a file

    how do i loop until this is done?
    the way it is written currently, it only writes the first 512 characters. how can i make it loop until it writes the whole file? i think i need some kind of loop in...
  11. PLEASE HELP with fork() and execl() linux functions in c++ code

    my main program must accept the names of input and output text files as command line arguments. it should create a pipe and then create 2 other children processes. the pipe is for communication...
  12. Replies
    9
    Views
    2,897

    sorry that was a typo on my part. I only have one...

    sorry that was a typo on my part. I only have one semi colon there when i get that error. here is what my class looks like.



    template <class VertexType, class CostType>
    class WDiGraph
    {...
  13. Replies
    9
    Views
    2,897

    When I write my addedge function I get an error...

    When I write my addedge function I get an error saying that I cannot create an iterator of type VertexInfo.



    template <class VertexType, class CostType>
    void WDiGraph< VertexType, CostType...
  14. Replies
    9
    Views
    2,897

    sorry, I am having trouble understanding. Ok I am...

    sorry, I am having trouble understanding. Ok I am given these structs:


    private:
    // information for each edge
    struct EdgeInfo
    {
    public:
    int to; // vertex number...
  15. Replies
    9
    Views
    2,897

    ok so my addedge function would just be like ...

    ok so my addedge function would just be like
    addEdge(vertexType origin, vertexType destination, cost cost)
    {
    origin->(destination, cost);
    }

    is that all it does?
  16. Replies
    9
    Views
    2,897

    Help with Graphs

    I am supposed to create a weighted directed graph and implement a variety of functions for this graph. Creating a directed graph, Depth first search, Breadth first search, adding edges, removing...
Results 1 to 16 of 16