Here's the code in it's entirety. There's a custom library (utildll) that we use to easily create menus and has some useful free functions also. If you want to execute the code as is, make sure to...
Type: Posts; User: westm2000
Here's the code in it's entirety. There's a custom library (utildll) that we use to easily create menus and has some useful free functions also. If you want to execute the code as is, make sure to...
nCommaLoc is an integer value that displays the position of the comma in the string. If there is no comma, it is taken care of in an earlier section, so if it reaches the point where the code fails,...
here's the attached "code" excerpt
I am writing a program that uses some simple string manipulation functions to process names. All is working fine, except when I need to use the erase function. My understanding is that the format is...
it worked. however, why did it not automatically flush the buffer? do i have to manually do that even though it is such a simple program? thanks again for the help.
I've just installed RH8 and tried a simple "hello world" program listed below. However, none of the text appears. The new lines show up, but no text. Not sure what I'm doing wrong.
...
The mywc program would, ideally, work in both OSs. However, this is not an ideal world and I'm still unfamiliar with what works in one OS and not in another. Thanks to your post, I was able to do a...
I am writing a program called mywc that mimics a scaled back version of wc. It accepts as command line arguments file(s) and tallies the number of characters, words and lines in that file(s). My...
I think I've finished it. At least it accepts the data sets that I have without errors. Here's the code...
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
main()
{
char...
Using strpbrk was exactly what I needed. I'll need to review more of those string.h functions. Thanks!
I am trying to write a function to read data from an input file (specific format of the input file is as follows - each line is of the form: name score). Then, I want to break the string into a...
Thanks for the response, Twiggy. However, if I'm not mistaken, I think that solution would require the user to hit enter to terminate the string, which, unfortunately, is not an option. I want the...
I'm a beginner to C, so please try not to laugh at the following question...
I am writing a short program that asks the user to input a string, then a small function manipulates the string. It...
Wow! Thanks for the link. I was doing searches for "vi", "editor", "c", and "programming" and getting overwhelmed with unrelated sites. In ten minutes, I've already answered two questions that I had...
I am looking to become more proficient using the vi editor and am having some difficulty locating resources. I have examined the man pages, but, geez, it's a bit overwhelming. There's an O'Reilly...