No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
- Interests
- Boxing, MMA, Heavy workout, Guitar, Racing, and it goes on...
- PC Specs
- I am a beginner, and I love windows platform and have passion for all programming language.
[CODE]#include<stdio.h> #include<stdlib.h> #include<time.h> #include<stdbool.h> int roll(void) { int num = (rand()%6)+1; return num; } /* void player(void) { int i=0; int sum=0; int dice; char turn; while(i!=6) { printf("Player 1- roll or hold?\n"); turn = getchar(); while(getchar()!='\n'); if(turn=='r') { dice = roll(); if(dice!=1) { sum+=dice; printf("Rolled = %i Your turn … |
|
Guys, in this program, we have a file by the name of asharray.txt, which is attached to this post, and we have three functions: 1.to read the file 2.to sort the numbers 3.to write to a separate file by the name of( array result.txt) Sp, here I faced some problems, … |
|
I am asheem, nd I am a Carleton U student fro canada. I am happy to be on here , and wish our jorney goes superb. |
|
The program needs to read a file, in which position are mentioned in form of 0 and 1, and location (i,j), of the robot, who has to go the end point has to, generate numbers, randomly, BUT ALSO STORE THOSE LOCATIONS SO THAT THE ROBOT DON'T GOES TO THE SAME … |
|
The program needs to read a file, in which position are mentioned in form of 0 and 1, and location (i,j), of the robot, who has to go the end point has to, generate numbers, randomly, BUT ALSO STORE THOSE LOCATIONS SO THAT THE ROBOT DON'T GOES TO THE SAME … |