No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Someone has to do it!!
I'm not really getting the bigger picture with regards to linked lists. What needs to be done to link it? Also, there is an error with strncpy and for some reason on line 35 its not recognising struct trainset anymore and calls it a undefined variable. #include <stdio.h> #include <stdlib.h> … |
|
Here is a sample exam. What other kinds of questions do you think I could prepare before walking in there since all resources are permitted? Write a single program which contains functions to do the following steps. Each of these steps involve reading the file above and displaying some of … |
|
The "r" function works well! #include <stdio.h> #include <string.h> #include <stdlib.h> int main(void){ FILE *file_r, *file_w; int c; char fileread[40]; char filewrite[40]; printf("Enter filename to be copied: "); gets(fileread, 40, stdin); fileread[strlen(fileread)-1] = '\0'; file_r = fopen(fileread, "r"); while(file_r == NULL) { printf("Invalid file, ealnter again!"); fgets(fileread, 40, stdin); fileread[strlen(fileread)-1] … |
|
This is a simple calcualtor program. What I don't understand is how I could modify it so that the calculation parameters could be intered from cmd. I don't understand how the argv and argc really work in this case. Do I need to replace all the ints with argv or … |