Search:

Type: Posts; User: SalamuB

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    2,477

    nonnob, thank you for your respond. It helped me....

    nonnob, thank you for your respond. It helped me. Should I illustrate X, Y coordinate displacement in degrees? I am struggling of illustrating the coordinates in the code itself.
  2. Replies
    3
    Views
    2,477

    Random Walk Hexogonal lattice

    Hello,

    I have written a code for 2 dimensional square lattice Random Walk and calculated its Mean square Displacement. Now, I have a problem of changing it to hexagonal lattice. In the code, I...
  3. Replies
    4
    Views
    1,090

    Great, it worked! Thank you a lot, Adak !

    Great, it worked! Thank you a lot, Adak !
  4. Replies
    4
    Views
    1,090

    When I print the output only to screen, it works...

    When I print the output only to screen, it works fine, no problem with it, but when I include the statements to output to the File, it gives me segmentation fault. Something wrong with printing the...
  5. Replies
    4
    Views
    1,090

    Segmantation fault - RandomWalk 1D

    Hi,

    I have a code written for simulation of Random Walk in 1D and calculation of its Mean Square Displacement. It does compile, but for some reason, it gives me segmantation fault. I really don't...
  6. Random Walk Simulation in 1D for 10 or more particles

    Hello,

    I have written a code for Random Walk in 1D for 1 particle. And I calculated its Mean square Density for 1 particle. Now I am trying to calculate the MSD for 10 particles, but I get...
  7. oogabooga, thank you very much, it did work now,...

    oogabooga, thank you very much, it did work now, I dont really get why it didnt before if you say it ran fine in urs. But apparently, something was wrong with my code. When I put your statement, it...
  8. Random Walk Simulation in 1D - Undesired output

    Hello Guys, I am struggling with the code for simulation of Random Walk in 1D. It compiles, but the output to text file "Walk.txt" are all almost the same negative numbers. BTW I am a new to C...
  9. print the data by order (i.e by last name)

    Hi,

    I am having this problem about printing data by order, a user should be prompted to list the data by last name, first name, party or votes. Here is the code:
    INSERT


    #include <stdio.h>...
  10. Got it, now everything compiles and works. Thank...

    Got it, now everything compiles and works. Thank you very much guys. I really appreciate ur help.

    But now I need to print all the results by order(i.e. by lastName)? Could you help me with start?
  11. @hk_mp5kpdw: Great, i did change it, but why...

    @hk_mp5kpdw:

    Great, i did change it, but why terminal shows these extra numbers at the end:

    RESULTS LIST REPORT FOR:EAST DEVON:/n A:Smith:Angela:00214003 00000003 153227264 00135168
    RESULTS...
  12. @cas: Thanks a lot. This helped a lot, I...

    @cas:
    Thanks a lot. This helped a lot, I changed the data file with space after party and it worked, I got this:

    RESULTS LIST REPORT FOR:EAST DEVON:/n A:Smith:Angela:00214003 00000003 138608640...
  13. Segmantation fault of the code: compiles but wrong output

    Hi,

    I got this code done and have got some problems with output:

    insert

    #include <stdio.h>
    #include <stddef.h>
    #include <stdlib.h>
    #include <string.h>
  14. @tabstop: insert #include ...

    @tabstop:

    insert

    #include <stdio.h>
    #include <stddef.h>
    #include <stdlib.h>
    #include <string.h>

    /*********************************/
  15. thank you, tabstop!

    thank you, tabstop!
  16. @tabstop: Solved it, and in line 92 i wrote...

    @tabstop:

    Solved it, and in line 92 i wrote "newresult->votes[9] = nVotes[9] which gave me this:

    Election.c: In function ‘AddResult’:
    Election.c:92: error: subscripted value is neither array...
  17. @tabstop: it solved it, thank u very much, i...

    @tabstop:


    it solved it, thank u very much, i got rid of that errors, but what about the warnings:

    Election.c:64: warning: passing argument 5 of ‘AddResult’ makes integer from pointer without...
  18. @tabstop: Didnt get what you mean, could u...

    @tabstop: Didnt get what you mean, could u specify the line please? And how to prompt a user to order the list by lastName? If you know, explain me generally please. cheers
  19. This is what i ended up, but hav the following...

    This is what i ended up, but hav the following messages:
    insert

    #include <stdio.h>
    #include <stddef.h>
    #include <stdlib.h>
    #include <string.h>

    /*********************************/
    /*...
  20. Assignment help: Read supplied .txt file and generate c program

    Hi everyone,

    I need a help on my assignment:

    I am given text file(Includes a simple list of 4 candidates with their party, last name, first name and number of votes) I need to write a c program...
Results 1 to 20 of 20