Search:

Type: Posts; User: John_

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    3,244

    Try using g++ which is the C++ compiler. gcc is...

    Try using g++ which is the C++ compiler. gcc is the C compiler.
  2. Thread: RicBot

    by John_
    Replies
    8
    Views
    5,592

    But the server can send data in chunks, for...

    But the server can send data in chunks, for example messages from several users at a time may be sent from the server in one go. You will receive these messages all together as you know which is why...
  3. Thread: RicBot

    by John_
    Replies
    8
    Views
    5,592

    Thank you for your code example. I am curious,...

    Thank you for your code example.

    I am curious, I don't see where you save any data which does not end with \r\n and append the new data you receive onto the end of it. How come you didn't choose...
  4. Thread: RicBot

    by John_
    Replies
    8
    Views
    5,592

    I just realised that ping timeout checking code...

    I just realised that ping timeout checking code wont work. Because it will just keep waiting for data at recv(), so it would need an extra thread I guess which checks the time and uses a global...
  5. Thread: RicBot

    by John_
    Replies
    8
    Views
    5,592

    RicBot

    Hello everybody :)

    A long time ago I started a project called RicBot http://cboard.cprogramming.com/showthread.php?t=75223

    Which I just left and didn't bother with anymore, I decided I would go...
  6. Thread: Beeeeep!

    by John_
    Replies
    15
    Views
    2,769

    std::cout

    std::cout << '\a' << endl;



    That should give a beeping sound.
  7. Replies
    19
    Views
    3,260

    Thank you :)

    Thank you :)
  8. Replies
    19
    Views
    3,260

    How does strcpy() change what is at str though, I...

    How does strcpy() change what is at str though, I had people explaining it to me on IRC before but I still don't really understand it.

    I don't see why strcpy(param, "World!");
    is different from...
  9. Replies
    7
    Views
    3,035

    I don't think you need to prototype WINAPI...

    I don't think you need to prototype WINAPI WinMain() because like main() it is self-prototyping.

    If you add #pragma comment(linker,"/subsystem:windows")
    Under your includes for your header files,...
  10. Replies
    6
    Views
    1,522

    if (ansr == 'Y' || 'y') Should be if...

    if (ansr == 'Y' || 'y')

    Should be



    if (ansr == 'Y' || ansr == 'y')

    A lot of people say they should be inside brackets though for better readability like below but it is personal...
  11. Thread: Random Grab

    by John_
    Replies
    6
    Views
    1,072

    You store the characters in a char array like you...

    You store the characters in a char array like you did. But when you want to access a certain part of the array you need to use a number like MyArray[7]

    So you need numbers. I could give you more...
  12. Thread: Random Grab

    by John_
    Replies
    6
    Views
    1,072

    I'd look up the functions rand() and srand(), you...

    I'd look up the functions rand() and srand(), you can use them with the modulus operator to (pseudo-)randomly generate a number only between 0 and 35.
  13. Replies
    5
    Views
    1,271

    Oh yea I forgot the extra \ for an esacape...

    Oh yea I forgot the extra \ for an esacape character in my example. And I also messed up the code tags hehe. I'll leave my original reply as is for consistency, you guys have given the correct answer...
  14. Replies
    5
    Views
    1,271

    [CODE]if((fp = fopen("C:\hello.txt, "w")) !=...

    [CODE]if((fp = fopen("C:\hello.txt, "w")) != NULL)

    You only have the 1 " which would be causing problems. Use 2 and put whatever directory you want to write/read a file in, inside them like.

    ...
  15. Thank you. :)

    Thank you. :)
  16. I am just asking why it outputs 4, hopefully in...

    I am just asking why it outputs 4, hopefully in laymens terms so I can understand it ;)
  17. Sorry but just to clarify, it is assuming the...

    Sorry but just to clarify, it is assuming the size of it because it does not know? I just want to make sure I understand :)



    #include <iostream>

    using namespace std;

    int main(){
  18. #include using namespace std; ...

    #include <iostream>

    using namespace std;

    int main(){

    char* MyVar;

    cout << sizeof(MyVar) << endl;
  19. Replies
    1
    Views
    1,046

    sprintf (cmd, "command goes here "%s"",x);

    sprintf (cmd, "command goes here \"%s\"",x);
  20. Replies
    10
    Views
    3,490

    Any teachers here?

    I'm not sure what you prefer teacher or lecturer.

    I am wondering when somebody hands in there programming homework, do you just mark it to see if it is correct. Do you ask them questions about why...
  21. Replies
    3
    Views
    4,730

    Changes: This version has multithreading, it is...

    Changes:
    This version has multithreading, it is more practical for the Translate function and google search function.

    Also if the translated text is above 300 bytes it truncates it to 300 bytes....
  22. Replies
    3
    Views
    4,136

    Out of curiosity, which book?

    Out of curiosity, which book?
  23. Replies
    3
    Views
    4,730

    I have added a translation feature which uses...

    I have added a translation feature which uses bablefish.

    This code is attached.
  24. Thread: date

    by John_
    Replies
    22
    Views
    2,489

    I really don't believe this. I thought the...

    I really don't believe this.

    I thought the .xls file he uploaded was the csv file but just renamed because the forum didn't accept that attachment type. It is the reason I asked him to post the...
  25. Thread: date

    by John_
    Replies
    22
    Views
    2,489

    Sorry if my questions seem pointless, the reason...

    Sorry if my questions seem pointless, the reason I am asking them is to try and understand the code better and see if something could be causing a problem. The reason I thought the SIZE was the...
Results 1 to 25 of 65
Page 1 of 3 1 2 3