Search:

Type: Posts; User: amadeus111

Search: Search took 0.00 seconds.

  1. Thank you very much! I found that control+d

    Thank you very much! I found that control+d
  2. printf does not work out of loop K&R array example

    #include <stdio.h>
    /* count digits, white space, others */
    main()
    {
    int c, i, nwhite, nother;
    int ndigit[10];
    nwhite = nother = 0;
    for (i = 0; i < 10; ++i)
    ndigit[i] = 0;
    while ((c =...
  3. Thank you very much!

    Thank you very much!
  4. for every other character other than blank,...

    for every other character other than blank, newline and tab flag turns zero and if it gets blank, newline and tab flag is still zero but inspace==0 becomes TRUE then
    inspace=1 and compiler makes...
  5. flag's initial value 1 then lets say result of...

    flag's initial value 1
    then lets say result of "c == ' ' || c == '\t' || c == '\n'"
    equals to 1
    then dont we check the value of inspace if it is 0 and started with inspace was 1 thats where I got...
  6. I didn't understand how each word newline program

    #include <stdio.h>


    int main(void)
    {
    int c;
    int inspace;

    inspace = 1;
    while ((c = getchar()) != EOF)
  7. Oh! you called that quine. Another one got...

    Oh! you called that quine. Another one got learned thanks!
  8. I totally misunderstood copying input to output,...

    I totally misunderstood copying input to output, I thought it would print out the code.
    Thanks you Salem and grumpy!
  9. Copying input to output K&R there is no output

    #include <stdio.h>
    /* copy input to output; 1st version */
    main()
    {
    int c;
    c = getchar();
    while (c != EOF) {
    putchar(c);
    c = getchar();
    }
  10. Replies
    21
    Views
    21,584

    Exactly! I wanna know what I am doing.

    Exactly! I wanna know what I am doing.
  11. Replies
    21
    Views
    21,584

    I would like to program games and iphone apps....

    I would like to program games and iphone apps. What steps do u think I should follow to be a competitive game programmer ?
  12. Replies
    21
    Views
    21,584

    Thank you guys lots of good information. I have...

    Thank you guys lots of good information. I have started programming b/c I didnt want to waste my time by playing games. I think creating part of programming more fun and satisfying than playing a...
  13. Replies
    21
    Views
    21,584

    To learn C++ or C# should I learn C first ?

    I have a few questions about programming languages

    1. What are the most popular programming languages ?and why?
    2. To learn C++ or C# should I learn C ? and if C necessary how much of C...
  14. I was working on my own approach. now I will...

    I was working on my own approach. now I will check yours and learn and hopefully fix bugs and convert characters to numbers as well
    thank you!
  15. zero is not neglected anymore if (n==0) {...

    zero is not neglected anymore


    if (n==0) {
    printf("zero");
    }
  16. Thanks for lightening my mind after reading your...

    Thanks for lightening my mind after reading your comment it made perfect sense. for extra challenge, I put blanks after every 3 digit
  17. #include #include #define d...

    #include<stdio.h>
    #include<string.h>
    #define d 9
    #define e 9
    #define f 4
    int main()
    {
    char *num[]={"","one","two","three","four","five","six","seven","eight","nine"};
    char...
  18. Writing numbers in letters is there a easier way ?

    #include<stdio.h>
    #include<string.h>
    #define a 9
    #define b 9
    #define c 3
    int main()
    {
    char *num[]={"","one","two","three","four","five","six","seven","eight","nine"};
    char...
  19. if ur string is foo there is 6 combinations of...

    if ur string is foo there is 6 combinations of foo 3!=6 foo foo ofo ofo oof oof. I haven't thought yet about if there is/are repeating letters. I will work on it later if I can :D
  20. Printing all combinations of a string loop problem

    #include<stdio.h>
    #include<string.h>
    #define a 15

    int main()
    {
    char str[a];
    char *ptr=str;
    char temp;
    int i,n,j,b;
  21. I am sorry, but I didn't understand what you mean

    I am sorry, but I didn't understand what you mean
  22. #include int main() { int...

    #include <stdio.h>




    int main()
    {
    int d,m,y,month=0;
    long int t;
    printf("enter a date dd-mm-yyyy: ");
  23. Calculating number of days for a given date code suggestions/how to func?

    #include <stdio.h>


    int main()
    {
    int d,m,y,month=0;
    long int t;
    printf("enter a date dd-mm-yyyy: ");
    scanf("%d-%d-%d", &d, &m, &y);
    if (d<=0||d>31) {
  24. Thank you! It makes sense now! :) :)

    Thank you! It makes sense now! :) :)
  25. Simple question about word reversing program

    #include <stdio.h>


    int main()
    {
    char s[40], gecici;
    int i, n;


    printf("write a word : ");
Results 1 to 25 of 25