Search:

Type: Posts; User: Hater

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,968

    After reading your comment I came to a conclusion...

    After reading your comment I came to a conclusion that my assumption about EOF was wrong so I went to re-read information about EOF and noticed that I need to enter ctrl+z instead of -1.
    With that...
  2. Replies
    2
    Views
    2,968

    Help with while loop

    #include <stdio.h>
    #include <stdlib.h>
    #define N 5


    int main()
    {
    int counter = 0, num = 0;
    int memory[N];
    while(scanf("%d", &num) != EOF){
Results 1 to 2 of 2