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.
Type: Posts; User: SalamuB
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.
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...
Great, it worked! Thank you a lot, Adak !
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...
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...
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...
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...
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...
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>...
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?
@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...
@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...
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>
@tabstop:
insert
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
/*********************************/
thank you, tabstop!
@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...
@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...
@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
This is what i ended up, but hav the following messages:
insert
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
/*********************************/
/*...
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...