Search:

Type: Posts; User: Moon River

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: tolower()

    by Moon River
    Replies
    5
    Views
    1,270

    tolower()

    Can you give a simple program that uses tolower to convert strings into lowercase? Or simply just the general syntax of tolower pls. Can find it in google. Thanks
  2. Replies
    13
    Views
    1,074

    Still a mess

    Still a mess
  3. Replies
    13
    Views
    1,074

    I didnt coz i dont know how

    I didnt coz i dont know how
  4. Replies
    13
    Views
    1,074

    But it doesnt sir. I dunno why. I just did it...

    But it doesnt sir. I dunno why. I just did it before but now i cant :(
  5. Replies
    13
    Views
    1,074

    It is inside a loop.It writes everything that i...

    It is inside a loop.It writes everything that i want to except that it doenst write the new line that i want.
  6. Replies
    13
    Views
    1,074

    writing new line in a file

    .I have a problem writing new line in a file. So far, this is my code.



    fprintf(f, (ctime(&mytime)));
    fprintf(f, "%s %s %d %d", item, brand, price, amount);
    fprintf(f, "\n");
    fclose(f);
  7. Thread: qsort

    by Moon River
    Replies
    1
    Views
    841

    qsort

    How do i sort numbers from highest to lowest using qsort? I dont have a code. I dont know how to use this one.
  8. Thread: confused :(

    by Moon River
    Replies
    6
    Views
    685

    I did this. int found=0; (found=1) But...

    I did this.

    int found=0;

    (found=1)

    But still, i dont get my expected result :(
  9. Thread: confused :(

    by Moon River
    Replies
    6
    Views
    685

    confused :(

    This program will allow the user to input string then scans the file if it contains the same string given by the user. But i always get "MATCHED" even if i enter random string. Please help. I tried...
  10. I run it and here's the output. 6 9 5 0 3...

    I run it and here's the output.

    6
    9
    5
    0
    3
    4
    1
    1
  11. int main { int a; ...

    int main
    {
    int a;
    srand(time(NULL));

    for(int i=1; i<=10; i++)
    {
    a=rand() % 10;
    printf("%d", a);
    }
  12. But i still get same numbers in a row sir

    But i still get same numbers in a row sir
  13. generating random numbers without repeating

    Inside my loop is this

    srand(time(NULL))
    a=rand()%10;

    So it will generate numbers again and again as the loop goes on but it always repeat some numbers. My question is, how would you generate...
  14. Replies
    4
    Views
    866

    Whenever i enter a string that matches with the...

    Whenever i enter a string that matches with the string in the file, it displays STRING FOUND. But whenever i enter anything that doesnt match anything in the file, the system displays a lot of STRING...
  15. Replies
    4
    Views
    866

    cant find my error.

    Im working on a program that will allow the user to input a string, read the file and search if the user input string is in the file. Whenever i input a string that does match a string it displays...
  16. Replies
    3
    Views
    613

    suggestion pls.

    Can you please suggest a good but not-so-difficult program for my final term project? :)
  17. Replies
    12
    Views
    1,216

    I had a hard time speaking english though, let's...

    I had a hard time speaking english though, let's just say that i want my program to read the string given by the user then compare it to the data contained by the file. If anything matches, then it...
  18. Replies
    12
    Views
    1,216

    So i can use loop for the system to check to...

    So i can use loop for the system to check to whole file? How can i do that? Please teach me.
  19. Replies
    12
    Views
    1,216

    I didnt configure anything. Its just that my...

    I didnt configure anything. Its just that my system("pause") and system("cls") is not working without the iostream.
  20. Replies
    12
    Views
    1,216

    Can you correct my code pls? Im just a 1st year...

    Can you correct my code pls? Im just a 1st year IT student. Dont expect much from me. C is my first language and i begin creating programs for about a month or so.
  21. Replies
    12
    Views
    1,216

    I am expecting that if i enter a string that is...

    I am expecting that if i enter a string that is same as the strings contained in the file, the system will display STRING FOUND. But when i run it, i always get the "STRING NOT FOUND".

    Also, im...
  22. Replies
    12
    Views
    1,216

    string comparison

    I want to compare 2 strings. One is from user and one will be from a file.
    My file contains this.

    Philippines
    Olives
    Polymerization
    Coconut

    I dont get my expected output. Here's my code....
  23. Replies
    4
    Views
    1,334

    Ohh im sorry, what i mean is the 'main menu' of...

    Ohh im sorry, what i mean is the 'main menu' of my program.

    It goes like this. i want to put some line above and at the bottom so i search for some extended ascii codes. But the displayed char is...
  24. Replies
    4
    Views
    1,334

    using extended ascii

    I want to design my table with extended ascii codes. What's the general syntax for that? Im using C v5.7.1 on windows 8. Thanks
  25. Replies
    4
    Views
    664

    Yes, i was referring to the void before del() and...

    Yes, i was referring to the void before del() and add(), i just saw it on my classmate and i dont know what it's called.
Results 1 to 25 of 47
Page 1 of 2 1 2