No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi everyone, I'm trying to find the points that satisfy the equation y^2=(x^3)+ (4*x) + 4 (mod 5) from the book i know im suppose to get x=0 y=2 x=0 y=3 x=2 y=0 x=4 y=2 x=4 y=3 so far i haven't been luck in getting anything any help is appericated … |
|
Hi, I'm writing a program where the user can enters numbers and these numbers are stored in a file, then the numbers are read from the file and a certain calculation is done to each number by creating a thread for each My problem is: The first problem is whenever … |
|
Hi, I'm trying to create this program that does nothing until it's interrupted in the child, if the interrupt occurs then the parent should sent a SIGQUIT, so fare i have been stuck in an infinite loop =/ Any help is appreciated [code] #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include … |
|
Is the difference between the execlp execvp calls and execl execv, is that execlp execvp have the advantage of specifying a file name instead of a path name what makes these two functions better to use over execl and execv? |
|
Hi, I'm trying to make this code works but with no luck so far, I have two problems 1. I'm reading from a file lines and then executing them but the last line goes into an infinite loop 2. Another problem is I don't think I'm using "wait" properly as … |
|
Hi, I'm trying to make a makefile but after i enter the command make makefile it says nothing to be made in the makefile, can someone please help me? Nd.c depends on Pd.h Pd.c depends on Pd.h Md.c depends on md.h md.h depends on Rd.h # Makefile CC = gcc … |
|
Hi, I'm practicing for my test and I'm really confused on this question This is the content of make file assuming that part1 and part3 has been modified. list the sequence of command activation in the correct order for make to run I understand it looks at the target then … |
|
Hi, I'm trying to get two small programs that use macro to work but neither of them is doing so the first macro selects the least significant bit from an unsigned char [code] #include <stdio.h> #define LBIT(X) (((X)&1)?1:0) int main() { unsigned char a; printf("Enter a character:\n"); scanf("&c",a); printf("Least signficant … |
|
What does the following code do when the input is 56789 1234 45a72 int i; float f; char name[50]; scanf("%2 %f %*d %2s",&i,&f1,&name); When I ran the code in the compiler and used printf to check the results i got 56 789.000000 45a72 I understand that it didn't 1234 because … |
|
Hi, Can someone please help me in this,,, i'm trying to write this program but i keep getting a segmentation fault . I think the problem is from the outerloop but i don't know how to fix it. I have a file for example my file contains hello world I … |
|
Hi, if i had a string (Iamhere) stored in an array of characters, and i want to get just (amhere) in another array, is there a way of doing it?? I've been reading in the string functions but couldn't figure out how this is done? Thanks |
|
Hi, I'm trying to make a program that is based on random selections but whenever I run the random function in idle i get an error, can anyone explain to me what I'm doing wrong? >>> randint(1,9) Traceback (most recent call last): File "<pyshell#44>", line 1, in <module> randint(1,3) NameError: … |
|
Hi, I can't figure out what is wrong with the code after trying to fix it for the last six hours i decided to give, please i need help =( big time I'm trying to make a dynamic array of structures then printing the output of the elements but I … |
|
hello everyone, I'm writing a function traverse for a doubly liked list, I can only use these private members: Node *current , int count, int mutable current_position and one one private member function void set_position(int position) const The post condition of member function traverse is the action specified by function … |