Search:

Type: Posts; User: Andystudent

Search: Search took 0.00 seconds; generated 56 minute(s) ago.

  1. Replies
    4
    Views
    13,251

    I had a look at the MSDN example of u_short...

    I had a look at the MSDN example of u_short ntohs(...etc), but i dont see how i can use that in my situation. I reckon im being dense.

    printf(" type length is %x\n", ethernet.typelength);

    i...
  2. Replies
    4
    Views
    13,251

    Use of htons() and ntohs()

    How can i use these functions to convert nertwork data to host data? (im sure that was poorly worded but im fairly new to this). I have a captured ICMP packet and have read from the file into a...
  3. Thought id add some more, as a clearer example: ...

    Thought id add some more, as a clearer example:




    typedef struct ip
    {
    unsigned int ver:4;
    } packet;
  4. checked the boards and cant see this one

    Hey all, hope everyone is well. Happy new year...etc...

    Down to the serious stuff. I am writing a program to read a binary file into a structure and interperet it. The file is a captured ICMP...
  5. Replies
    1
    Views
    1,127

    error message i dont understand

    I have an error message when i compile that i dont understand, and was hoping someone could tell me what it generally means:

    "statement cannot resolve address of overloaded function"

    the...
  6. Replies
    3
    Views
    1,330

    Oh i see. I didnt call it earlier but i still had...

    Oh i see. I didnt call it earlier but i still had the same problem so i will change that.

    But i need main to call first() every time a sub program finishes. Can i do that with my loop?

    Cheers...
  7. Replies
    3
    Views
    1,330

    problem with function calling

    here is my code




    #include <iostream.h>
    #include <fstream.h>
    #include <stdio.h>
    #include <conio.h>
    #include <string.h>
  8. Replies
    1
    Views
    2,128

    monitor for specific key press

    Hello again, i am making a switch menu system and was wondering how i can monitor for the user to press a specific key and then open the case 'key' :{} section without the user having to press enter....
  9. Your a gem mate - prob solved! Cheers! Andy

    Your a gem mate - prob solved!

    Cheers!

    Andy
  10. i dont know what the code tags are

    i dont know what the code tags are
  11. call the function from: void...

    call the function from:


    void books::first(void) {
    cout<<"***********************************************************\n";
    cout<<"***********************************************************\n";...
  12. cheers. I tried doing that but it came up with...

    cheers.

    I tried doing that but it came up with a parse error in books::first(), and i cant see how.

    Is that the only way to do it?
  13. Calling a member function from a member function

    Hi all, hope you are well.

    There was another thread asking this question along with another, but this question was never answered. Here is my code - incomplete - hopefully i can explain my...
  14. Replies
    2
    Views
    1,116

    another problem

    Right, i sorted my parse error with some much appreciated help, so cheers. I have another problem.


    do{
    printf("welcome to the Tee, Pi, Min loss pad resistor calculation program");
    ...
  15. Replies
    3
    Views
    8,769

    parse error

    Blindin!

    Could you believe I have been sitting at my comp contracting DVT scratching my head for 3 days and all that was missing was one curly bracket!??

    Cheers m8 you're a god amoung men!!
    ...
  16. Replies
    3
    Views
    8,769

    Parse error

    This probably isnt a very good question but i am stumped. When i try to build my code i get the message

    "parse error at the end of input."

    It gives a line number 3 lines after the end of my...
Results 1 to 16 of 16