Search:

Type: Posts; User: i_can_do_this

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    1,807

    Program that shows biggest line...

    this program counts lines and prints out the longest line from input.


    #include <stdio.h>

    #define MAXLINE 1000

    int getline(char line[], int maxline);
    void copy(char to[], char from[]);
  2. Replies
    12
    Views
    1,384

    ok heres exactly what im trying to do. adding 2...

    ok heres exactly what im trying to do. adding 2 to a number coming from input. i want this thing to loop so it will always add 2 to the input number and i wanna know how to stop the -36 from always...
  3. Replies
    12
    Views
    1,384

    i know if i dont use eof as a condition then it...

    i know if i dont use eof as a condition then it works and it doesnt count the '\n'. but how can i make the thing loop and not just terminate only after 1 input.
  4. Replies
    12
    Views
    1,384

    random number popups....

    while i was bored and randomly typing code in and compiling it for no reason, this caught my attention:


    #include <stdio.h>

    int main()
    {
    int c;

    while((c = getchar()) != EOF)
  5. Replies
    7
    Views
    1,809

    sorry but i realized that simply turning all the...

    sorry but i realized that simply turning all the variables to floats wasnt enough, i need it to turn the function return type and parameters to floats too.... and ssharish nope thats not what i was...
  6. Replies
    7
    Views
    1,809

    no i meant i tried turning everything into float,...

    no i meant i tried turning everything into float, the printf % things and the variables like c, i, and d.
  7. Replies
    7
    Views
    1,809

    float/int numbers understanding.....

    im trying to write a temp conv. program from fahr to cel. by using a function , it works but im trying to make it print a number after the decimal and it gets all messed up...


    #include <stdio.h>...
  8. Replies
    2
    Views
    1,107

    EOF isnt working....

    #include <stdio.h>

    int main(void)
    {
    int c, d;

    while((c = getchar() - '0') != EOF) {
    if(c == 2)
    printf("fool\n"); /* once again, my pointless messages */
    ...
  9. no i meant that only c == '1' works, not c == 1...

    no i meant that only c == '1' works, not c == 1 or c == RESPONSE1.

    i even tried it out with a new program:


    #include <stdio.h>

    int main(void)
    {
    int c;
  10. is there a weird rule about symbolic constants?

    ok im new so if this question is wayy to easy to answer, forgive me but i have no idea....

    the book im learning from says that symbolic constants are exact same values the thing they representing...
  11. Replies
    9
    Views
    1,660

    o my bad.... i guess it was the tabs problem but...

    o my bad.... i guess it was the tabs problem but it was weird cause the compiler said there was an error in the "backspace if "statement .
  12. Replies
    9
    Views
    1,660

    simple printf wont compile...

    i'm trying to do this one exercise in a book where it asks you to replace user input of blanks tabs and backspaces with the words "blanks" "tabs" and "backspaces. but somehow this printf wont...
  13. Replies
    10
    Views
    7,833

    ummm my c-free doesnt require you to pay... it...

    ummm my c-free doesnt require you to pay... it just says that debugging and something else you cant use but thats it.
  14. Replies
    10
    Views
    7,833

    lol i thought it was C- "FREE" ....

    lol i thought it was C- "FREE" ....
  15. Replies
    10
    Views
    7,833

    Whats better, C-Free or Dev C++??

    since i've several problems with dev c++, i decided to look for a new IDE... i found this one called c-free which is very similar to dev C++. i heard lots of people say dev c++ is the best free IDE...
  16. Replies
    7
    Views
    3,750

    Whats the value of EOF?

    ... ok theres this one exercise to write a program to show the value of EOF.. unfortunately i tried many different ways but all it came out in dev c++ is 3 "smiley faces"?? is that suppose to be a 0...
  17. Replies
    18
    Views
    3,198

    i dunno why u say to post the actual code that i...

    i dunno why u say to post the actual code that i tried??? this is EXACTLY what the book says and what i tried.

    about getting another book, what do u recommend is good?
  18. Replies
    18
    Views
    3,198

    also another problem now.... #include...

    also another problem now....



    #include <stdio.h>

    main()
    {
    double nc;
  19. Replies
    18
    Views
    3,198

    yes it is exactly what i put in it, and for the...

    yes it is exactly what i put in it, and for the "main" stuff,
    the author of the book never uses int main he only puts main, and i also put in a random message printf before the for loop and it...
  20. Replies
    18
    Views
    3,198

    Is there a problem with Dev C++?

    im new to c programming and im trying to learn it from "the c programming langauge" book and theres a little problem i dunno how to solve.



    #include <stdio.h>

    main()
    {
    double nc;
Results 1 to 20 of 20