Thank you, that fixed it. I don't understand where the extra characters were coming from however, could you please explain?
Type: Posts; User: ASCII
Thank you, that fixed it. I don't understand where the extra characters were coming from however, could you please explain?
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...
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......
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...
Yay it work:
#include<stdio.h>
#define MAXLENGTH 1000
#define TAB 8
int Getline(char str[]);
int main(void) {
...
I'm just replacing each tab with the appropriate number of spaces...
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...
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...
Thank you! That works perfectly :)
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. ...