Ive noticed over the last several programs Ive written for skill building that I have certain tendencies when managing data within a program.
The biggest one that seems like a horrible habbit is...
Type: Posts; User: Taikon
Ive noticed over the last several programs Ive written for skill building that I have certain tendencies when managing data within a program.
The biggest one that seems like a horrible habbit is...
Im looking for an intermediate and advanced C book thats setup textbook style, but Im not quite sure what company or author has the better book that might show the more accepted way for things like...
So C by itself or by standard has no provision for templated code?
In the class Im about to finish on C, they didn't get very far but it LOOKS like about 40% or better of the operations from...
I keep having strange error messages show up at wierd times. The code looks more or less fine and I know some of the errors are true errors but some don't look right or look like they are caused by...
#include <stdio.h>
int main(void)
{
int ch;
char buf[BUFSIZ];
puts("Flushing input");
while ((ch = getchar()) != '\n' && ch != EOF);
I am as I said before studying C as a student and I keep hearing fflush(stdin) is wrong. I think I understand why and I have found posts explaining why fflush(stdin) is wrong. The instructor is the...
Sorry about bumping this but the question is along the same line and the program code already posted is a good example.
The question is about the structures and the variables Ive stored in them. ...
Im using visual c++ 6.0 I have visual studio .net but I really hate the interface. The only reason Im using that compiler is no 1. Even though I like linux I can freely admit while I am pretty good...
I realize this is kind of pointless as far as the way Im doing it since I could easily make the program all in vb and it be just as effective but I figure its a good learning exercise.
I am...
I just realized that I didnt post the changes and as far as the output I lined it up in notepad in windows. The first line throws it off because part of the project reqs are that the authors name...
This is the bad version. Im not sure (or else I wouldnt be asking) but I think it has something to do with scope or the way I am passing the structures. I messed up last night and accidentally...
I have 2 different versions of code for a simple program. One version works and with minor changes after comparing line for line the two different version only have about 4 different lines. I have...
First question:
I am wondering if there is a way to loop through structures. I can see how this might be bad form and an even worse way to make a reliable program but its more out of curiosity...
works now. I thought I tried that earlier I guess I didnt.
Thanks.
as far as the print function
//structure to hold the customer information
struct Customer {
char CustLastName[10];
float PreviousBalance;
float Credits;
float Charges;
Im writing a program and I need to print the output...this isnt the problem. The problem is that its an account information style printout using floating point numbers. When I align the output...