Search:

Type: Posts; User: chris1985

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    1,679

    Automating analysis of forum posts

    I am looking for a way to automatically analyse a large quantity of message board posts along with each posts' username. The idea would be to match up the writing styles of each username to identify...
  2. Replies
    1
    Views
    1,356

    Finding correct window handle

    Hello,

    I am trying to work out the correct way to print out a list of child windows (and child of child windows etc). So far I have done a few tests on the Windows Notepad program by using:


    ...
  3. Replies
    2
    Views
    3,576

    Breaking out of functions

    I have a program which I am trying to use to detect if there is a temporary disconnect from the internet. If there is then once the connection is detected a function called recovery() is called to...
  4. Replies
    2
    Views
    2,621

    Linked list - why this bit of code?

    Below is the first bit of a linked list program that I am trying to learn about. Can someone please tell me why the 4 lines in bold are required? I am confused as they seem to be just the name of...
  5. Replies
    4
    Views
    1,025

    newline problem

    I have a program that is supposed to add a '\n' to move down to the next line. However when I open the file that this is output to I see a square box where the new line should be. Why is this? And is...
  6. Replies
    5
    Views
    1,750

    ok i have fixed it. For some reason the compiler...

    ok i have fixed it. For some reason the compiler didnt like the brackets being empty, so I have added VOID to the brackets. This seems strange as my int main function works fine without this. Anyway...
  7. Replies
    5
    Views
    1,750

    Stupid compiler

    I am getting the error message on line 170 "Missing prototype for 'getquote'".

    Yet line 170 is the start of my function!



    float getquote() {


    The whole program is rather long so I wont...
  8. Replies
    1
    Views
    2,015

    Float number and sendmessage

    I have been trying out some things with the SendMessage function which is supposed to send keystrokes to a certain window.



    SendMessage(hwndMineSweeper, WM_LBUTTONDOWN, MK_LBUTTON,...
  9. Replies
    2
    Views
    2,344

    dec -> bin -> hex in arrays

    I have some numbers stored in a character array. Assume length of 3 arrays is:

    dec[2];
    bin[6];
    hex[2];

    Now if I have 34 in the dec array i.e. dec[0]=3 and dec[1]=4, how can I convert this...
  10. Replies
    1
    Views
    1,452

    combining int's into single int

    I have single digit numbers which are integers and wish to combine them so that I have 1 whole integer.

    Example:

    a = 5
    b = 6

    so c = 56

    Is there a function for doing this?
  11. Replies
    1
    Views
    2,904

    Problem with char and char*

    I have got a lot of errors from the line which has the 3 if statements in it.





    C:\WINDOWS\Desktop\code.c(21): error #2168: Operands of == have illegal types 'char' and 'char *'.
    ...
  12. Replies
    1
    Views
    5,589

    Does fgets auto null terminate?

    Below is a bit of code which produces the following text:

    TestHello. Here
    Testis some text
    Testwhich is on the screen.

    What I would like to know is how the fgets function ends the string....
  13. Replies
    3
    Views
    1,322

    newbie array question

    I think I am having trouble converting a floating number into a character array. Can someone please help me with fixing the line I have commented. Thankyou. :)



    float top;
    char price[5];
    ...
  14. Replies
    1
    Views
    1,259

    Stop the scrolling

    I ran this command in SSH to a linux server:


    find . -maxdepth 1 -type d -print | xargs du -sk | sort -rn

    It prints out so much that I cant read it because it scrolls off the top of the...
  15. Replies
    5
    Views
    1,168

    Yes it is a linked list. The little function...

    Yes it is a linked list.

    The little function that I want to amalgamate into the big one is for joining one list with another list. I have it all working as it is now, but I wish to eliminate that...
  16. Replies
    5
    Views
    1,168

    function with pointers (sort of)

    If I have a line:


    head = insert(head, temp);

    and the insert function to which it refers is:


    Pnt *insert(Pnt *list, Pnt *element)
    {
  17. Replies
    4
    Views
    1,192

    Ah yes its working now. Thanks Pianorain :D

    Ah yes its working now. Thanks Pianorain :D
  18. Replies
    4
    Views
    1,192

    OK the previous bit was summarised to exclude...

    OK the previous bit was summarised to exclude irrelevant bits. Here's the whole function.



    void printWord(WordPtr *list)
    {
    WordPtr *tmp;
    int size = 0;
    int total = 0;
    //routine to...
  19. Replies
    4
    Views
    1,192

    Local variable error

    I have used:


    clock_t start;
    start = clock();

    in one of my functions.

    I then use the same again in a different function, but in the second function I get an error:
  20. Replies
    2
    Views
    4,287

    sys/resource.h

    Does anyone have a copy of the sys/resource.h file? My compiler dosen't have one :(
  21. Replies
    6
    Views
    1,564

    Sound question

    I have recently got a laptop which has just the standard 1 port for the sound out signal for the loudspeakers, but my old computer had a 5.1 surround sound system, which requires 3 ports.
    Is anyone...
  22. Replies
    14
    Views
    3,860

    WOW thats some amazing technology. I have seen a...

    WOW thats some amazing technology. I have seen a similar thing done a few years ago with lasers and holograms at the London Science museum, but I havent ever seen a multi-coloured version like that....
  23. Replies
    3
    Views
    1,902

    Ah yes, silly me. Thanks, I guess I've been...

    Ah yes, silly me. Thanks, I guess I've been having too many late nights :eek:
  24. Replies
    3
    Views
    1,902

    Strange behaviour of scanf()

    This was most unexpected. I have a big program which was behaving strangely so I decided to test out each section. I wrote a small program as shown below:


    #include <stdio.h>

    int main() {
    ...
  25. Thread: mouse clicks

    by chris1985
    Replies
    1
    Views
    1,969

    OK ignore this thread, I have found the answer.

    OK ignore this thread, I have found the answer.
Results 1 to 25 of 44
Page 1 of 2 1 2