Search:

Type: Posts; User: Sephiroth

Search: Search took 0.03 seconds.

  1. alright that answers the 1st part of my question...

    alright that answers the 1st part of my question but how come in the printf part i have to put ndigit[i] and not just with "i"? I tried that and not all values of ndigit is set to 0 but shouldnt "i"...
  2. Can anyone give me a good description of an array?

    alright i dont get some part of this program
    I already posted from another topic about another problem i had but now i have a new one :D .



    #include <stdio.h>

    main()
    {
    int c, i,...
  3. Replies
    41
    Views
    9,334

    yeah i thought it would be because of the single...

    yeah i thought it would be because of the single quotes beside the 0. I just wonder y people use ascii character value instead of the value itself ; it doesn't really look like it makes anything...
  4. Replies
    41
    Views
    9,334

    ok let me try asking this a little clearer. for...

    ok let me try asking this a little clearer. for instance, [c-'0'] u said that is the same as 50-48 if c was 2. yeah but how do u know when c is either 2 or 50?? is it because 0 is written as '0'??
    ...
  5. Replies
    41
    Views
    9,334

    o sorry 1 more thing, so '0' and just 0 r...

    o sorry 1 more thing, so '0' and just 0 r different. Cause in your program when u put things like this:

    '0' = 0

    thats actually different than 0 = 0 right?
    So can you use '0' to stand for the...
  6. Replies
    41
    Views
    9,334

    ok thanks now i understand what it means. But is...

    ok thanks now i understand what it means. But is that really necessary? I tried taking that out and it produces an error message. Why couldnt we just do [c-48]?? or that doesn't work?
  7. Replies
    41
    Views
    9,334

    ok wait let me think about it for a sec. Ok so u...

    ok wait let me think about it for a sec. Ok so u mean that "[c-'0']"
    means that whatever c is , is going to turn into the value 0????
    but then how come cwr says is a subtraction sign?

    Does the...
  8. Replies
    41
    Views
    9,334

    alright this books confusion to me just keeps on...

    alright this books confusion to me just keeps on goin.....

    In this array program:



    #include <stdio.h>

    main()
    {
  9. Replies
    41
    Views
    9,334

    ok now that u told me that whenever theres eof i...

    ok now that u told me that whenever theres eof i need to the f6 thing but i dunno if this is an exception but it prints output without f6:



    #include <stdio.h>

    main()
    {
    int c;
  10. Replies
    41
    Views
    9,334

    ok i have a new problem.... the following...

    ok i have a new problem....

    the following program is suppose to count blanks tabs and newlines but it only counts newlines on mine



    #include <stdio.h>

    main()
    {
  11. Replies
    41
    Views
    9,334

    lol now that i thought about the 2nd part of my...

    lol now that i thought about the 2nd part of my question, it was kinda dumb. but yeah thanks alot now i can continue on :D
  12. Replies
    41
    Views
    9,334

    oh sorry i forgot also one last thing, is there a...

    oh sorry i forgot also one last thing, is there a way to set dev c++ to do the F6 thing automatically whenever eof is called?
  13. Replies
    41
    Views
    9,334

    O ya!! it works now . ok i gotta get this...

    O ya!! it works now . ok i gotta get this straight 1 more time.
    so if the program or any program just require anything that has to do with EOF i have to do the F6 thing right? and if it doesnt call...
  14. Replies
    41
    Views
    9,334

    no is not that the program window flashes and...

    no is not that the program window flashes and quits, the program is suppose to print an output counting the occurences of characters, words, lines, and other stuff but when i enter such characters, i...
  15. Replies
    41
    Views
    9,334

    ok this is the code #include ...

    ok this is the code



    #include <stdio.h>

    main()
    {
    int c, i, nwhite, nother;
    int ndigit[10];
  16. Replies
    41
    Views
    9,334

    How come Dev C++ cant run some programs??

    ok im kinda new to C , and i have the c programming language 2nd edition book but when i try to some of the programs from the book in it , it doesnt work!! I mean no errors show but the program isnt...
  17. Replies
    4
    Views
    1,209

    Need Major Help in C Programming!!!

    I tried reading the tutorials but i just can't understand what they're saying. Please help if anyone got a link to a very easy to understand c programmin guide.
Results 1 to 17 of 17