Search:

Type: Posts; User: chess2009

Search: Search took 0.01 seconds.

  1. Thread: c problem

    by chess2009
    Replies
    1
    Views
    876

    c problem

    we can only use getchar, putchar, no arrays, no scanf for the calculations. printf is ok.


    so this program continously loops around the first if statement never processing the rest of the...
  2. Replies
    7
    Views
    4,773

    I would like to close ths topic how can I do that...

    I would like to close ths topic how can I do that ?
  3. Replies
    7
    Views
    4,773

    The Parsnip The parnip children

    The
    Parsnip



    The
    parnip

    children
  4. Replies
    7
    Views
    4,773

    getchar putchar

    Thanks.
    But what if I encounter white space, tab , semicolon or.. then it just goes to the next line. how to address this problem?
  5. Replies
    7
    Views
    4,773

    getchar putchar

    I would like to write a program with getchar and putchar that read my input and prints one word per line and ignores all semicolon, comma , dot , newline, tab and space.
    Here is my input:

    "The...
  6. Thread: c++ compiler

    by chess2009
    Replies
    1
    Views
    867

    c++ compiler

    Hi
    Could you introduce me some complilers such as Visual Studio 2010 that if you misspell something or you forget to put semicolon or you make any other mistakes it tells you immediately before...
  7. Replies
    1
    Views
    2,375

    input output redirection

    Hi
    I have a file.txt which is in my documents , How can I redirect the output of that file using CMD to another file namely file2.txt .

    The c program that I wrote is working but I do not know how...
  8. Thread: c++ string

    by chess2009
    Replies
    1
    Views
    866

    c++ string

    How can I check that string name has at least one char, and has no char other than letters and hyphens?
    Especially the last part , how to check that it has just letters(either upper case or lower...
  9. Replies
    4
    Views
    1,259

    check characterin 2D array

    Hi
    how can I check for certain character in rows or columns of 2-D array ?
    for example , if array is :


    int main()
    {
    int i,j;

    char board[3][3]={{'X','X','O'},
  10. Replies
    7
    Views
    1,730

    clearing buffer

    Thanks everybody.Is there any easier way to flush the buffer?
    (my college professor said use either getcha(); or %*c . but none of these are working .)
  11. Replies
    7
    Views
    1,730

    Do while problem

    Could you please help why my program goes through do while loop just once, although the condition is true.
    //Program is getting numbers from user and realize whether they are correct numbers for...
Results 1 to 11 of 11