Search:

Type: Posts; User: ademkiv

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    3,573

    scanf with switch statement, weird behavior

    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");
    ...
  2. Replies
    2
    Views
    3,378

    Problem fixed. Thanks for a quick reply!!

    Problem fixed. Thanks for a quick reply!!
  3. Replies
    2
    Views
    3,378

    sequence of vowels in a string

    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...
  4. Replies
    3
    Views
    3,569

    doesn't any one know how to fix this problem?

    doesn't any one know how to fix this problem?
  5. Replies
    3
    Views
    3,569

    Here's my code with the sorting function...

    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...
  6. Replies
    3
    Views
    3,569

    computing median value

    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...
  7. Replies
    1
    Views
    1,520

    tictactoe symbol entering problem

    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],...
  8. Replies
    4
    Views
    1,161

    I got it all figured out. Thanks guys. I...

    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...
  9. Replies
    4
    Views
    1,161

    i am remotely connected to the server at my...

    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...
  10. Replies
    4
    Views
    1,161

    tictactoe program

    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..
    ...
  11. Replies
    2
    Views
    1,361

    arrays - simple problem

    Hello,

    I wrote this simple piece of code.

    int
    main(void)

    int score [100];

    score [0] = 5;
  12. Replies
    8
    Views
    1,530

    i give up.

    i give up.
  13. Replies
    8
    Views
    1,530

    hmm, i wish i knew which one you are talking...

    hmm, i wish i knew which one you are talking about.
  14. Replies
    8
    Views
    1,530

    what do you mean by "ambiguous character in main"?

    what do you mean by "ambiguous character in main"?
  15. Replies
    8
    Views
    1,530

    problem with functions

    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?...
  16. Replies
    3
    Views
    1,836

    Thank you for taking time to help, I will try to...

    Thank you for taking time to help, I will try to test the code later today. Have to go to class right now.
  17. Replies
    3
    Views
    1,836

    Expendable house program, please help

    Hello,

    I wrote this program that prints out the house that looks something like this initially if you enter width as 7.



    *
    * *
    * *
    * *
  18. Replies
    21
    Views
    2,961

    true, i didn't think of it before. I guess you...

    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...
  19. Replies
    21
    Views
    2,961

    As far as I know, you can use multiple %c%c%%c...

    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.
  20. I finally got it to run perfectly. Thank you for...

    I finally got it to run perfectly. Thank you for your help everyone. If someone needs the code I can post it.

    Andriy
  21. #include /* Prompts user to enter...

    #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...
  22. Thanks, I made the changes and now I get a few...

    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...
  23. with functions

    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...
  24. qqqqxxxx, thank you, it works now! As for my...

    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...
  25. looks like i'm screwed. I have to write this...

    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...
Results 1 to 25 of 27
Page 1 of 2 1 2