Search:

Type: Posts; User: tanpearl

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    7,780

    thanks! it worked qith getchar().

    thanks! it worked qith getchar().
  2. What function to use to check the equality of two strings?

    i wanted to compare two strings in a conditional. but

    if (string1==string2)
    wont' work.
  3. Replies
    3
    Views
    7,780

    The scanf function won't work! HELP!

    Help me guys. this is a part of my program and the scanf part doesn't function.
    im using the Turbo C version.

    the one that is bold is the part that doesn't work. can't locate my error. HELP!

    ...
  4. thanks! the code you entered is easier to...

    thanks! the code you entered is easier to understand. and i need two arrays because it is a game im doing and im just doing it step by step. =)
  5. Thanks for helping. It helped alot. Btw, here's...

    Thanks for helping. It helped alot. Btw, here's the code.


    #include <stdio.h>
    #include <string.h>

    void main ( )
    {
    int a;
    char s[80], b[80];
  6. Unnecessary characters disappeared. However...

    I've revised my code. however after the first word, the rest won't print already.


    #include <stdio.h>

    void main ( )
    {
    int a;
    char s[80], b[80];
  7. i tried removing the for loop but when it prints,...

    i tried removing the for loop but when it prints, unnecessary hyphens appear and even the sigma and smiley faces aren't removed.
  8. how can i assign the last value to be \0 ? ...

    how can i assign the last value to be \0 ?



    i'm using the old Turbo C program. How to use fgets()?
    i tried using scanf() but after the first word i enter, it wont be printed already.
  9. Printing Extra Characters such as Sigma and Smile Face. HELP

    This is my code:

    i Input characters then replace it with hyphens. however, sigma and smiley faces are produced when print it.


    #include <stdio.h>

    void main ( )
    {
    int a;
  10. Replies
    3
    Views
    1,518

    String with Spaces. HELP.

    Why is it that if i use scanf for input of a string data type, the words entered after a space are not printed?
Results 1 to 10 of 10