Search:

Type: Posts; User: soawperL25

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    676

    Honestly, I don't really get what you mean (I am...

    Honestly, I don't really get what you mean (I am still learning english too by the way).

    I just found out a forum which has similar problem with mine...
  2. Replies
    8
    Views
    676

    I have tried to include the data types, and the...

    I have tried to include the data types, and the program still does not work. I believe it's because the right and left variables are not assigned yet. But I may be wrong too.
  3. Replies
    8
    Views
    676

    This is what my compiler says to the line in...

    This is what my compiler says to the line in which I try to call the function above.

    error: expected expression before 'int'
    error: too few arguments to function maxSumRec.

    But, I think I have...
  4. Replies
    8
    Views
    676

    From Java to C

    I got a code written in Java. But, I gave up writing code in Java. The program written is supposed to find the maximum subsequence sum. It's originally like this.



    private static int maxSumRec...
  5. I guess that is because srand() is the function...

    I guess that is because srand() is the function which generates the time for random the number. So, when I moved it out it generates different number for each loop? Lol, no. Can't really figure it...
  6. Wow, thank you very much! That really helps. So,...

    Wow, thank you very much! That really helps. So, I finally changed it into this


    srand ( time(NULL) );
    for(x=0; x<VALUE; x++)
    {
    arr[x] = rand() % 20 * -1 + 10;
    ...
  7. Is it possible to generate a certain number of random numbers in C?

    I got a homework for a class where we're supossed to use Java. But since we just started the teacher let us to use C too if using Java is too difficult. I gave up with Java. So, I wrote in C instead....
  8. Replies
    4
    Views
    1,365

    Oh, I see. Thanks everyone!

    Oh, I see. Thanks everyone!
  9. Replies
    4
    Views
    1,365

    Something about fgets

    I am writing a program in which the computer will read a txt file and encypt it. The encryption works fine, but the computer cannot read the file perfectly. If there's a newline, the scanning process...
  10. That sounds make sense. I guess I won't try to...

    That sounds make sense. I guess I won't try to find the source code of the exe I have. I will find the source code itself myself. Thanks :)
  11. Is it possible to convert an exe file back to C?

    You may find this a ridiculous question. But, I am wondering if that's totally possible. Let's say you have a simple exe program and you want to see its source code. So, you have to convert it back...
  12. Replies
    6
    Views
    1,179

    But, if I delete that part, the program will not...

    But, if I delete that part, the program will not run well. I mean if I input 5 1 2010. The output will be "You were born on 5 Aquarius 2010."... That's what I have tried. I have to put "January" in...
  13. Replies
    6
    Views
    1,179

    Thank you very much, std10093! From your...

    Thank you very much, std10093! From your explanation, I have developed my previous code into a better one. And this is what I got:



    // created by M0513027
    #include <stdio.h>
    struct zodiac
    {...
  14. Replies
    6
    Views
    1,179

    Do I use struct correctly?

    I am trying to write a program which will determine the user's zodiac sign when she or he inputs his or her birth date. I am trying to use struct for the first time on this program. But, it fails to...
  15. Thank you very much. It took me a while to...

    Thank you very much. It took me a while to understand the code. I have changed some parts of it to meet my needs. But, I have a question, so the computer will find the lowest character in the string...
  16. Thank you for your welcome and help :D I am sorry...

    Thank you for your welcome and help :D I am sorry if you didn't see my latest post :(, I am writing a code to sort any words. Just any words and the output should become like a dictionary. And I am...
  17. I think you're right. I didn't know that. Thanks...

    I think you're right. I didn't know that. Thanks :)

    But, it isn't actually the program I am trying to write. My homework is to write a code to sort some words inputted by user. So far, this is all...
  18. Sorting strings using selection sort method?

    I am trying to write a program to sort the characters in a word alphabetically. For example, if you input 'what', the computer will sort it into 'ahtw'. But, it fails to work. I didn't know why.

    ...
Results 1 to 18 of 18