Search:

Type: Posts; User: rickyspaceguy

Search: Search took 0.02 seconds.

  1. Replies
    34
    Views
    3,993

    thnx people

    thnx ben..i've already figured tht out in my prev post...im sorry to people for not figuring it out with the buffer..sorry 4 all the bad blood...but thnx for helping
  2. Replies
    34
    Views
    3,993

    sorry people i at last figured it out...i didnt...

    sorry people i at last figured it out...i didnt know tht a return is what makes stdin available to getchar()..
    im sorry for all the bad blood

    ctrl+z is the EOF in windows...i figured it out how...
  3. Replies
    34
    Views
    3,993

    hey pls... ...

    hey pls...

    c:\MinGW\bin>c:\MinGW\work\count.out
    jbjsann nsjandjndsn kksak
    nmjbjj
    characters:27 space:3 tabs:0 Newlines:1 ^C

    this was reached with ctrl+c command...if the process was wholly...
  4. Replies
    34
    Views
    3,993

    well dear friend i can wish to be accepted as a...

    well dear friend i can wish to be accepted as a jackass but not stubborn...im trying to know wat is happening..i use ctrl+z all the time..but the loop won't end so i tried using ctrl+c..

    sumtimes...
  5. Replies
    34
    Views
    3,993

    thanks ben for the first serious attempt... ...

    thanks ben for the first serious attempt...

    this is the command i give @ my windows cmd prompt alongwith the results..can u still find why is this happening??


    c:\MinGW\bin>mingw32-gcc...
  6. Replies
    34
    Views
    3,993

    i already know tht..ctrl D is infact used for...

    i already know tht..ctrl D is infact used for unix while windows uses ctrl+z... but here gcc compiler doesnt tk ctrl+z or ctrl+d as EOF..i donno y is such a thing happening..btw im using a windows...
  7. Replies
    34
    Views
    3,993

    pls refer to my original post here...

    pls refer to my original post here

    & u may like to see this too..
  8. Replies
    34
    Views
    3,993

    Microsoft Windows [Version 6.0.6000] Copyright...

    Microsoft Windows [Version 6.0.6000]
    Copyright (c) 2006 Microsoft Corporation. All rights reserved.


    C:\Users\Ricky>cd c:\MinGW\bin

    c:\MinGW\bin>mingw32-gcc c:\MinGW\work\count.c -o...
  9. Replies
    34
    Views
    3,993

    pls see the above example code i posted..well it...

    pls see the above example code i posted..well it does tk it to next line of logic...why???

    bcos it does give correct answer albeit not always...thts my actual problem

    it w'd b better if u...
  10. Replies
    34
    Views
    3,993

    #include int main(){ int c,nl; ...

    #include<stdio.h>

    int main(){
    int c,nl;

    nl=0;
    while((c=getchar())!=EOF)
    if(c=='\n')
    ++nl;
    printf("\n%d\n",nl);
  11. Replies
    34
    Views
    3,993

    i already know tht bud..can u compile the code...

    i already know tht bud..can u compile the code then try to run it...but do tell me if u used unix or windows m/c
  12. Replies
    34
    Views
    3,993

    my program doesnt have loops...?? thr is a while...

    my program doesnt have loops...?? thr is a while loop sitting..
  13. Replies
    34
    Views
    3,993

    fflush doesnt help

    fflush doesnt help too same problems....
  14. Replies
    34
    Views
    3,993

    i'm very sorry

    look people...i've mistakenly copied EOF as 'EOF' i had already detected & tried to edit b4 ne1 replied..but i don't know why wasn't it updated..

    others who say tht y haven't i used Ctrl+z as...
  15. Replies
    34
    Views
    3,993

    pls help urgently

    #include<stdio.h>

    /* program to calculate no of tabs,spaces,tabs alongwith characters */

    int main(){
    int c;
    int nc,nspc,ntb,nline;

    nc=nspc=ntb=nline=0;
    c='\0';
Results 1 to 15 of 15