Below is the code that I'm having trouble with:
while(TRUE){
printf("Type in one of options below:\n1. Create File in root\n2. Navigate to Directory\n3. Quit\n");
...
Type: Posts; User: ademkiv
Below is the code that I'm having trouble with:
while(TRUE){
printf("Type in one of options below:\n1. Create File in root\n2. Navigate to Directory\n3. Quit\n");
...
Problem fixed. Thanks for a quick reply!!
I am trying to code some sample practice problems for my C class but I ran into a segmentation fault error when trying to solve the following problem:
Write a function which is passed a c-string...
doesn't any one know how to fix this problem?
Here's my code with the sorting function implemented.
#include<stdio.h>
/*Function prototypes*/
int getdata(double[],int size);
double computesum(int n, double x[]);
double computemean(int...
Hi,
I wrote a program that is using arrays that calculates sum, and avegare of the number user inputs (maximum 20 numbers). Now I'm trying to write one more function that sorts the array, and...
Hi,
I'm writing a code for tictactoe game, my code compiles, but when I try to input the values, it doesn't work properly.
here's function for the input.
void enter_symbol(char ttt[][3],...
I got it all figured out. Thanks guys. I appreciate all the help.
I removed the code because I know that other people from my class are going to find it and might copy it. I don't want to get...
i am remotely connected to the server at my university, I think they use Fedora Core. It compiles for me. Strange.
I just checked again, there is no such symbol in my code, strange.
cwr,
I'm...
Hello,
I wrote this tictactoe game for my class. This is not really a game, but it acts like one.It compiles and works, but I can't figure out how to find if both X and O won at the same time..
...
Hello,
I wrote this simple piece of code.
int
main(void)
int score [100];
score [0] = 5;
i give up.
hmm, i wish i knew which one you are talking about.
what do you mean by "ambiguous character in main"?
Hello,
I am trying to make a program that prints out a square with width defined by the user. The program compiles, and asks user for width, but after that nothing happens. What am I doing wrong?...
Thank you for taking time to help, I will try to test the code later today. Have to go to class right now.
Hello,
I wrote this program that prints out the house that looks something like this initially if you enter width as 7.
*
* *
* *
* *
true, i didn't think of it before.
I guess you can try to get one digit at a time, and lets say define "999" to be abort code. When user enters "999" program goes to the next step and does the...
As far as I know, you can use multiple %c%c%%c etc.... to get as many characters at once as you want. You'll have to define them later.
I finally got it to run perfectly. Thank you for your help everyone. If someone needs the code I can post it.
Andriy
#include <stdio.h>
/* Prompts user to enter the score */
int getScore(int numScore);
/*Converts a numberic score to a letter grade */
char convertGrade(int numScore);
/*Displays the...
Thanks, I made the changes and now I get a few errors when compiling:
grade_calc.c: In function `main':
grade_calc.c:26: error: called object is not a function
grade_calc.c:28: error: called...
Hello again,
Here's my 1st attempt to convert that program to use functions with some added functionality.
#include <stdio.h>
/* Prompts user to enter the score */
int...
qqqqxxxx, thank you, it works now! As for my homework, i'm going do it myself because i want to learn something. If I will have problems then I will ask.
I have a lab today where I will need to...
looks like i'm screwed. I have to write this program using functions, but at first i was trying to write it the simplest way possible and then modify it to use functions. It looks like I can't even...