Search:

Type: Posts; User: ASCII

Search: Search took 0.01 seconds.

  1. Thread: Expand

    by ASCII
    Replies
    11
    Views
    2,554

    Thank you, that fixed it. I don't understand...

    Thank you, that fixed it. I don't understand where the extra characters were coming from however, could you please explain?
  2. Thread: Expand

    by ASCII
    Replies
    11
    Views
    2,554

    Expand

    Hi! I've been working through the C Programming Language Second Edition, and I'm stumped on one of the exercises. Exercise 3-3 has me baffled. The task is as follows:
    Exercise 3-3. Write a...
  3. Thread: Infinite Loop

    by ASCII
    Replies
    10
    Views
    1,856

    asjkl;djkfhidshagisdg screw me. Stupid typo, I...

    asjkl;djkfhidshagisdg screw me. Stupid typo, I guess the comparison of i to EOF when I meant to compare C is what caused the infinite loop. As for the linecomment thing, that's what I'm doing......
  4. Thread: Infinite Loop

    by ASCII
    Replies
    10
    Views
    1,856

    Infinite Loop

    Can someone please examine my code here. The program is supposed to remove all comments from a C program. So far it only checks for // comments. I'm feeding it it's own source as the input. For...
  5. Replies
    9
    Views
    1,093

    Yay it work: #include #define...

    Yay it work:


    #include<stdio.h>
    #define MAXLENGTH 1000
    #define TAB 8

    int Getline(char str[]);

    int main(void) {
  6. Replies
    9
    Views
    1,093

    ... I'm just replacing each tab with the...

    ...
    I'm just replacing each tab with the appropriate number of spaces...
  7. Replies
    9
    Views
    1,093

    Yeah, still a little confused... A little bit of...

    Yeah, still a little confused...
    A little bit of research explained tab stops to me, but I don't understand what I'm supposed to do when a \t character is found. Replace it with n spaces, depending...
  8. Replies
    9
    Views
    1,093

    Baffled By Question

    Whilst working my way through "The ANSI C Programming Language" I came across an exercise on chapter one that I just don't understand. The exercise is:
    Write a program detab that replaces tabs in...
  9. Replies
    2
    Views
    764

    Thank you! That works perfectly :)

    Thank you! That works perfectly :)
  10. Replies
    2
    Views
    764

    Newbie With Book Questions :/

    I've started reading the famous "The ANSI C Programming Language" and have a question regarding the examples and exercises. Most of the examples and exercises so far require reading from files. ...
Results 1 to 10 of 10