Search:

Type: Posts; User: cyberCLoWn

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    2,854

    Sounds like an incredible mission. Surely there's...

    Sounds like an incredible mission. Surely there's some way of going about this, as there are lots of commercial apps that can update through a proxy etc.
  2. Replies
    6
    Views
    2,854

    Download File through HTTP Proxy

    All my university's internet traffic goes through an HTTP proxy. What I need to do is download XML files from certain websites, but before I can access these websites I need to authenticate through...
  3. Thread: Book Advice

    by cyberCLoWn
    Replies
    2
    Views
    1,971

    Book Advice

    I'm a university student and am looking to purchase some books for myself. I'd call myself a fairly intermediate programmer with knowledge in Java and C++.

    What I've done is searched through...
  4. Replies
    3
    Views
    924

    iterator prob in for loop

    A snippet of my code:


    // cycle through list of words
    for(list<string>::iterator i = inputFile.begin(); i != inputFile.end(); i++) {
    string word = *i;
    // compare to...
  5. Yes, it was a linking problem, but it's sorted...

    Yes, it was a linking problem, but it's sorted out now.

    Thanks for your assistance laserlight. Stay cool man.
  6. I think I was incorrect in using Stack...

    I think I was incorrect in using Stack testStack(). Anyhow, I changed it to Stack testStack, but now I get the following:
  7. Class/linking question - getting odd error

    I'm trying to build a stack class. Bascailly it consists of the following files:


    // listnode.h
    #ifndef LISTNODE_H
    #define LISTNODE_H

    class ListNode {
    public:
    int data; // stores...
  8. Replies
    6
    Views
    993

    void addHeader(packet x) { unsigned char...

    void addHeader(packet x) {
    unsigned char temp[20] = {'A','F','A','F','1'};
    int count = 0;

    for(int i = 5; i < 20; i++) {
    temp[i] = x.data[count];
    count++;
    }...
  9. Replies
    6
    Views
    993

    memcpy(&x.data, &temp, 20); Right I see that....

    memcpy(&x.data, &temp, 20);

    Right I see that. It does not crash now, but however it outputs the original data that was first outputted.

    As for the sizeof, yeah I guess you're right.

    I have...
  10. Replies
    6
    Views
    993

    memcpy assistance please

    Basically what I am trying to do is modify the contents of the place where the structures data pointer points to. I have to add 5 arb characters onto the packet's data.

    When I run the program...
  11. Thread: Java forums

    by cyberCLoWn
    Replies
    3
    Views
    1,628

    Java forums

    Hey there.

    I've been working on Java in a course I'm doing at university. In the past I worked on C++ and found this place immensly useful and I just wanted to know if there is a place I can look...
  12. Replies
    13
    Views
    1,937

    Make the function return a void if there is...

    Make the function return a void if there is nothing to return. If it returns a value then let it do so.
  13. Replies
    10
    Views
    1,320

    I never even thought about that scribbler. Thanks...

    I never even thought about that scribbler. Thanks for the clarification.

    So, what do I do about the optimization flags? (-01, etc)
  14. Replies
    10
    Views
    1,320

    Right, I agree about the sqrt() being done once...

    Right, I agree about the sqrt() being done once outside the loop. Still, why is int i in the for loop incremented by 2 each loop?
  15. Replies
    10
    Views
    1,320

    Right, I'll definitely look into the above...

    Right, I'll definitely look into the above mentioned optimizations. Thanks so much.

    What did you mean by this though?


    What do the -O1 through to -O3 optimizations actually do? What is the...
  16. Replies
    10
    Views
    1,320

    optimise algorithm

    I have written a program which tests for prime numbers. Please could someone review my code and tell me if there is any way to optimise it as once you start hitting large numbers it takes that much...
  17. Thread: odd error

    by cyberCLoWn
    Replies
    3
    Views
    932

    I was not using pointers. Your example also...

    I was not using pointers. Your example also displays an error. The error only happens with a long unsigned int. With a normal int everything works fine.



    Performance wise, is it worth using...
  18. Thread: odd error

    by cyberCLoWn
    Replies
    3
    Views
    932

    odd error

    I have some code which does not work and I was just wondering why and also how to fix it.


    else if( choice == 1 )
    {
    long unsigned int num;

    cout << "\nEnter number:...
  19. Replies
    10
    Views
    1,175

    Guess I see what you mean. This was just a quick...

    Guess I see what you mean. This was just a quick refresher project to get me back into the swing of C++. Have not really had a chance to touch it in a while.

    Thanks anyhow Thantos
  20. Replies
    10
    Views
    1,175

    Dunno, but it works :D

    Dunno, but it works :D
  21. Replies
    10
    Views
    1,175

    Got it. cout

    Got it.


    cout << right << setw( 7 ) << num1 << " -" << setw( 3 ) << num2 << setw( 5 ) << "= ";
  22. Replies
    10
    Views
    1,175

    I can't get this sorted. cout

    I can't get this sorted.


    cout << setw( 7 ) << num1 << " - " << num2 << setw( 5 ) << "= ";

    The above gives me the following:


    4 - 3 = x
    14 - 14 = x
  23. Replies
    10
    Views
    1,175

    1 + 1 = 2 10 + 1 = 11 2 + 2 = 4 ...

    1 + 1 = 2
    10 + 1 = 11
    2 + 2 = 4

    :rolleyes:
  24. Replies
    13
    Views
    4,085

    I would definitely recommend "C++ How To Program"...

    I would definitely recommend "C++ How To Program" 4th edition by Deitel. You'll either love or hate this book and I am one of the many that love it.

    Do a search on amazon and read the reviews...
  25. Replies
    10
    Views
    1,175

    Dumb alignment

    Really a silly question but this solution evades me.



    As you can see, double digits move the entire line one digit to the left, how can I correct this? I presume setw() is needed.
Results 1 to 25 of 124
Page 1 of 5 1 2 3 4